@xatlas/rainbow-core 2.0.9 → 2.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core.common.js +98 -26
- package/dist/core.common.js.map +1 -1
- package/dist/core.umd.js +98 -26
- package/dist/core.umd.js.map +1 -1
- package/dist/core.umd.min.js +5 -5
- package/dist/core.umd.min.js.map +1 -1
- package/package.json +1 -1
package/dist/core.umd.min.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e(require("monaco-editor"),require("@antv/g6"),require("vuex"),require("vue-amap"),require("vue-router"),require("qs"),require("vue"),require("lodash/fp/template"),require("axios"),require("vuex/dist/logger")):"function"===typeof define&&define.amd?define(["monaco-editor","@antv/g6","vuex","vue-amap","vue-router","qs",,"lodash/fp/template","axios","vuex/dist/logger"],e):"object"===typeof exports?exports["core"]=e(require("monaco-editor"),require("@antv/g6"),require("vuex"),require("vue-amap"),require("vue-router"),require("qs"),require("vue"),require("lodash/fp/template"),require("axios"),require("vuex/dist/logger")):t["core"]=e(t["monaco-editor"],t["@antv/g6"],t["vuex"],t["vue-amap"],t["vue-router"],t["qs"],t["Vue"],t["lodash/fp/template"],t["axios"],t["vuex/dist/logger"])})("undefined"!==typeof self?self:this,(function(t,e,r,n,o,i,a,c,s,u){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s="1aba")}({0:function(t,e){},"014f":function(t,e,r){"use strict";r("cf8c")},"019f":function(t,e,r){!function(e,n){t.exports=n(r("336c"))}(window,(function(t){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=587)}([,,,function(e,r){e.exports=t},,,,function(t,e,r){var n;try{n={cloneDeep:r(472),constant:r(103),defaults:r(471),each:r(218),filter:r(215),find:r(470),flatten:r(188),forEach:r(217),forIn:r(466),has:r(204),isUndefined:r(203),last:r(465),map:r(202),mapValues:r(464),max:r(463),merge:r(461),min:r(455),minBy:r(454),now:r(253),pick:r(453),range:r(448),reduce:r(200),sortBy:r(445),uniqueId:r(440),values:r(195),zipObject:r(439)}}catch(t){}n||(n=window._),t.exports=n},,,,function(t,e){var r=Array.isArray;t.exports=r},,,,function(t,e,r){"use strict";var n=r(7),o=r(22).Graph;function i(t,e,r,o){var i;do{i=n.uniqueId(o)}while(t.hasNode(i));return r.dummy=e,t.setNode(i,r),i}function a(t){return n.max(n.map(t.nodes(),(function(e){var r=t.node(e).rank;if(!n.isUndefined(r))return r})))}t.exports={addDummyNode:i,simplify:function(t){var e=(new o).setGraph(t.graph());return n.forEach(t.nodes(),(function(r){e.setNode(r,t.node(r))})),n.forEach(t.edges(),(function(r){var n=e.edge(r.v,r.w)||{weight:0,minlen:1},o=t.edge(r);e.setEdge(r.v,r.w,{weight:n.weight+o.weight,minlen:Math.max(n.minlen,o.minlen)})})),e},asNonCompoundGraph:function(t){var e=new o({multigraph:t.isMultigraph()}).setGraph(t.graph());return n.forEach(t.nodes(),(function(r){t.children(r).length||e.setNode(r,t.node(r))})),n.forEach(t.edges(),(function(r){e.setEdge(r,t.edge(r))})),e},successorWeights:function(t){var e=n.map(t.nodes(),(function(e){var r={};return n.forEach(t.outEdges(e),(function(e){r[e.w]=(r[e.w]||0)+t.edge(e).weight})),r}));return n.zipObject(t.nodes(),e)},predecessorWeights:function(t){var e=n.map(t.nodes(),(function(e){var r={};return n.forEach(t.inEdges(e),(function(e){r[e.v]=(r[e.v]||0)+t.edge(e).weight})),r}));return n.zipObject(t.nodes(),e)},intersectRect:function(t,e){var r,n,o=t.x,i=t.y,a=e.x-o,c=e.y-i,s=t.width/2,u=t.height/2;if(!a&&!c)throw new Error("Not possible to find intersection inside of the rectangle");return Math.abs(c)*s>Math.abs(a)*u?(c<0&&(u=-u),r=u*a/c,n=u):(a<0&&(s=-s),r=s,n=s*c/a),{x:o+r,y:i+n}},buildLayerMatrix:function(t){var e=n.map(n.range(a(t)+1),(function(){return[]}));return n.forEach(t.nodes(),(function(r){var o=t.node(r),i=o.rank;n.isUndefined(i)||(e[i][o.order]=r)})),e},normalizeRanks:function(t){var e=n.min(n.map(t.nodes(),(function(e){return t.node(e).rank})));n.forEach(t.nodes(),(function(r){var o=t.node(r);n.has(o,"rank")&&(o.rank-=e)}))},removeEmptyRanks:function(t){var e=n.min(n.map(t.nodes(),(function(e){return t.node(e).rank}))),r=[];n.forEach(t.nodes(),(function(n){var o=t.node(n).rank-e;r[o]||(r[o]=[]),r[o].push(n)}));var o=0,i=t.graph().nodeRankFactor;n.forEach(r,(function(e,r){n.isUndefined(e)&&r%i!=0?--o:o&&n.forEach(e,(function(e){t.node(e).rank+=o}))}))},addBorderNode:function(t,e,r,n){var o={width:0,height:0};return arguments.length>=4&&(o.rank=r,o.order=n),i(t,"border",o,e)},maxRank:a,partition:function(t,e){var r={lhs:[],rhs:[]};return n.forEach(t,(function(t){e(t)?r.lhs.push(t):r.rhs.push(t)})),r},time:function(t,e){var r=n.now();try{return e()}finally{console.log(t+" time: "+(n.now()-r)+"ms")}},notime:function(t,e){return e()}}},function(t,e){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},,function(t,e,r){var n;try{n={clone:r(582),constant:r(103),each:r(218),filter:r(215),has:r(204),isArray:r(11),isEmpty:r(508),isFunction:r(57),isUndefined:r(203),keys:r(33),map:r(202),reduce:r(200),size:r(505),transform:r(499),union:r(498),values:r(195)}}catch(t){}n||(n=window._),t.exports=n},,function(t,e,r){var n=r(117),o="object"==typeof self&&self&&self.Object===Object&&self,i=n||o||Function("return this")();t.exports=i},,function(t,e,r){var n;try{n=r(584)}catch(t){}n||(n=window.graphlib),t.exports=n},function(t,e){t.exports=function(t){return null!=t&&"object"==typeof t}},,,,,function(t,e,r){var n=r(528),o=r(518),i=r(36),a=r(11),c=r(511);t.exports=function(t){return"function"==typeof t?t:null==t?i:"object"==typeof t?a(t)?o(t[0],t[1]):n(t):c(t)}},function(t,e,r){var n=r(57),o=r(109);t.exports=function(t){return null!=t&&o(t.length)&&!n(t)}},,,,function(t,e,r){var n=r(232),o=r(107),i=r(29);t.exports=function(t){return i(t)?n(t):o(t)}},function(t,e,r){var n=r(38),o=r(250),i=r(249),a="[object Null]",c="[object Undefined]",s=n?n.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?c:a:s&&s in Object(t)?o(t):i(t)}},,function(t,e){t.exports=function(t){return t}},function(t,e,r){var n=r(571),o=r(568);t.exports=function(t,e){var r=o(t,e);return n(r)?r:void 0}},function(t,e,r){var n=r(20).Symbol;t.exports=n},function(t,e,r){var n=r(34),o=r(23),i="[object Symbol]";t.exports=function(t){return"symbol"==typeof t||o(t)&&n(t)==i}},function(t,e,r){var n=r(543),o=r(113),i=r(542),a=r(223),c=r(541),s=r(34),u=r(234),l=u(n),f=u(o),h=u(i),p=u(a),d=u(c),y=s;(n&&"[object DataView]"!=y(new n(new ArrayBuffer(1)))||o&&"[object Map]"!=y(new o)||i&&"[object Promise]"!=y(i.resolve())||a&&"[object Set]"!=y(new a)||c&&"[object WeakMap]"!=y(new c))&&(y=function(t){var e=s(t),r="[object Object]"==e?t.constructor:void 0,n=r?u(r):"";if(n)switch(n){case l:return"[object DataView]";case f:return"[object Map]";case h:return"[object Promise]";case p:return"[object Set]";case d:return"[object WeakMap]"}return e}),t.exports=y},function(t,e,r){var n=r(232),o=r(548),i=r(29);t.exports=function(t){return i(t)?n(t,!0):o(t)}},function(t,e,r){(function(t){var n=r(20),o=r(552),i="object"==typeof e&&e&&!e.nodeType&&e,a=i&&"object"==typeof t&&t&&!t.nodeType&&t,c=a&&a.exports===i?n.Buffer:void 0,s=(c?c.isBuffer:void 0)||o;t.exports=s}).call(this,r(110)(t))},function(t,e){t.exports=function(t,e){return t===e||t!=t&&e!=e}},,,,,,,,,,function(t,e,r){var n=r(39),o=1/0;t.exports=function(t){if("string"==typeof t||n(t))return t;var e=t+"";return"0"==e&&1/t==-o?"-0":e}},function(t,e,r){var n=r(551),o=r(75),i=r(108),a=i&&i.isTypedArray,c=a?o(a):n;t.exports=c},function(t,e,r){var n=r(553),o=r(23),i=Object.prototype,a=i.hasOwnProperty,c=i.propertyIsEnumerable,s=n(function(){return arguments}())?n:function(t){return o(t)&&a.call(t,"callee")&&!c.call(t,"callee")};t.exports=s},function(t,e,r){var n=r(78),o=r(77);t.exports=function(t,e,r,i){var a=!r;r||(r={});for(var c=-1,s=e.length;++c<s;){var u=e[c],l=i?i(r[u],t[u],u,r,t):void 0;void 0===l&&(l=t[u]),a?o(r,u,l):n(r,u,l)}return r}},function(t,e,r){var n=r(34),o=r(16),i="[object AsyncFunction]",a="[object Function]",c="[object GeneratorFunction]",s="[object Proxy]";t.exports=function(t){if(!o(t))return!1;var e=n(t);return e==a||e==c||e==i||e==s}},,,,,,,,,,function(t,e,r){"use strict";var n=r(7);t.exports={longestPath:function(t){var e={};n.forEach(t.sources(),(function r(o){var i=t.node(o);if(n.has(e,o))return i.rank;e[o]=!0;var a=n.min(n.map(t.outEdges(o),(function(e){return r(e.w)-t.edge(e).minlen})));return a!==Number.POSITIVE_INFINITY&&void 0!==a&&null!==a||(a=0),i.rank=a}))},slack:function(t,e){return t.node(e.w).rank-t.node(e.v).rank-t.edge(e).minlen}}},function(t,e,r){var n=r(43),o=r(29),i=r(76),a=r(16);t.exports=function(t,e,r){if(!a(r))return!1;var c=typeof e;return!!("number"==c?o(r)&&i(e,r.length):"string"==c&&e in r)&&n(r[e],t)}},function(t,e,r){var n=r(36),o=r(199),i=r(198);t.exports=function(t,e){return i(o(t,e,n),t+"")}},function(t,e){t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o}},function(t,e,r){var n=r(11),o=r(98),i=r(516),a=r(208);t.exports=function(t,e){return n(t)?t:o(t,e)?[t]:i(a(t))}},function(t,e,r){var n=r(102),o=r(530)(n);t.exports=o},function(t,e,r){var n=r(231)(Object.getPrototypeOf,Object);t.exports=n},function(t,e){var r=Object.prototype;t.exports=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||r)}},function(t,e){t.exports=function(t){return function(e){return t(e)}}},function(t,e){var r=9007199254740991,n=/^(?:0|[1-9]\d*)$/;t.exports=function(t,e){var o=typeof t;return!!(e=null==e?r:e)&&("number"==o||"symbol"!=o&&n.test(t))&&t>-1&&t%1==0&&t<e}},function(t,e,r){var n=r(233);t.exports=function(t,e,r){"__proto__"==e&&n?n(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}},function(t,e,r){var n=r(77),o=r(43),i=Object.prototype.hasOwnProperty;t.exports=function(t,e,r){var a=t[e];i.call(t,e)&&o(a,r)&&(void 0!==r||e in t)||n(t,e,r)}},function(t,e,r){var n=r(559);t.exports=function(t,e){var r=t.__data__;return n(e)?r["string"==typeof e?"string":"hash"]:r.map}},function(t,e,r){var n=r(37)(Object,"create");t.exports=n},function(t,e,r){var n=r(43);t.exports=function(t,e){for(var r=t.length;r--;)if(n(t[r][0],e))return r;return-1}},function(t,e,r){var n=r(581),o=r(580),i=r(579),a=r(578),c=r(577);function s(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}s.prototype.clear=n,s.prototype.delete=o,s.prototype.get=i,s.prototype.has=a,s.prototype.set=c,t.exports=s},function(t,e,r){var n=r(82),o=r(576),i=r(575),a=r(574),c=r(573),s=r(572);function u(t){var e=this.__data__=new n(t);this.size=e.size}u.prototype.clear=o,u.prototype.delete=i,u.prototype.get=a,u.prototype.has=c,u.prototype.set=s,t.exports=u},,,,,,,,,,,,,function(t,e,r){var n=r(39);t.exports=function(t,e,r){for(var o=-1,i=t.length;++o<i;){var a=t[o],c=e(a);if(null!=c&&(void 0===s?c==c&&!n(c):r(c,s)))var s=c,u=a}return u}},function(t,e,r){var n=r(105),o=r(497);t.exports=function t(e,r,i,a,c){var s=-1,u=e.length;for(i||(i=o),c||(c=[]);++s<u;){var l=e[s];r>0&&i(l)?r>1?t(l,r-1,i,a,c):n(c,l):a||(c[c.length]=l)}return c}},function(t,e,r){var n=r(11),o=r(39),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;t.exports=function(t,e){if(n(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!o(t))||a.test(t)||!i.test(t)||null!=e&&t in Object(e)}},function(t,e,r){var n=r(71),o=r(53);t.exports=function(t,e){for(var r=0,i=(e=n(e,t)).length;null!=t&&r<i;)t=t[o(e[r++])];return r&&r==i?t:void 0}},function(t,e){t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r}},function(t,e,r){var n=r(531)();t.exports=n},function(t,e,r){var n=r(101),o=r(33);t.exports=function(t,e){return t&&n(t,e,o)}},function(t,e){t.exports=function(t){return function(){return t}}},function(t,e,r){var n=r(222);t.exports=function(t){var e=new t.constructor(t.byteLength);return new n(e).set(new n(t)),e}},function(t,e){t.exports=function(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}},function(t,e,r){var n=r(228),o=r(227),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,c=a?function(t){return null==t?[]:(t=Object(t),n(a(t),(function(e){return i.call(t,e)})))}:o;t.exports=c},function(t,e,r){var n=r(74),o=r(550),i=Object.prototype.hasOwnProperty;t.exports=function(t){if(!n(t))return o(t);var e=[];for(var r in Object(t))i.call(t,r)&&"constructor"!=r&&e.push(r);return e}},function(t,e,r){(function(t){var n=r(117),o="object"==typeof e&&e&&!e.nodeType&&e,i=o&&"object"==typeof t&&t&&!t.nodeType&&t,a=i&&i.exports===o&&n.process,c=function(){try{var t=i&&i.require&&i.require("util").types;return t||a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=c}).call(this,r(110)(t))},function(t,e){var r=9007199254740991;t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=r}},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e){t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n&&!1!==e(t[r],r,t););return t}},function(t,e,r){var n=r(567),o=r(560),i=r(558),a=r(557),c=r(556);function s(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}s.prototype.clear=n,s.prototype.delete=o,s.prototype.get=i,s.prototype.has=a,s.prototype.set=c,t.exports=s},function(t,e,r){var n=r(37)(r(20),"Map");t.exports=n},function(t,e,r){"use strict";var n=r(18);t.exports=c;var o="\0",i="\0",a="";function c(t){this._isDirected=!n.has(t,"directed")||t.directed,this._isMultigraph=!!n.has(t,"multigraph")&&t.multigraph,this._isCompound=!!n.has(t,"compound")&&t.compound,this._label=void 0,this._defaultNodeLabelFn=n.constant(void 0),this._defaultEdgeLabelFn=n.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[i]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}function s(t,e){t[e]?t[e]++:t[e]=1}function u(t,e){--t[e]||delete t[e]}function l(t,e,r,i){var c=""+e,s=""+r;if(!t&&c>s){var u=c;c=s,s=u}return c+a+s+a+(n.isUndefined(i)?o:i)}function f(t,e){return l(t,e.v,e.w,e.name)}c.prototype._nodeCount=0,c.prototype._edgeCount=0,c.prototype.isDirected=function(){return this._isDirected},c.prototype.isMultigraph=function(){return this._isMultigraph},c.prototype.isCompound=function(){return this._isCompound},c.prototype.setGraph=function(t){return this._label=t,this},c.prototype.graph=function(){return this._label},c.prototype.setDefaultNodeLabel=function(t){return n.isFunction(t)||(t=n.constant(t)),this._defaultNodeLabelFn=t,this},c.prototype.nodeCount=function(){return this._nodeCount},c.prototype.nodes=function(){return n.keys(this._nodes)},c.prototype.sources=function(){var t=this;return n.filter(this.nodes(),(function(e){return n.isEmpty(t._in[e])}))},c.prototype.sinks=function(){var t=this;return n.filter(this.nodes(),(function(e){return n.isEmpty(t._out[e])}))},c.prototype.setNodes=function(t,e){var r=arguments,o=this;return n.each(t,(function(t){r.length>1?o.setNode(t,e):o.setNode(t)})),this},c.prototype.setNode=function(t,e){return n.has(this._nodes,t)?(arguments.length>1&&(this._nodes[t]=e),this):(this._nodes[t]=arguments.length>1?e:this._defaultNodeLabelFn(t),this._isCompound&&(this._parent[t]=i,this._children[t]={},this._children[i][t]=!0),this._in[t]={},this._preds[t]={},this._out[t]={},this._sucs[t]={},++this._nodeCount,this)},c.prototype.node=function(t){return this._nodes[t]},c.prototype.hasNode=function(t){return n.has(this._nodes,t)},c.prototype.removeNode=function(t){var e=this;if(n.has(this._nodes,t)){var r=function(t){e.removeEdge(e._edgeObjs[t])};delete this._nodes[t],this._isCompound&&(this._removeFromParentsChildList(t),delete this._parent[t],n.each(this.children(t),(function(t){e.setParent(t)})),delete this._children[t]),n.each(n.keys(this._in[t]),r),delete this._in[t],delete this._preds[t],n.each(n.keys(this._out[t]),r),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this},c.prototype.setParent=function(t,e){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(n.isUndefined(e))e=i;else{for(var r=e+="";!n.isUndefined(r);r=this.parent(r))if(r===t)throw new Error("Setting "+e+" as parent of "+t+" would create a cycle");this.setNode(e)}return this.setNode(t),this._removeFromParentsChildList(t),this._parent[t]=e,this._children[e][t]=!0,this},c.prototype._removeFromParentsChildList=function(t){delete this._children[this._parent[t]][t]},c.prototype.parent=function(t){if(this._isCompound){var e=this._parent[t];if(e!==i)return e}},c.prototype.children=function(t){if(n.isUndefined(t)&&(t=i),this._isCompound){var e=this._children[t];if(e)return n.keys(e)}else{if(t===i)return this.nodes();if(this.hasNode(t))return[]}},c.prototype.predecessors=function(t){var e=this._preds[t];if(e)return n.keys(e)},c.prototype.successors=function(t){var e=this._sucs[t];if(e)return n.keys(e)},c.prototype.neighbors=function(t){var e=this.predecessors(t);if(e)return n.union(e,this.successors(t))},c.prototype.isLeaf=function(t){return 0===(this.isDirected()?this.successors(t):this.neighbors(t)).length},c.prototype.filterNodes=function(t){var e=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});e.setGraph(this.graph());var r=this;n.each(this._nodes,(function(r,n){t(n)&&e.setNode(n,r)})),n.each(this._edgeObjs,(function(t){e.hasNode(t.v)&&e.hasNode(t.w)&&e.setEdge(t,r.edge(t))}));var o={};return this._isCompound&&n.each(e.nodes(),(function(t){e.setParent(t,function t(n){var i=r.parent(n);return void 0===i||e.hasNode(i)?(o[n]=i,i):i in o?o[i]:t(i)}(t))})),e},c.prototype.setDefaultEdgeLabel=function(t){return n.isFunction(t)||(t=n.constant(t)),this._defaultEdgeLabelFn=t,this},c.prototype.edgeCount=function(){return this._edgeCount},c.prototype.edges=function(){return n.values(this._edgeObjs)},c.prototype.setPath=function(t,e){var r=this,o=arguments;return n.reduce(t,(function(t,n){return o.length>1?r.setEdge(t,n,e):r.setEdge(t,n),n})),this},c.prototype.setEdge=function(){var t,e,r,o,i=!1,a=arguments[0];"object"==typeof a&&null!==a&&"v"in a?(t=a.v,e=a.w,r=a.name,2===arguments.length&&(o=arguments[1],i=!0)):(t=a,e=arguments[1],r=arguments[3],arguments.length>2&&(o=arguments[2],i=!0)),t=""+t,e=""+e,n.isUndefined(r)||(r=""+r);var c=l(this._isDirected,t,e,r);if(n.has(this._edgeLabels,c))return i&&(this._edgeLabels[c]=o),this;if(!n.isUndefined(r)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(e),this._edgeLabels[c]=i?o:this._defaultEdgeLabelFn(t,e,r);var u=function(t,e,r,n){var o=""+e,i=""+r;if(!t&&o>i){var a=o;o=i,i=a}var c={v:o,w:i};return n&&(c.name=n),c}(this._isDirected,t,e,r);return t=u.v,e=u.w,Object.freeze(u),this._edgeObjs[c]=u,s(this._preds[e],t),s(this._sucs[t],e),this._in[e][c]=u,this._out[t][c]=u,this._edgeCount++,this},c.prototype.edge=function(t,e,r){var n=1===arguments.length?f(this._isDirected,arguments[0]):l(this._isDirected,t,e,r);return this._edgeLabels[n]},c.prototype.hasEdge=function(t,e,r){var o=1===arguments.length?f(this._isDirected,arguments[0]):l(this._isDirected,t,e,r);return n.has(this._edgeLabels,o)},c.prototype.removeEdge=function(t,e,r){var n=1===arguments.length?f(this._isDirected,arguments[0]):l(this._isDirected,t,e,r),o=this._edgeObjs[n];return o&&(t=o.v,e=o.w,delete this._edgeLabels[n],delete this._edgeObjs[n],u(this._preds[e],t),u(this._sucs[t],e),delete this._in[e][n],delete this._out[t][n],this._edgeCount--),this},c.prototype.inEdges=function(t,e){var r=this._in[t];if(r){var o=n.values(r);return e?n.filter(o,(function(t){return t.v===e})):o}},c.prototype.outEdges=function(t,e){var r=this._out[t];if(r){var o=n.values(r);return e?n.filter(o,(function(t){return t.w===e})):o}},c.prototype.nodeEdges=function(t,e){var r=this.inEdges(t,e);if(r)return r.concat(this.outEdges(t,e))}},,,function(t,e,r){(function(e){var r="object"==typeof e&&e&&e.Object===Object&&e;t.exports=r}).call(this,r(252))},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,r){"use strict";var n=r(7),o=r(22).Graph,i=r(67).slack;function a(t,e){return n.forEach(t.nodes(),(function r(o){n.forEach(e.nodeEdges(o),(function(n){var a=n.v,c=o===a?n.w:a;t.hasNode(c)||i(e,n)||(t.setNode(c,{}),t.setEdge(o,c,{}),r(c))}))})),t.nodeCount()}function c(t,e){return n.minBy(e.edges(),(function(r){if(t.hasNode(r.v)!==t.hasNode(r.w))return i(e,r)}))}function s(t,e,r){n.forEach(t.nodes(),(function(t){e.node(t).rank+=r}))}t.exports=function(t){var e,r,n=new o({directed:!1}),u=t.nodes()[0],l=t.nodeCount();for(n.setNode(u,{});a(n,t)<l;)e=c(n,t),r=n.hasNode(e.v)?i(t,e):-i(t,e),s(n,t,r);return n}},function(t,e){t.exports=function(t,e){return t<e}},function(t,e){t.exports=function(t,e){if("__proto__"!=e)return t[e]}},function(t,e,r){var n=r(77),o=r(43);t.exports=function(t,e,r){(void 0===r||o(t[e],r))&&(void 0!==r||e in t)||n(t,e,r)}},function(t,e,r){var n=r(97);t.exports=function(t){return null!=t&&t.length?n(t,1):[]}},function(t,e,r){var n=r(251),o=1/0,i=17976931348623157e292;t.exports=function(t){return t?(t=n(t))===o||t===-o?(t<0?-1:1)*i:t==t?t:0:0===t?t:0}},function(t,e,r){var n=r(18);t.exports=function(t,e,r){n.isArray(e)||(e=[e]);var o=(t.isDirected()?t.successors:t.neighbors).bind(t),i=[],a={};return n.each(e,(function(e){if(!t.hasNode(e))throw new Error("Graph does not have node: "+e);!function t(e,r,o,i,a,c){n.has(i,r)||(i[r]=!0,o||c.push(r),n.each(a(r),(function(r){t(e,r,o,i,a,c)})),o&&c.push(r))}(t,e,"post"===r,a,o,i)})),i}},function(t,e,r){var n=r(18);function o(t){var e={},r={},o=[];if(n.each(t.sinks(),(function a(c){if(n.has(r,c))throw new i;n.has(e,c)||(r[c]=!0,e[c]=!0,n.each(t.predecessors(c),a),delete r[c],o.push(c))})),n.size(e)!==t.nodeCount())throw new i;return o}function i(){}t.exports=o,o.CycleException=i,i.prototype=new Error},function(t,e,r){var n=r(18);t.exports=function(t){var e=0,r=[],o={},i=[];return t.nodes().forEach((function(a){n.has(o,a)||function a(c){var s=o[c]={onStack:!0,lowlink:e,index:e++};if(r.push(c),t.successors(c).forEach((function(t){n.has(o,t)?o[t].onStack&&(s.lowlink=Math.min(s.lowlink,o[t].index)):(a(t),s.lowlink=Math.min(s.lowlink,o[t].lowlink))})),s.lowlink===s.index){var u,l=[];do{u=r.pop(),o[u].onStack=!1,l.push(u)}while(c!==u);i.push(l)}}(a)})),i}},function(t,e,r){var n=r(18);function o(){this._arr=[],this._keyIndices={}}t.exports=o,o.prototype.size=function(){return this._arr.length},o.prototype.keys=function(){return this._arr.map((function(t){return t.key}))},o.prototype.has=function(t){return n.has(this._keyIndices,t)},o.prototype.priority=function(t){var e=this._keyIndices[t];if(void 0!==e)return this._arr[e].priority},o.prototype.min=function(){if(0===this.size())throw new Error("Queue underflow");return this._arr[0].key},o.prototype.add=function(t,e){var r=this._keyIndices;if(t=String(t),!n.has(r,t)){var o=this._arr,i=o.length;return r[t]=i,o.push({key:t,priority:e}),this._decrease(i),!0}return!1},o.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var t=this._arr.pop();return delete this._keyIndices[t.key],this._heapify(0),t.key},o.prototype.decrease=function(t,e){var r=this._keyIndices[t];if(e>this._arr[r].priority)throw new Error("New priority is greater than current priority. Key: "+t+" Old: "+this._arr[r].priority+" New: "+e);this._arr[r].priority=e,this._decrease(r)},o.prototype._heapify=function(t){var e=this._arr,r=2*t,n=r+1,o=t;r<e.length&&(o=e[r].priority<e[o].priority?r:o,n<e.length&&(o=e[n].priority<e[o].priority?n:o),o!==t&&(this._swap(t,o),this._heapify(o)))},o.prototype._decrease=function(t){for(var e,r=this._arr,n=r[t].priority;0!==t&&!(r[e=t>>1].priority<n);)this._swap(t,e),t=e},o.prototype._swap=function(t,e){var r=this._arr,n=this._keyIndices,o=r[t],i=r[e];r[t]=i,r[e]=o,n[i.key]=t,n[o.key]=e}},function(t,e,r){var n=r(18),o=r(193);t.exports=function(t,e,r,n){return function(t,e,r,n){var i,a,c={},s=new o,u=function(t){var e=t.v!==i?t.v:t.w,n=c[e],o=r(t),u=a.distance+o;if(o<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+t+" Weight: "+o);u<n.distance&&(n.distance=u,n.predecessor=i,s.decrease(e,u))};for(t.nodes().forEach((function(t){var r=t===e?0:Number.POSITIVE_INFINITY;c[t]={distance:r},s.add(t,r)}));s.size()>0&&(i=s.removeMin(),(a=c[i]).distance!==Number.POSITIVE_INFINITY);)n(i).forEach(u);return c}(t,String(e),r||i,n||function(e){return t.outEdges(e)})};var i=n.constant(1)},function(t,e,r){var n=r(485),o=r(33);t.exports=function(t){return null==t?[]:n(t,o(t))}},function(t,e,r){var n=r(29),o=r(23);t.exports=function(t){return o(t)&&n(t)}},function(t,e){t.exports=function(t,e,r,n){for(var o=t.length,i=r+(n?1:-1);n?i--:++i<o;)if(e(t[i],i,t))return i;return-1}},function(t,e,r){var n=r(495),o=r(494)(n);t.exports=o},function(t,e,r){var n=r(496),o=Math.max;t.exports=function(t,e,r){return e=o(void 0===e?t.length-1:e,0),function(){for(var i=arguments,a=-1,c=o(i.length-e,0),s=Array(c);++a<c;)s[a]=i[e+a];a=-1;for(var u=Array(e+1);++a<e;)u[a]=i[a];return u[e]=r(s),n(t,this,u)}}},function(t,e,r){var n=r(507),o=r(72),i=r(28),a=r(506),c=r(11);t.exports=function(t,e,r){var s=c(t)?n:a,u=arguments.length<3;return s(t,i(e,4),r,u,o)}},function(t,e,r){var n=r(72),o=r(29);t.exports=function(t,e){var r=-1,i=o(t)?Array(t.length):[];return n(t,(function(t,n,o){i[++r]=e(t,n,o)})),i}},function(t,e,r){var n=r(70),o=r(28),i=r(201),a=r(11);t.exports=function(t,e){return(a(t)?n:i)(t,o(e,3))}},function(t,e){t.exports=function(t){return void 0===t}},function(t,e,r){var n=r(509),o=r(206);t.exports=function(t,e){return null!=t&&o(t,e,n)}},function(t,e){t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},function(t,e,r){var n=r(71),o=r(55),i=r(11),a=r(76),c=r(109),s=r(53);t.exports=function(t,e,r){for(var u=-1,l=(e=n(e,t)).length,f=!1;++u<l;){var h=s(e[u]);if(!(f=null!=t&&r(t,h)))break;t=t[h]}return f||++u!=l?f:!!(l=null==t?0:t.length)&&c(l)&&a(h,l)&&(i(t)||o(t))}},function(t,e,r){var n=r(512),o=r(206);t.exports=function(t,e){return null!=t&&o(t,e,n)}},function(t,e,r){var n=r(513);t.exports=function(t){return null==t?"":n(t)}},function(t,e){t.exports=function(t,e){return function(r){return null!=r&&r[t]===e&&(void 0!==e||t in Object(r))}}},function(t,e,r){var n=r(16);t.exports=function(t){return t==t&&!n(t)}},function(t,e){t.exports=function(t,e){return t.has(e)}},function(t,e,r){var n=r(112),o=r(525),i=r(524);function a(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new n;++e<r;)this.add(t[e])}a.prototype.add=a.prototype.push=o,a.prototype.has=i,t.exports=a},function(t,e,r){var n=r(212),o=r(523),i=r(211),a=1,c=2;t.exports=function(t,e,r,s,u,l){var f=r&a,h=t.length,p=e.length;if(h!=p&&!(f&&p>h))return!1;var d=l.get(t);if(d&&l.get(e))return d==e;var y=-1,v=!0,m=r&c?new n:void 0;for(l.set(t,e),l.set(e,t);++y<h;){var g=t[y],b=e[y];if(s)var w=f?s(b,g,y,e,t,l):s(g,b,y,t,e,l);if(void 0!==w){if(w)continue;v=!1;break}if(m){if(!o(e,(function(t,e){if(!i(m,e)&&(g===t||u(g,t,r,s,l)))return m.push(e)}))){v=!1;break}}else if(g!==b&&!u(g,b,r,s,l)){v=!1;break}}return l.delete(t),l.delete(e),v}},function(t,e,r){var n=r(526),o=r(23);t.exports=function t(e,r,i,a,c){return e===r||(null==e||null==r||!o(e)&&!o(r)?e!=e&&r!=r:n(e,r,i,a,t,c))}},function(t,e,r){var n=r(228),o=r(529),i=r(28),a=r(11);t.exports=function(t,e){return(a(t)?n:o)(t,i(e,3))}},function(t,e,r){var n=r(36);t.exports=function(t){return"function"==typeof t?t:n}},function(t,e,r){var n=r(111),o=r(72),i=r(216),a=r(11);t.exports=function(t,e){return(a(t)?n:o)(t,i(e))}},function(t,e,r){t.exports=r(217)},function(t,e,r){var n=r(16),o=Object.create,i=function(){function t(){}return function(e){if(!n(e))return{};if(o)return o(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}}();t.exports=i},function(t,e,r){var n=r(219),o=r(73),i=r(74);t.exports=function(t){return"function"!=typeof t.constructor||i(t)?{}:n(o(t))}},function(t,e,r){var n=r(104);t.exports=function(t,e){var r=e?n(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}},function(t,e,r){var n=r(20).Uint8Array;t.exports=n},function(t,e,r){var n=r(37)(r(20),"Set");t.exports=n},function(t,e,r){var n=r(105),o=r(11);t.exports=function(t,e,r){var i=e(t);return o(t)?i:n(i,r(t))}},function(t,e,r){var n=r(224),o=r(106),i=r(33);t.exports=function(t){return n(t,i,o)}},function(t,e,r){var n=r(105),o=r(73),i=r(106),a=r(227),c=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)n(e,i(t)),t=o(t);return e}:a;t.exports=c},function(t,e){t.exports=function(){return[]}},function(t,e){t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,o=0,i=[];++r<n;){var a=t[r];e(a,r,t)&&(i[o++]=a)}return i}},function(t,e){t.exports=function(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r<n;)e[r]=t[r];return e}},function(t,e,r){(function(t){var n=r(20),o="object"==typeof e&&e&&!e.nodeType&&e,i=o&&"object"==typeof t&&t&&!t.nodeType&&t,a=i&&i.exports===o?n.Buffer:void 0,c=a?a.allocUnsafe:void 0;t.exports=function(t,e){if(e)return t.slice();var r=t.length,n=c?c(r):new t.constructor(r);return t.copy(n),n}}).call(this,r(110)(t))},function(t,e){t.exports=function(t,e){return function(r){return t(e(r))}}},function(t,e,r){var n=r(554),o=r(55),i=r(11),a=r(42),c=r(76),s=r(54),u=Object.prototype.hasOwnProperty;t.exports=function(t,e){var r=i(t),l=!r&&o(t),f=!r&&!l&&a(t),h=!r&&!l&&!f&&s(t),p=r||l||f||h,d=p?n(t.length,String):[],y=d.length;for(var v in t)!e&&!u.call(t,v)||p&&("length"==v||f&&("offset"==v||"parent"==v)||h&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||c(v,y))||d.push(v);return d}},function(t,e,r){var n=r(37),o=function(){try{var t=n(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=o},function(t,e){var r=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return r.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},function(t,e,r){var n=r(83),o=r(111),i=r(78),a=r(555),c=r(549),s=r(230),u=r(229),l=r(546),f=r(545),h=r(225),p=r(544),d=r(40),y=r(540),v=r(539),m=r(220),g=r(11),b=r(42),w=r(535),_=r(16),x=r(533),O=r(33),k=1,E=2,S=4,j="[object Arguments]",L="[object Function]",P="[object GeneratorFunction]",N="[object Object]",A={};A[j]=A["[object Array]"]=A["[object ArrayBuffer]"]=A["[object DataView]"]=A["[object Boolean]"]=A["[object Date]"]=A["[object Float32Array]"]=A["[object Float64Array]"]=A["[object Int8Array]"]=A["[object Int16Array]"]=A["[object Int32Array]"]=A["[object Map]"]=A["[object Number]"]=A[N]=A["[object RegExp]"]=A["[object Set]"]=A["[object String]"]=A["[object Symbol]"]=A["[object Uint8Array]"]=A["[object Uint8ClampedArray]"]=A["[object Uint16Array]"]=A["[object Uint32Array]"]=!0,A["[object Error]"]=A[L]=A["[object WeakMap]"]=!1,t.exports=function t(e,r,T,C,I,M){var D,q=r&k,R=r&E,B=r&S;if(T&&(D=I?T(e,C,I,M):T(e)),void 0!==D)return D;if(!_(e))return e;var F=g(e);if(F){if(D=y(e),!q)return u(e,D)}else{var $=d(e),V=$==L||$==P;if(b(e))return s(e,q);if($==N||$==j||V&&!I){if(D=R||V?{}:m(e),!q)return R?f(e,c(D,e)):l(e,a(D,e))}else{if(!A[$])return I?e:{};D=v(e,$,q)}}M||(M=new n);var U=M.get(e);if(U)return U;if(M.set(e,D),x(e))return e.forEach((function(n){D.add(t(n,r,T,n,e,M))})),D;if(w(e))return e.forEach((function(n,o){D.set(o,t(n,r,T,o,e,M))})),D;var G=B?R?p:h:R?keysIn:O,z=F?void 0:G(e);return o(z||e,(function(n,o){z&&(n=e[o=n]),i(D,o,t(n,r,T,o,e,M))})),D}},,,,,,,,,,,,,,function(t,e){var r=Object.prototype.toString;t.exports=function(t){return r.call(t)}},function(t,e,r){var n=r(38),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,c=n?n.toStringTag:void 0;t.exports=function(t){var e=i.call(t,c),r=t[c];try{t[c]=void 0;var n=!0}catch(t){}var o=a.call(t);return n&&(e?t[c]=r:delete t[c]),o}},function(t,e,r){var n=r(16),o=r(39),i=NaN,a=/^\s+|\s+$/g,c=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,l=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(o(t))return i;if(n(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=n(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(a,"");var r=s.test(t);return r||u.test(t)?l(t.slice(2),r?2:8):c.test(t)?i:+t}},function(t,e){var r;r=function(){return this}();try{r=r||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,e,r){var n=r(20);t.exports=function(){return n.Date.now()}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e){t.exports="0.8.4"},function(t,e,r){var n=r(7),o=r(15),i=r(22).Graph;t.exports={debugOrdering:function(t){var e=o.buildLayerMatrix(t),r=new i({compound:!0,multigraph:!0}).setGraph({});return n.forEach(t.nodes(),(function(e){r.setNode(e,{label:e}),r.setParent(e,"layer"+t.node(e).rank)})),n.forEach(t.edges(),(function(t){r.setEdge(t.v,t.w,{},t.name)})),n.forEach(e,(function(t,e){var o="layer"+e;r.setNode(o,{rank:"same"}),n.reduce(t,(function(t,e){return r.setEdge(t,e,{style:"invis"}),e}))})),r}}},function(t,e,r){"use strict";var n=r(7),o=r(22).Graph,i=r(15);function a(t,e){var r={};return n.reduce(e,(function(e,o){var i=0,a=0,c=e.length,u=n.last(o);return n.forEach(o,(function(e,l){var f=function(t,e){if(t.node(e).dummy)return n.find(t.predecessors(e),(function(e){return t.node(e).dummy}))}(t,e),h=f?t.node(f).order:c;(f||e===u)&&(n.forEach(o.slice(a,l+1),(function(e){n.forEach(t.predecessors(e),(function(n){var o=t.node(n),a=o.order;!(a<i||h<a)||o.dummy&&t.node(e).dummy||s(r,n,e)}))})),a=l+1,i=h)})),o})),r}function c(t,e){var r={};function o(e,o,i,a,c){var u;n.forEach(n.range(o,i),(function(o){u=e[o],t.node(u).dummy&&n.forEach(t.predecessors(u),(function(e){var n=t.node(e);n.dummy&&(n.order<a||n.order>c)&&s(r,e,u)}))}))}return n.reduce(e,(function(e,r){var i,a=-1,c=0;return n.forEach(r,(function(n,s){if("border"===t.node(n).dummy){var u=t.predecessors(n);u.length&&(i=t.node(u[0]).order,o(r,c,s,a,i),c=s,a=i)}o(r,c,r.length,i,e.length)})),r})),r}function s(t,e,r){if(e>r){var n=e;e=r,r=n}var o=t[e];o||(t[e]=o={}),o[r]=!0}function u(t,e,r){if(e>r){var o=e;e=r,r=o}return n.has(t[e],r)}function l(t,e,r,o){var i={},a={},c={};return n.forEach(e,(function(t){n.forEach(t,(function(t,e){i[t]=t,a[t]=t,c[t]=e}))})),n.forEach(e,(function(t){var e=-1;n.forEach(t,(function(t){var s=o(t);if(s.length)for(var l=((s=n.sortBy(s,(function(t){return c[t]}))).length-1)/2,f=Math.floor(l),h=Math.ceil(l);f<=h;++f){var p=s[f];a[t]===t&&e<c[p]&&!u(r,t,p)&&(a[p]=t,a[t]=i[t]=i[p],e=c[p])}}))})),{root:i,align:a}}function f(t,e,r,i,a){var c={},s=function(t,e,r,i){var a=new o,c=t.graph(),s=function(t,e,r){return function(o,i,a){var c,s=o.node(i),u=o.node(a),l=0;if(l+=s.width/2,n.has(s,"labelpos"))switch(s.labelpos.toLowerCase()){case"l":c=-s.width/2;break;case"r":c=s.width/2}if(c&&(l+=r?c:-c),c=0,l+=(s.dummy?e:t)/2,l+=(u.dummy?e:t)/2,l+=u.width/2,n.has(u,"labelpos"))switch(u.labelpos.toLowerCase()){case"l":c=u.width/2;break;case"r":c=-u.width/2}return c&&(l+=r?c:-c),c=0,l}}(c.nodesep,c.edgesep,i);return n.forEach(e,(function(e){var o;n.forEach(e,(function(e){var n=r[e];if(a.setNode(n),o){var i=r[o],c=a.edge(i,n);a.setEdge(i,n,Math.max(s(t,e,o),c||0))}o=e}))})),a}(t,e,r,a),u=a?"borderLeft":"borderRight";function l(t,e){for(var r=s.nodes(),n=r.pop(),o={};n;)o[n]?t(n):(o[n]=!0,r.push(n),r=r.concat(e(n))),n=r.pop()}return l((function(t){c[t]=s.inEdges(t).reduce((function(t,e){return Math.max(t,c[e.v]+s.edge(e))}),0)}),s.predecessors.bind(s)),l((function(e){var r=s.outEdges(e).reduce((function(t,e){return Math.min(t,c[e.w]-s.edge(e))}),Number.POSITIVE_INFINITY),n=t.node(e);r!==Number.POSITIVE_INFINITY&&n.borderType!==u&&(c[e]=Math.max(c[e],r))}),s.successors.bind(s)),n.forEach(i,(function(t){c[t]=c[r[t]]})),c}function h(t,e){return n.minBy(n.values(e),(function(e){var r=Number.NEGATIVE_INFINITY,o=Number.POSITIVE_INFINITY;return n.forIn(e,(function(e,n){var i=function(t,e){return t.node(e).width}(t,n)/2;r=Math.max(e+i,r),o=Math.min(e-i,o)})),r-o}))}function p(t,e){var r=n.values(e),o=n.min(r),i=n.max(r);n.forEach(["u","d"],(function(r){n.forEach(["l","r"],(function(a){var c,s=r+a,u=t[s];if(u!==e){var l=n.values(u);(c="l"===a?o-n.min(l):i-n.max(l))&&(t[s]=n.mapValues(u,(function(t){return t+c})))}}))}))}function d(t,e){return n.mapValues(t.ul,(function(r,o){if(e)return t[e.toLowerCase()][o];var i=n.sortBy(n.map(t,o));return(i[1]+i[2])/2}))}t.exports={positionX:function(t){var e,r=i.buildLayerMatrix(t),o=n.merge(a(t,r),c(t,r)),s={};n.forEach(["u","d"],(function(i){e="u"===i?r:n.values(r).reverse(),n.forEach(["l","r"],(function(r){"r"===r&&(e=n.map(e,(function(t){return n.values(t).reverse()})));var a=("u"===i?t.predecessors:t.successors).bind(t),c=l(t,e,o,a),u=f(t,e,c.root,c.align,"r"===r);"r"===r&&(u=n.mapValues(u,(function(t){return-t}))),s[i+r]=u}))}));var u=h(t,s);return p(s,u),d(s,t.graph().align)},findType1Conflicts:a,findType2Conflicts:c,addConflict:s,hasConflict:u,verticalAlignment:l,horizontalCompaction:f,alignCoordinates:p,findSmallestWidthAlignment:h,balance:d}},function(t,e,r){"use strict";var n=r(7),o=r(15),i=r(417).positionX;t.exports=function(t){(function(t){var e=o.buildLayerMatrix(t),r=t.graph().ranksep,i=0;n.forEach(e,(function(e){var o=n.max(n.map(e,(function(e){return t.node(e).height})));n.forEach(e,(function(e){t.node(e).y=i+o/2})),i+=o+r}))})(t=o.asNonCompoundGraph(t)),n.forEach(i(t),(function(e,r){t.node(r).x=e}))}},function(t,e,r){var n=r(7);t.exports=function(t,e,r){var o,i={};n.forEach(r,(function(r){for(var n,a,c=t.parent(r);c;){if((n=t.parent(c))?(a=i[n],i[n]=c):(a=o,o=c),a&&a!==c)return void e.setEdge(a,c);c=n}}))}},function(t,e,r){var n=r(7),o=r(22).Graph;t.exports=function(t,e,r){var i=function(t){for(var e;t.hasNode(e=n.uniqueId("_root")););return e}(t),a=new o({compound:!0}).setGraph({root:i}).setDefaultNodeLabel((function(e){return t.node(e)}));return n.forEach(t.nodes(),(function(o){var c=t.node(o),s=t.parent(o);(c.rank===e||c.minRank<=e&&e<=c.maxRank)&&(a.setNode(o),a.setParent(o,s||i),n.forEach(t[r](o),(function(e){var r=e.v===o?e.w:e.v,i=a.edge(r,o),c=n.isUndefined(i)?0:i.weight;a.setEdge(r,o,{weight:t.edge(e).weight+c})})),n.has(c,"minRank")&&a.setNode(o,{borderLeft:c.borderLeft[e],borderRight:c.borderRight[e]}))})),a}},function(t,e,r){var n=r(7),o=r(15);function i(t,e,r){for(var o;e.length&&(o=n.last(e)).i<=r;)e.pop(),t.push(o.vs),r++;return r}t.exports=function(t,e){var r=o.partition(t,(function(t){return n.has(t,"barycenter")})),a=r.lhs,c=n.sortBy(r.rhs,(function(t){return-t.i})),s=[],u=0,l=0,f=0;a.sort(function(t){return function(e,r){return e.barycenter<r.barycenter?-1:e.barycenter>r.barycenter?1:t?r.i-e.i:e.i-r.i}}(!!e)),f=i(s,c,f),n.forEach(a,(function(t){f+=t.vs.length,s.push(t.vs),u+=t.barycenter*t.weight,l+=t.weight,f=i(s,c,f)}));var h={vs:n.flatten(s,!0)};return l&&(h.barycenter=u/l,h.weight=l),h}},function(t,e,r){"use strict";var n=r(7);t.exports=function(t,e){var r={};return n.forEach(t,(function(t,e){var o=r[t.v]={indegree:0,in:[],out:[],vs:[t.v],i:e};n.isUndefined(t.barycenter)||(o.barycenter=t.barycenter,o.weight=t.weight)})),n.forEach(e.edges(),(function(t){var e=r[t.v],o=r[t.w];n.isUndefined(e)||n.isUndefined(o)||(o.indegree++,e.out.push(r[t.w]))})),function(t){var e=[];function r(t){return function(e){e.merged||(n.isUndefined(e.barycenter)||n.isUndefined(t.barycenter)||e.barycenter>=t.barycenter)&&function(t,e){var r=0,n=0;t.weight&&(r+=t.barycenter*t.weight,n+=t.weight),e.weight&&(r+=e.barycenter*e.weight,n+=e.weight),t.vs=e.vs.concat(t.vs),t.barycenter=r/n,t.weight=n,t.i=Math.min(e.i,t.i),e.merged=!0}(t,e)}}function o(e){return function(r){r.in.push(e),0==--r.indegree&&t.push(r)}}for(;t.length;){var i=t.pop();e.push(i),n.forEach(i.in.reverse(),r(i)),n.forEach(i.out,o(i))}return n.map(n.filter(e,(function(t){return!t.merged})),(function(t){return n.pick(t,["vs","i","barycenter","weight"])}))}(n.filter(r,(function(t){return!t.indegree})))}},function(t,e,r){var n=r(7);t.exports=function(t,e){return n.map(e,(function(e){var r=t.inEdges(e);if(r.length){var o=n.reduce(r,(function(e,r){var n=t.edge(r),o=t.node(r.v);return{sum:e.sum+n.weight*o.order,weight:e.weight+n.weight}}),{sum:0,weight:0});return{v:e,barycenter:o.sum/o.weight,weight:o.weight}}return{v:e}}))}},function(t,e,r){var n=r(7),o=r(423),i=r(422),a=r(421);t.exports=function t(e,r,c,s){var u=e.children(r),l=e.node(r),f=l?l.borderLeft:void 0,h=l?l.borderRight:void 0,p={};f&&(u=n.filter(u,(function(t){return t!==f&&t!==h})));var d=o(e,u);n.forEach(d,(function(r){if(e.children(r.v).length){var o=t(e,r.v,c,s);p[r.v]=o,n.has(o,"barycenter")&&function(t,e){n.isUndefined(t.barycenter)?(t.barycenter=e.barycenter,t.weight=e.weight):(t.barycenter=(t.barycenter*t.weight+e.barycenter*e.weight)/(t.weight+e.weight),t.weight+=e.weight)}(r,o)}}));var y=i(d,c);!function(t,e){n.forEach(t,(function(t){t.vs=n.flatten(t.vs.map((function(t){return e[t]?e[t].vs:t})),!0)}))}(y,p);var v=a(y,s);if(f&&(v.vs=n.flatten([f,v.vs,h],!0),e.predecessors(f).length)){var m=e.node(e.predecessors(f)[0]),g=e.node(e.predecessors(h)[0]);n.has(v,"barycenter")||(v.barycenter=0,v.weight=0),v.barycenter=(v.barycenter*v.weight+m.order+g.order)/(v.weight+2),v.weight+=2}return v}},function(t,e,r){"use strict";var n=r(7);function o(t,e,r){for(var o=n.zipObject(r,n.map(r,(function(t,e){return e}))),i=n.flatten(n.map(e,(function(e){return n.sortBy(n.map(t.outEdges(e),(function(e){return{pos:o[e.w],weight:t.edge(e).weight}})),"pos")})),!0),a=1;a<r.length;)a<<=1;var c=2*a-1;a-=1;var s=n.map(new Array(c),(function(){return 0})),u=0;return n.forEach(i.forEach((function(t){var e=t.pos+a;s[e]+=t.weight;for(var r=0;e>0;)e%2&&(r+=s[e+1]),s[e=e-1>>1]+=t.weight;u+=t.weight*r}))),u}t.exports=function(t,e){for(var r=0,n=1;n<e.length;++n)r+=o(t,e[n-1],e[n]);return r}},function(t,e,r){"use strict";var n=r(7);t.exports=function(t){var e={},r=n.filter(t.nodes(),(function(e){return!t.children(e).length})),o=n.max(n.map(r,(function(e){return t.node(e).rank}))),i=n.map(n.range(o+1),(function(){return[]})),a=n.sortBy(r,(function(e){return t.node(e).rank}));return n.forEach(a,(function r(o){if(!n.has(e,o)){e[o]=!0;var a=t.node(o);i[a.rank].push(o),n.forEach(t.successors(o),r)}})),i}},function(t,e,r){"use strict";var n=r(7),o=r(426),i=r(425),a=r(424),c=r(420),s=r(419),u=r(22).Graph,l=r(15);function f(t,e,r){return n.map(e,(function(e){return c(t,e,r)}))}function h(t,e){var r=new u;n.forEach(t,(function(t){var o=t.graph().root,i=a(t,o,r,e);n.forEach(i.vs,(function(e,r){t.node(e).order=r})),s(t,r,i.vs)}))}function p(t,e){n.forEach(e,(function(e){n.forEach(e,(function(e,r){t.node(e).order=r}))}))}t.exports=function(t){var e=l.maxRank(t),r=f(t,n.range(1,e+1),"inEdges"),a=f(t,n.range(e-1,-1,-1),"outEdges"),c=o(t);p(t,c);for(var s,u=Number.POSITIVE_INFINITY,d=0,y=0;y<4;++d,++y){h(d%2?r:a,d%4>=2),c=l.buildLayerMatrix(t);var v=i(t,c);v<u&&(y=0,s=n.cloneDeep(c),u=v)}p(t,s)}},function(t,e,r){"use strict";var n=r(7);function o(t){n.forEach(t.nodes(),(function(e){i(t.node(e))})),n.forEach(t.edges(),(function(e){i(t.edge(e))}))}function i(t){var e=t.width;t.width=t.height,t.height=e}function a(t){t.y=-t.y}function c(t){var e=t.x;t.x=t.y,t.y=e}t.exports={adjust:function(t){var e=t.graph().rankdir.toLowerCase();"lr"!==e&&"rl"!==e||o(t)},undo:function(t){var e=t.graph().rankdir.toLowerCase();"bt"!==e&&"rl"!==e||function(t){n.forEach(t.nodes(),(function(e){a(t.node(e))})),n.forEach(t.edges(),(function(e){var r=t.edge(e);n.forEach(r.points,a),n.has(r,"y")&&a(r)}))}(t),"lr"!==e&&"rl"!==e||(function(t){n.forEach(t.nodes(),(function(e){c(t.node(e))})),n.forEach(t.edges(),(function(e){var r=t.edge(e);n.forEach(r.points,c),n.has(r,"x")&&c(r)}))}(t),o(t))}}},function(t,e,r){var n=r(7),o=r(15);function i(t,e,r,n,i,a){var c={width:0,height:0,rank:a,borderType:e},s=i[e][a-1],u=o.addDummyNode(t,"border",c,r);i[e][a]=u,t.setParent(u,n),s&&t.setEdge(s,u,{weight:1})}t.exports=function(t){n.forEach(t.children(),(function e(r){var o=t.children(r),a=t.node(r);if(o.length&&n.forEach(o,e),n.has(a,"minRank")){a.borderLeft=[],a.borderRight=[];for(var c=a.minRank,s=a.maxRank+1;c<s;++c)i(t,"borderLeft","_bl",r,a,c),i(t,"borderRight","_br",r,a,c)}}))}},function(t,e,r){var n=r(7),o=r(15);t.exports={run:function(t){var e=o.addDummyNode(t,"root",{},"_root"),r=function(t){var e={};return n.forEach(t.children(),(function(r){!function r(o,i){var a=t.children(o);a&&a.length&&n.forEach(a,(function(t){r(t,i+1)})),e[o]=i}(r,1)})),e}(t),i=n.max(n.values(r))-1,a=2*i+1;t.graph().nestingRoot=e,n.forEach(t.edges(),(function(e){t.edge(e).minlen*=a}));var c=function(t){return n.reduce(t.edges(),(function(e,r){return e+t.edge(r).weight}),0)}(t)+1;n.forEach(t.children(),(function(s){!function t(e,r,i,a,c,s,u){var l=e.children(u);if(l.length){var f=o.addBorderNode(e,"_bt"),h=o.addBorderNode(e,"_bb"),p=e.node(u);e.setParent(f,u),p.borderTop=f,e.setParent(h,u),p.borderBottom=h,n.forEach(l,(function(n){t(e,r,i,a,c,s,n);var o=e.node(n),l=o.borderTop?o.borderTop:n,p=o.borderBottom?o.borderBottom:n,d=o.borderTop?a:2*a,y=l!==p?1:c-s[u]+1;e.setEdge(f,l,{weight:d,minlen:y,nestingEdge:!0}),e.setEdge(p,h,{weight:d,minlen:y,nestingEdge:!0})})),e.parent(u)||e.setEdge(r,f,{weight:0,minlen:c+s[u]})}else u!==r&&e.setEdge(r,u,{weight:0,minlen:i})}(t,e,a,c,i,r,s)})),t.graph().nodeRankFactor=a},cleanup:function(t){var e=t.graph();t.removeNode(e.nestingRoot),delete e.nestingRoot,n.forEach(t.edges(),(function(e){var r=t.edge(e);r.nestingEdge&&t.removeEdge(e)}))}}},function(t,e,r){var n=r(7);t.exports=function(t){var e=function(t){var e={},r=0;return n.forEach(t.children(),(function o(i){var a=r;n.forEach(t.children(i),o),e[i]={low:a,lim:r++}})),e}(t);n.forEach(t.graph().dummyChains,(function(r){for(var n=t.node(r),o=n.edgeObj,i=function(t,e,r,n){var o,i,a=[],c=[],s=Math.min(e[r].low,e[n].low),u=Math.max(e[r].lim,e[n].lim);o=r;do{o=t.parent(o),a.push(o)}while(o&&(e[o].low>s||u>e[o].lim));for(i=o,o=n;(o=t.parent(o))!==i;)c.push(o);return{path:a.concat(c.reverse()),lca:i}}(t,e,o.v,o.w),a=i.path,c=i.lca,s=0,u=a[s],l=!0;r!==o.w;){if(n=t.node(r),l){for(;(u=a[s])!==c&&t.node(u).maxRank<n.rank;)s++;u===c&&(l=!1)}if(!l){for(;s<a.length-1&&t.node(u=a[s+1]).minRank<=n.rank;)s++;u=a[s]}t.setParent(r,u),r=t.successors(r)[0]}}))}},function(t,e,r){"use strict";var n=r(7),o=r(184),i=r(67).slack,a=r(67).longestPath,c=r(22).alg.preorder,s=r(22).alg.postorder,u=r(15).simplify;function l(t){t=u(t),a(t);var e,r=o(t);for(p(r),f(r,t);e=d(r);)v(r,t,e,y(r,t,e))}function f(t,e){var r=s(t,t.nodes());r=r.slice(0,r.length-1),n.forEach(r,(function(r){!function(t,e,r){var n=t.node(r).parent;t.edge(r,n).cutvalue=h(t,e,r)}(t,e,r)}))}function h(t,e,r){var o=t.node(r).parent,i=!0,a=e.edge(r,o),c=0;return a||(i=!1,a=e.edge(o,r)),c=a.weight,n.forEach(e.nodeEdges(r),(function(n){var a=n.v===r,s=a?n.w:n.v;if(s!==o){var u=a===i,l=e.edge(n).weight;if(c+=u?l:-l,function(t,e,r){return t.hasEdge(e,r)}(t,r,s)){var f=t.edge(r,s).cutvalue;c+=u?-f:f}}})),c}function p(t,e){arguments.length<2&&(e=t.nodes()[0]),function t(e,r,o,i,a){var c=o,s=e.node(i);return r[i]=!0,n.forEach(e.neighbors(i),(function(a){n.has(r,a)||(o=t(e,r,o,a,i))})),s.low=c,s.lim=o++,a?s.parent=a:delete s.parent,o}(t,{},1,e)}function d(t){return n.find(t.edges(),(function(e){return t.edge(e).cutvalue<0}))}function y(t,e,r){var o=r.v,a=r.w;e.hasEdge(o,a)||(o=r.w,a=r.v);var c=t.node(o),s=t.node(a),u=c,l=!1;c.lim>s.lim&&(u=s,l=!0);var f=n.filter(e.edges(),(function(e){return l===m(t,t.node(e.v),u)&&l!==m(t,t.node(e.w),u)}));return n.minBy(f,(function(t){return i(e,t)}))}function v(t,e,r,o){var i=r.v,a=r.w;t.removeEdge(i,a),t.setEdge(o.v,o.w,{}),p(t),f(t,e),function(t,e){var r=n.find(t.nodes(),(function(t){return!e.node(t).parent})),o=c(t,r);o=o.slice(1),n.forEach(o,(function(r){var n=t.node(r).parent,o=e.edge(r,n),i=!1;o||(o=e.edge(n,r),i=!0),e.node(r).rank=e.node(n).rank+(i?o.minlen:-o.minlen)}))}(t,e)}function m(t,e,r){return r.low<=e.lim&&e.lim<=r.lim}t.exports=l,l.initLowLimValues=p,l.initCutValues=f,l.calcCutValue=h,l.leaveEdge=d,l.enterEdge=y,l.exchangeEdges=v},function(t,e,r){"use strict";var n=r(67).longestPath,o=r(184),i=r(432);t.exports=function(t){switch(t.graph().ranker){case"network-simplex":c(t);break;case"tight-tree":!function(t){n(t),o(t)}(t);break;case"longest-path":a(t);break;default:c(t)}};var a=n;function c(t){i(t)}},function(t,e,r){"use strict";var n=r(7),o=r(15);t.exports={run:function(t){t.graph().dummyChains=[],n.forEach(t.edges(),(function(e){!function(t,e){var r,n,i,a=e.v,c=t.node(a).rank,s=e.w,u=t.node(s).rank,l=e.name,f=t.edge(e),h=f.labelRank;if(u!==c+1){for(t.removeEdge(e),i=0,++c;c<u;++i,++c)f.points=[],n={width:0,height:0,edgeLabel:f,edgeObj:e,rank:c},r=o.addDummyNode(t,"edge",n,"_d"),c===h&&(n.width=f.width,n.height=f.height,n.dummy="edge-label",n.labelpos=f.labelpos),t.setEdge(a,r,{weight:f.weight},l),0===i&&t.graph().dummyChains.push(r),a=r;t.setEdge(a,s,{weight:f.weight},l)}}(t,e)}))},undo:function(t){n.forEach(t.graph().dummyChains,(function(e){var r,n=t.node(e),o=n.edgeLabel;for(t.setEdge(n.edgeObj,o);n.dummy;)r=t.successors(e)[0],t.removeNode(e),o.points.push({x:n.x,y:n.y}),"edge-label"===n.dummy&&(o.x=n.x,o.y=n.y,o.width=n.width,o.height=n.height),e=r,n=t.node(e)}))}}},function(t,e){function r(){var t={};t._next=t._prev=t,this._sentinel=t}function n(t){t._prev._next=t._next,t._next._prev=t._prev,delete t._next,delete t._prev}function o(t,e){if("_next"!==t&&"_prev"!==t)return e}t.exports=r,r.prototype.dequeue=function(){var t=this._sentinel,e=t._prev;if(e!==t)return n(e),e},r.prototype.enqueue=function(t){var e=this._sentinel;t._prev&&t._next&&n(t),t._next=e._next,e._next._prev=t,e._next=t,t._prev=e},r.prototype.toString=function(){for(var t=[],e=this._sentinel,r=e._prev;r!==e;)t.push(JSON.stringify(r,o)),r=r._prev;return"["+t.join(", ")+"]"}},function(t,e,r){var n=r(7),o=r(22).Graph,i=r(435);t.exports=function(t,e){if(t.nodeCount()<=1)return[];var r=function(t,e){var r=new o,a=0,c=0;n.forEach(t.nodes(),(function(t){r.setNode(t,{v:t,in:0,out:0})})),n.forEach(t.edges(),(function(t){var n=r.edge(t.v,t.w)||0,o=e(t),i=n+o;r.setEdge(t.v,t.w,i),c=Math.max(c,r.node(t.v).out+=o),a=Math.max(a,r.node(t.w).in+=o)}));var u=n.range(c+a+3).map((function(){return new i})),l=a+1;return n.forEach(r.nodes(),(function(t){s(u,l,r.node(t))})),{graph:r,buckets:u,zeroIdx:l}}(t,e||a),u=function(t,e,r){for(var n,o=[],i=e[e.length-1],a=e[0];t.nodeCount();){for(;n=a.dequeue();)c(t,e,r,n);for(;n=i.dequeue();)c(t,e,r,n);if(t.nodeCount())for(var s=e.length-2;s>0;--s)if(n=e[s].dequeue()){o=o.concat(c(t,e,r,n,!0));break}}return o}(r.graph,r.buckets,r.zeroIdx);return n.flatten(n.map(u,(function(e){return t.outEdges(e.v,e.w)})),!0)};var a=n.constant(1);function c(t,e,r,o,i){var a=i?[]:void 0;return n.forEach(t.inEdges(o.v),(function(n){var o=t.edge(n),c=t.node(n.v);i&&a.push({v:n.v,w:n.w}),c.out-=o,s(e,r,c)})),n.forEach(t.outEdges(o.v),(function(n){var o=t.edge(n),i=n.w,a=t.node(i);a.in-=o,s(e,r,a)})),t.removeNode(o.v),a}function s(t,e,r){r.out?r.in?t[r.out-r.in+e].enqueue(r):t[t.length-1].enqueue(r):t[0].enqueue(r)}},function(t,e,r){"use strict";var n=r(7),o=r(436);t.exports={run:function(t){var e="greedy"===t.graph().acyclicer?o(t,function(t){return function(e){return t.edge(e).weight}}(t)):function(t){var e=[],r={},o={};return n.forEach(t.nodes(),(function i(a){n.has(o,a)||(o[a]=!0,r[a]=!0,n.forEach(t.outEdges(a),(function(t){n.has(r,t.w)?e.push(t):i(t.w)})),delete r[a])})),e}(t);n.forEach(e,(function(e){var r=t.edge(e);t.removeEdge(e),r.forwardName=e.name,r.reversed=!0,t.setEdge(e.w,e.v,r,n.uniqueId("rev"))}))},undo:function(t){n.forEach(t.edges(),(function(e){var r=t.edge(e);if(r.reversed){t.removeEdge(e);var n=r.forwardName;delete r.reversed,delete r.forwardName,t.setEdge(e.w,e.v,r,n)}}))}}},function(t,e){t.exports=function(t,e,r){for(var n=-1,o=t.length,i=e.length,a={};++n<o;){var c=n<i?e[n]:void 0;r(a,t[n],c)}return a}},function(t,e,r){var n=r(78),o=r(438);t.exports=function(t,e){return o(t||[],e||[],n)}},function(t,e,r){var n=r(208),o=0;t.exports=function(t){var e=++o;return n(t)+e}},function(t,e,r){var n=r(39);t.exports=function(t,e){if(t!==e){var r=void 0!==t,o=null===t,i=t==t,a=n(t),c=void 0!==e,s=null===e,u=e==e,l=n(e);if(!s&&!l&&!a&&t>e||a&&c&&u&&!s&&!l||o&&c&&u||!r&&u||!i)return 1;if(!o&&!a&&!l&&t<e||l&&r&&i&&!o&&!a||s&&r&&i||!c&&i||!u)return-1}return 0}},function(t,e,r){var n=r(441);t.exports=function(t,e,r){for(var o=-1,i=t.criteria,a=e.criteria,c=i.length,s=r.length;++o<c;){var u=n(i[o],a[o]);if(u)return o>=s?u:u*("desc"==r[o]?-1:1)}return t.index-e.index}},function(t,e){t.exports=function(t,e){var r=t.length;for(t.sort(e);r--;)t[r]=t[r].value;return t}},function(t,e,r){var n=r(70),o=r(28),i=r(201),a=r(443),c=r(75),s=r(442),u=r(36);t.exports=function(t,e,r){var l=-1;e=n(e.length?e:[u],c(o));var f=i(t,(function(t,r,o){return{criteria:n(e,(function(e){return e(t)})),index:++l,value:t}}));return a(f,(function(t,e){return s(t,e,r)}))}},function(t,e,r){var n=r(97),o=r(444),i=r(69),a=r(68),c=i((function(t,e){if(null==t)return[];var r=e.length;return r>1&&a(t,e[0],e[1])?e=[]:r>2&&a(e[0],e[1],e[2])&&(e=[e[0]]),o(t,n(e,1),[])}));t.exports=c},function(t,e){var r=Math.ceil,n=Math.max;t.exports=function(t,e,o,i){for(var a=-1,c=n(r((e-t)/(o||1)),0),s=Array(c);c--;)s[i?c:++a]=t,t+=o;return s}},function(t,e,r){var n=r(446),o=r(68),i=r(189);t.exports=function(t){return function(e,r,a){return a&&"number"!=typeof a&&o(e,r,a)&&(r=a=void 0),e=i(e),void 0===r?(r=e,e=0):r=i(r),a=void 0===a?e<r?1:-1:i(a),n(e,r,a,t)}}},function(t,e,r){var n=r(447)();t.exports=n},function(t,e,r){var n=r(188),o=r(199),i=r(198);t.exports=function(t){return i(o(t,void 0,n),t+"")}},function(t,e,r){var n=r(78),o=r(71),i=r(76),a=r(16),c=r(53);t.exports=function(t,e,r,s){if(!a(t))return t;for(var u=-1,l=(e=o(e,t)).length,f=l-1,h=t;null!=h&&++u<l;){var p=c(e[u]),d=r;if(u!=f){var y=h[p];void 0===(d=s?s(y,p,h):void 0)&&(d=a(y)?y:i(e[u+1])?[]:{})}n(h,p,d),h=h[p]}return t}},function(t,e,r){var n=r(99),o=r(450),i=r(71);t.exports=function(t,e,r){for(var a=-1,c=e.length,s={};++a<c;){var u=e[a],l=n(t,u);r(l,u)&&o(s,i(u,t),l)}return s}},function(t,e,r){var n=r(451),o=r(207);t.exports=function(t,e){return n(t,e,(function(e,r){return o(t,r)}))}},function(t,e,r){var n=r(452),o=r(449)((function(t,e){return null==t?{}:n(t,e)}));t.exports=o},function(t,e,r){var n=r(96),o=r(28),i=r(185);t.exports=function(t,e){return t&&t.length?n(t,o(e,2),i):void 0}},function(t,e,r){var n=r(96),o=r(185),i=r(36);t.exports=function(t){return t&&t.length?n(t,i,o):void 0}},function(t,e,r){var n=r(69),o=r(68);t.exports=function(t){return n((function(e,r){var n=-1,i=r.length,a=i>1?r[i-1]:void 0,c=i>2?r[2]:void 0;for(a=t.length>3&&"function"==typeof a?(i--,a):void 0,c&&o(r[0],r[1],c)&&(a=i<3?void 0:a,i=1),e=Object(e);++n<i;){var s=r[n];s&&t(e,s,n,a)}return e}))}},function(t,e,r){var n=r(56),o=r(41);t.exports=function(t){return n(t,o(t))}},function(t,e,r){var n=r(34),o=r(73),i=r(23),a="[object Object]",c=Function.prototype,s=Object.prototype,u=c.toString,l=s.hasOwnProperty,f=u.call(Object);t.exports=function(t){if(!i(t)||n(t)!=a)return!1;var e=o(t);if(null===e)return!0;var r=l.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&u.call(r)==f}},function(t,e,r){var n=r(187),o=r(230),i=r(221),a=r(229),c=r(220),s=r(55),u=r(11),l=r(196),f=r(42),h=r(57),p=r(16),d=r(458),y=r(54),v=r(186),m=r(457);t.exports=function(t,e,r,g,b,w,_){var x=v(t,r),O=v(e,r),k=_.get(O);if(k)n(t,r,k);else{var E=w?w(x,O,r+"",t,e,_):void 0,S=void 0===E;if(S){var j=u(O),L=!j&&f(O),P=!j&&!L&&y(O);E=O,j||L||P?u(x)?E=x:l(x)?E=a(x):L?(S=!1,E=o(O,!0)):P?(S=!1,E=i(O,!0)):E=[]:d(O)||s(O)?(E=x,s(x)?E=m(x):p(x)&&!h(x)||(E=c(O))):S=!1}S&&(_.set(O,E),b(E,O,g,w,_),_.delete(O)),n(t,r,E)}}},function(t,e,r){var n=r(83),o=r(187),i=r(101),a=r(459),c=r(16),s=r(41),u=r(186);t.exports=function t(e,r,l,f,h){e!==r&&i(r,(function(i,s){if(c(i))h||(h=new n),a(e,r,s,l,t,f,h);else{var p=f?f(u(e,s),i,s+"",e,r,h):void 0;void 0===p&&(p=i),o(e,s,p)}}),s)}},function(t,e,r){var n=r(460),o=r(456)((function(t,e,r){n(t,e,r)}));t.exports=o},function(t,e){t.exports=function(t,e){return t>e}},function(t,e,r){var n=r(96),o=r(462),i=r(36);t.exports=function(t){return t&&t.length?n(t,i,o):void 0}},function(t,e,r){var n=r(77),o=r(102),i=r(28);t.exports=function(t,e){var r={};return e=i(e,3),o(t,(function(t,o,i){n(r,o,e(t,o,i))})),r}},function(t,e){t.exports=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}},function(t,e,r){var n=r(101),o=r(216),i=r(41);t.exports=function(t,e){return null==t?t:n(t,o(e),i)}},function(t,e,r){var n=r(189);t.exports=function(t){var e=n(t),r=e%1;return e==e?r?e-r:e:0}},function(t,e,r){var n=r(197),o=r(28),i=r(467),a=Math.max;t.exports=function(t,e,r){var c=null==t?0:t.length;if(!c)return-1;var s=null==r?0:i(r);return s<0&&(s=a(c+s,0)),n(t,o(e,3),s)}},function(t,e,r){var n=r(28),o=r(29),i=r(33);t.exports=function(t){return function(e,r,a){var c=Object(e);if(!o(e)){var s=n(r,3);e=i(e),r=function(t){return s(c[t],t,c)}}var u=t(e,r,a);return u>-1?c[s?e[u]:u]:void 0}}},function(t,e,r){var n=r(469)(r(468));t.exports=n},function(t,e,r){var n=r(69),o=r(43),i=r(68),a=r(41),c=Object.prototype,s=c.hasOwnProperty,u=n((function(t,e){t=Object(t);var r=-1,n=e.length,u=n>2?e[2]:void 0;for(u&&i(e[0],e[1],u)&&(n=1);++r<n;)for(var l=e[r],f=a(l),h=-1,p=f.length;++h<p;){var d=f[h],y=t[d];(void 0===y||o(y,c[d])&&!s.call(t,d))&&(t[d]=l[d])}return t}));t.exports=u},function(t,e,r){var n=r(235),o=1,i=4;t.exports=function(t){return n(t,o|i)}},function(t,e,r){"use strict";var n=r(7),o=r(437),i=r(434),a=r(433),c=r(15).normalizeRanks,s=r(431),u=r(15).removeEmptyRanks,l=r(430),f=r(429),h=r(428),p=r(427),d=r(418),y=r(15),v=r(22).Graph;t.exports=function(t,e){var r=e&&e.debugTiming?y.time:y.notime;r("layout",(function(){var e=r(" buildLayoutGraph",(function(){return function(t){var e=new v({multigraph:!0,compound:!0}),r=S(t.graph());return e.setGraph(n.merge({},g,E(r,m),n.pick(r,b))),n.forEach(t.nodes(),(function(r){var o=S(t.node(r));e.setNode(r,n.defaults(E(o,w),_)),e.setParent(r,t.parent(r))})),n.forEach(t.edges(),(function(r){var o=S(t.edge(r));e.setEdge(r,n.merge({},O,E(o,x),n.pick(o,k)))})),e}(t)}));r(" runLayout",(function(){!function(t,e){e(" makeSpaceForEdgeLabels",(function(){!function(t){var e=t.graph();e.ranksep/=2,n.forEach(t.edges(),(function(r){var n=t.edge(r);n.minlen*=2,"c"!==n.labelpos.toLowerCase()&&("TB"===e.rankdir||"BT"===e.rankdir?n.width+=n.labeloffset:n.height+=n.labeloffset)}))}(t)})),e(" removeSelfEdges",(function(){!function(t){n.forEach(t.edges(),(function(e){if(e.v===e.w){var r=t.node(e.v);r.selfEdges||(r.selfEdges=[]),r.selfEdges.push({e:e,label:t.edge(e)}),t.removeEdge(e)}}))}(t)})),e(" acyclic",(function(){o.run(t)})),e(" nestingGraph.run",(function(){l.run(t)})),e(" rank",(function(){a(y.asNonCompoundGraph(t))})),e(" injectEdgeLabelProxies",(function(){!function(t){n.forEach(t.edges(),(function(e){var r=t.edge(e);if(r.width&&r.height){var n=t.node(e.v),o=t.node(e.w),i={rank:(o.rank-n.rank)/2+n.rank,e:e};y.addDummyNode(t,"edge-proxy",i,"_ep")}}))}(t)})),e(" removeEmptyRanks",(function(){u(t)})),e(" nestingGraph.cleanup",(function(){l.cleanup(t)})),e(" normalizeRanks",(function(){c(t)})),e(" assignRankMinMax",(function(){!function(t){var e=0;n.forEach(t.nodes(),(function(r){var o=t.node(r);o.borderTop&&(o.minRank=t.node(o.borderTop).rank,o.maxRank=t.node(o.borderBottom).rank,e=n.max(e,o.maxRank))})),t.graph().maxRank=e}(t)})),e(" removeEdgeLabelProxies",(function(){!function(t){n.forEach(t.nodes(),(function(e){var r=t.node(e);"edge-proxy"===r.dummy&&(t.edge(r.e).labelRank=r.rank,t.removeNode(e))}))}(t)})),e(" normalize.run",(function(){i.run(t)})),e(" parentDummyChains",(function(){s(t)})),e(" addBorderSegments",(function(){f(t)})),e(" order",(function(){p(t)})),e(" insertSelfEdges",(function(){!function(t){var e=y.buildLayerMatrix(t);n.forEach(e,(function(e){var r=0;n.forEach(e,(function(e,o){var i=t.node(e);i.order=o+r,n.forEach(i.selfEdges,(function(e){y.addDummyNode(t,"selfedge",{width:e.label.width,height:e.label.height,rank:i.rank,order:o+ ++r,e:e.e,label:e.label},"_se")})),delete i.selfEdges}))}))}(t)})),e(" adjustCoordinateSystem",(function(){h.adjust(t)})),e(" position",(function(){d(t)})),e(" positionSelfEdges",(function(){!function(t){n.forEach(t.nodes(),(function(e){var r=t.node(e);if("selfedge"===r.dummy){var n=t.node(r.e.v),o=n.x+n.width/2,i=n.y,a=r.x-o,c=n.height/2;t.setEdge(r.e,r.label),t.removeNode(e),r.label.points=[{x:o+2*a/3,y:i-c},{x:o+5*a/6,y:i-c},{x:o+a,y:i},{x:o+5*a/6,y:i+c},{x:o+2*a/3,y:i+c}],r.label.x=r.x,r.label.y=r.y}}))}(t)})),e(" removeBorderNodes",(function(){!function(t){n.forEach(t.nodes(),(function(e){if(t.children(e).length){var r=t.node(e),o=t.node(r.borderTop),i=t.node(r.borderBottom),a=t.node(n.last(r.borderLeft)),c=t.node(n.last(r.borderRight));r.width=Math.abs(c.x-a.x),r.height=Math.abs(i.y-o.y),r.x=a.x+r.width/2,r.y=o.y+r.height/2}})),n.forEach(t.nodes(),(function(e){"border"===t.node(e).dummy&&t.removeNode(e)}))}(t)})),e(" normalize.undo",(function(){i.undo(t)})),e(" fixupEdgeLabelCoords",(function(){!function(t){n.forEach(t.edges(),(function(e){var r=t.edge(e);if(n.has(r,"x"))switch("l"!==r.labelpos&&"r"!==r.labelpos||(r.width-=r.labeloffset),r.labelpos){case"l":r.x-=r.width/2+r.labeloffset;break;case"r":r.x+=r.width/2+r.labeloffset}}))}(t)})),e(" undoCoordinateSystem",(function(){h.undo(t)})),e(" translateGraph",(function(){!function(t){var e=Number.POSITIVE_INFINITY,r=0,o=Number.POSITIVE_INFINITY,i=0,a=t.graph(),c=a.marginx||0,s=a.marginy||0;function u(t){var n=t.x,a=t.y,c=t.width,s=t.height;e=Math.min(e,n-c/2),r=Math.max(r,n+c/2),o=Math.min(o,a-s/2),i=Math.max(i,a+s/2)}n.forEach(t.nodes(),(function(e){u(t.node(e))})),n.forEach(t.edges(),(function(e){var r=t.edge(e);n.has(r,"x")&&u(r)})),e-=c,o-=s,n.forEach(t.nodes(),(function(r){var n=t.node(r);n.x-=e,n.y-=o})),n.forEach(t.edges(),(function(r){var i=t.edge(r);n.forEach(i.points,(function(t){t.x-=e,t.y-=o})),n.has(i,"x")&&(i.x-=e),n.has(i,"y")&&(i.y-=o)})),a.width=r-e+c,a.height=i-o+s}(t)})),e(" assignNodeIntersects",(function(){!function(t){n.forEach(t.edges(),(function(e){var r,n,o=t.edge(e),i=t.node(e.v),a=t.node(e.w);o.points?(r=o.points[0],n=o.points[o.points.length-1]):(o.points=[],r=a,n=i),o.points.unshift(y.intersectRect(i,r)),o.points.push(y.intersectRect(a,n))}))}(t)})),e(" reversePoints",(function(){!function(t){n.forEach(t.edges(),(function(e){var r=t.edge(e);r.reversed&&r.points.reverse()}))}(t)})),e(" acyclic.undo",(function(){o.undo(t)}))}(e,r)})),r(" updateInputGraph",(function(){!function(t,e){n.forEach(t.nodes(),(function(r){var n=t.node(r),o=e.node(r);n&&(n.x=o.x,n.y=o.y,e.children(r).length&&(n.width=o.width,n.height=o.height))})),n.forEach(t.edges(),(function(r){var o=t.edge(r),i=e.edge(r);o.points=i.points,n.has(i,"x")&&(o.x=i.x,o.y=i.y)})),t.graph().width=e.graph().width,t.graph().height=e.graph().height}(t,e)}))}))};var m=["nodesep","edgesep","ranksep","marginx","marginy"],g={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},b=["acyclicer","ranker","rankdir","align"],w=["width","height"],_={width:0,height:0},x=["minlen","weight","width","height","labeloffset"],O={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},k=["labelpos"];function E(t,e){return n.mapValues(n.pick(t,e),Number)}function S(t){var e={};return n.forEach(t,(function(t,r){e[r.toLowerCase()]=t})),e}},function(t,e,r){var n=r(18),o=r(114),i=r(193);t.exports=function(t,e){var r,a=new o,c={},s=new i;function u(t){var n=t.v===r?t.w:t.v,o=s.priority(n);if(void 0!==o){var i=e(t);i<o&&(c[n]=r,s.decrease(n,i))}}if(0===t.nodeCount())return a;n.each(t.nodes(),(function(t){s.add(t,Number.POSITIVE_INFINITY),a.setNode(t)})),s.decrease(t.nodes()[0],0);for(var l=!1;s.size()>0;){if(r=s.removeMin(),n.has(c,r))a.setEdge(r,c[r]);else{if(l)throw new Error("Input graph is not connected: "+t);l=!0}t.nodeEdges(r).forEach(u)}return a}},function(t,e,r){var n=r(190);t.exports=function(t,e){return n(t,e,"pre")}},function(t,e,r){var n=r(190);t.exports=function(t,e){return n(t,e,"post")}},function(t,e,r){var n=r(191);t.exports=function(t){try{n(t)}catch(t){if(t instanceof n.CycleException)return!1;throw t}return!0}},function(t,e,r){var n=r(18);t.exports=function(t,e,r){return function(t,e,r){var n={},o=t.nodes();return o.forEach((function(t){n[t]={},n[t][t]={distance:0},o.forEach((function(e){t!==e&&(n[t][e]={distance:Number.POSITIVE_INFINITY})})),r(t).forEach((function(r){var o=r.v===t?r.w:r.v,i=e(r);n[t][o]={distance:i,predecessor:t}}))})),o.forEach((function(t){var e=n[t];o.forEach((function(r){var i=n[r];o.forEach((function(r){var n=i[t],o=e[r],a=i[r],c=n.distance+o.distance;c<a.distance&&(a.distance=c,a.predecessor=o.predecessor)}))}))})),n}(t,e||o,r||function(e){return t.outEdges(e)})};var o=n.constant(1)},function(t,e,r){var n=r(18),o=r(192);t.exports=function(t){return n.filter(o(t),(function(e){return e.length>1||1===e.length&&t.hasEdge(e[0],e[0])}))}},function(t,e,r){var n=r(194),o=r(18);t.exports=function(t,e,r){return o.transform(t.nodes(),(function(o,i){o[i]=n(t,i,e,r)}),{})}},function(t,e,r){var n=r(18);t.exports=function(t){var e,r={},o=[];function i(o){n.has(r,o)||(r[o]=!0,e.push(o),n.each(t.successors(o),i),n.each(t.predecessors(o),i))}return n.each(t.nodes(),(function(t){e=[],i(t),e.length&&o.push(e)})),o}},function(t,e,r){t.exports={components:r(481),dijkstra:r(194),dijkstraAll:r(480),findCycles:r(479),floydWarshall:r(478),isAcyclic:r(477),postorder:r(476),preorder:r(475),prim:r(474),tarjan:r(192),topsort:r(191)}},function(t,e,r){var n=r(18),o=r(114);t.exports={write:function(t){var e={options:{directed:t.isDirected(),multigraph:t.isMultigraph(),compound:t.isCompound()},nodes:function(t){return n.map(t.nodes(),(function(e){var r=t.node(e),o=t.parent(e),i={v:e};return n.isUndefined(r)||(i.value=r),n.isUndefined(o)||(i.parent=o),i}))}(t),edges:function(t){return n.map(t.edges(),(function(e){var r=t.edge(e),o={v:e.v,w:e.w};return n.isUndefined(e.name)||(o.name=e.name),n.isUndefined(r)||(o.value=r),o}))}(t)};return n.isUndefined(t.graph())||(e.value=n.clone(t.graph())),e},read:function(t){var e=new o(t.options).setGraph(t.value);return n.each(t.nodes,(function(t){e.setNode(t.v,t.value),t.parent&&e.setParent(t.v,t.parent)})),n.each(t.edges,(function(t){e.setEdge({v:t.v,w:t.w,name:t.name},t.value)})),e}}},function(t,e){t.exports="2.1.7"},function(t,e,r){var n=r(70);t.exports=function(t,e){return n(e,(function(e){return t[e]}))}},function(t,e){t.exports=function(){}},function(t,e,r){var n=r(223),o=r(486),i=r(100),a=n&&1/i(new n([,-0]))[1]==1/0?function(t){return new n(t)}:o;t.exports=a},function(t,e){t.exports=function(t,e,r){for(var n=-1,o=null==t?0:t.length;++n<o;)if(r(e,t[n]))return!0;return!1}},function(t,e){t.exports=function(t,e,r){for(var n=r-1,o=t.length;++n<o;)if(t[n]===e)return n;return-1}},function(t,e){t.exports=function(t){return t!=t}},function(t,e,r){var n=r(197),o=r(490),i=r(489);t.exports=function(t,e,r){return e==e?i(t,e,r):n(t,o,r)}},function(t,e,r){var n=r(491);t.exports=function(t,e){return!(null==t||!t.length)&&n(t,e,0)>-1}},function(t,e,r){var n=r(212),o=r(492),i=r(488),a=r(211),c=r(487),s=r(100),u=200;t.exports=function(t,e,r){var l=-1,f=o,h=t.length,p=!0,d=[],y=d;if(r)p=!1,f=i;else if(h>=u){var v=e?null:c(t);if(v)return s(v);p=!1,f=a,y=new n}else y=e?[]:d;t:for(;++l<h;){var m=t[l],g=e?e(m):m;if(m=r||0!==m?m:0,p&&g==g){for(var b=y.length;b--;)if(y[b]===g)continue t;e&&y.push(g),d.push(m)}else f(y,g,r)||(y!==d&&y.push(g),d.push(m))}return d}},function(t,e){var r=800,n=16,o=Date.now;t.exports=function(t){var e=0,i=0;return function(){var a=o(),c=n-(a-i);if(i=a,c>0){if(++e>=r)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}},function(t,e,r){var n=r(103),o=r(233),i=r(36),a=o?function(t,e){return o(t,"toString",{configurable:!0,enumerable:!1,value:n(e),writable:!0})}:i;t.exports=a},function(t,e){t.exports=function(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}},function(t,e,r){var n=r(38),o=r(55),i=r(11),a=n?n.isConcatSpreadable:void 0;t.exports=function(t){return i(t)||o(t)||!!(a&&t&&t[a])}},function(t,e,r){var n=r(97),o=r(69),i=r(493),a=r(196),c=o((function(t){return i(n(t,1,a,!0))}));t.exports=c},function(t,e,r){var n=r(111),o=r(219),i=r(102),a=r(28),c=r(73),s=r(11),u=r(42),l=r(57),f=r(16),h=r(54);t.exports=function(t,e,r){var p=s(t),d=p||u(t)||h(t);if(e=a(e,4),null==r){var y=t&&t.constructor;r=d?p?new y:[]:f(t)&&l(y)?o(c(t)):{}}return(d?n:i)(t,(function(t,n,o){return e(r,t,n,o)})),r}},function(t,e){var r="[\\ud800-\\udfff]",n="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",o="\\ud83c[\\udffb-\\udfff]",i="[^\\ud800-\\udfff]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",c="[\\ud800-\\udbff][\\udc00-\\udfff]",s="(?:"+n+"|"+o+")?",u="[\\ufe0e\\ufe0f]?"+s+"(?:\\u200d(?:"+[i,a,c].join("|")+")[\\ufe0e\\ufe0f]?"+s+")*",l="(?:"+[i+n+"?",n,a,c,r].join("|")+")",f=RegExp(o+"(?="+o+")|"+l+u,"g");t.exports=function(t){for(var e=f.lastIndex=0;f.test(t);)++e;return e}},function(t,e){var r=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");t.exports=function(t){return r.test(t)}},function(t,e,r){var n=r(205)("length");t.exports=n},function(t,e,r){var n=r(502),o=r(501),i=r(500);t.exports=function(t){return o(t)?i(t):n(t)}},function(t,e,r){var n=r(34),o=r(11),i=r(23),a="[object String]";t.exports=function(t){return"string"==typeof t||!o(t)&&i(t)&&n(t)==a}},function(t,e,r){var n=r(107),o=r(40),i=r(29),a=r(504),c=r(503),s="[object Map]",u="[object Set]";t.exports=function(t){if(null==t)return 0;if(i(t))return a(t)?c(t):t.length;var e=o(t);return e==s||e==u?t.size:n(t).length}},function(t,e){t.exports=function(t,e,r,n,o){return o(t,(function(t,o,i){r=n?(n=!1,t):e(r,t,o,i)})),r}},function(t,e){t.exports=function(t,e,r,n){var o=-1,i=null==t?0:t.length;for(n&&i&&(r=t[++o]);++o<i;)r=e(r,t[o],o,t);return r}},function(t,e,r){var n=r(107),o=r(40),i=r(55),a=r(11),c=r(29),s=r(42),u=r(74),l=r(54),f="[object Map]",h="[object Set]",p=Object.prototype.hasOwnProperty;t.exports=function(t){if(null==t)return!0;if(c(t)&&(a(t)||"string"==typeof t||"function"==typeof t.splice||s(t)||l(t)||i(t)))return!t.length;var e=o(t);if(e==f||e==h)return!t.size;if(u(t))return!n(t).length;for(var r in t)if(p.call(t,r))return!1;return!0}},function(t,e){var r=Object.prototype.hasOwnProperty;t.exports=function(t,e){return null!=t&&r.call(t,e)}},function(t,e,r){var n=r(99);t.exports=function(t){return function(e){return n(e,t)}}},function(t,e,r){var n=r(205),o=r(510),i=r(98),a=r(53);t.exports=function(t){return i(t)?n(a(t)):o(t)}},function(t,e){t.exports=function(t,e){return null!=t&&e in Object(t)}},function(t,e,r){var n=r(38),o=r(70),i=r(11),a=r(39),c=1/0,s=n?n.prototype:void 0,u=s?s.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(i(e))return o(e,t)+"";if(a(e))return u?u.call(e):"";var r=e+"";return"0"==r&&1/e==-c?"-0":r}},function(t,e,r){var n=r(112),o="Expected a function";function i(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError(o);var r=function(){var n=arguments,o=e?e.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=t.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(i.Cache||n),r}i.Cache=n,t.exports=i},function(t,e,r){var n=r(514),o=500;t.exports=function(t){var e=n(t,(function(t){return r.size===o&&r.clear(),t})),r=e.cache;return e}},function(t,e,r){var n=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,i=r(515)((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(n,(function(t,r,n,i){e.push(n?i.replace(o,"$1"):r||t)})),e}));t.exports=i},function(t,e,r){var n=r(99);t.exports=function(t,e,r){var o=null==t?void 0:n(t,e);return void 0===o?r:o}},function(t,e,r){var n=r(214),o=r(517),i=r(207),a=r(98),c=r(210),s=r(209),u=r(53),l=1,f=2;t.exports=function(t,e){return a(t)&&c(e)?s(u(t),e):function(r){var a=o(r,t);return void 0===a&&a===e?i(r,t):n(e,a,l|f)}}},function(t,e,r){var n=r(210),o=r(33);t.exports=function(t){for(var e=o(t),r=e.length;r--;){var i=e[r],a=t[i];e[r]=[i,a,n(a)]}return e}},function(t,e,r){var n=r(225),o=1,i=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,a,c,s){var u=r&o,l=n(t),f=l.length;if(f!=n(e).length&&!u)return!1;for(var h=f;h--;){var p=l[h];if(!(u?p in e:i.call(e,p)))return!1}var d=s.get(t);if(d&&s.get(e))return d==e;var y=!0;s.set(t,e),s.set(e,t);for(var v=u;++h<f;){var m=t[p=l[h]],g=e[p];if(a)var b=u?a(g,m,p,e,t,s):a(m,g,p,t,e,s);if(!(void 0===b?m===g||c(m,g,r,a,s):b)){y=!1;break}v||(v="constructor"==p)}if(y&&!v){var w=t.constructor,_=e.constructor;w!=_&&"constructor"in t&&"constructor"in e&&!("function"==typeof w&&w instanceof w&&"function"==typeof _&&_ instanceof _)&&(y=!1)}return s.delete(t),s.delete(e),y}},function(t,e){t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r}},function(t,e,r){var n=r(38),o=r(222),i=r(43),a=r(213),c=r(521),s=r(100),u=1,l=2,f="[object Boolean]",h="[object Date]",p="[object Error]",d="[object Map]",y="[object Number]",v="[object RegExp]",m="[object Set]",g="[object String]",b="[object Symbol]",w="[object ArrayBuffer]",_="[object DataView]",x=n?n.prototype:void 0,O=x?x.valueOf:void 0;t.exports=function(t,e,r,n,x,k,E){switch(r){case _:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case w:return!(t.byteLength!=e.byteLength||!k(new o(t),new o(e)));case f:case h:case y:return i(+t,+e);case p:return t.name==e.name&&t.message==e.message;case v:case g:return t==e+"";case d:var S=c;case m:var j=n&u;if(S||(S=s),t.size!=e.size&&!j)return!1;var L=E.get(t);if(L)return L==e;n|=l,E.set(t,e);var P=a(S(t),S(e),n,x,k,E);return E.delete(t),P;case b:if(O)return O.call(t)==O.call(e)}return!1}},function(t,e){t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e){var r="__lodash_hash_undefined__";t.exports=function(t){return this.__data__.set(t,r),this}},function(t,e,r){var n=r(83),o=r(213),i=r(522),a=r(520),c=r(40),s=r(11),u=r(42),l=r(54),f=1,h="[object Arguments]",p="[object Array]",d="[object Object]",y=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,v,m,g){var b=s(t),w=s(e),_=b?p:c(t),x=w?p:c(e),O=(_=_==h?d:_)==d,k=(x=x==h?d:x)==d,E=_==x;if(E&&u(t)){if(!u(e))return!1;b=!0,O=!1}if(E&&!O)return g||(g=new n),b||l(t)?o(t,e,r,v,m,g):i(t,e,_,r,v,m,g);if(!(r&f)){var S=O&&y.call(t,"__wrapped__"),j=k&&y.call(e,"__wrapped__");if(S||j){var L=S?t.value():t,P=j?e.value():e;return g||(g=new n),m(L,P,r,v,g)}}return!!E&&(g||(g=new n),a(t,e,r,v,m,g))}},function(t,e,r){var n=r(83),o=r(214),i=1,a=2;t.exports=function(t,e,r,c){var s=r.length,u=s,l=!c;if(null==t)return!u;for(t=Object(t);s--;){var f=r[s];if(l&&f[2]?f[1]!==t[f[0]]:!(f[0]in t))return!1}for(;++s<u;){var h=(f=r[s])[0],p=t[h],d=f[1];if(l&&f[2]){if(void 0===p&&!(h in t))return!1}else{var y=new n;if(c)var v=c(p,d,h,t,e,y);if(!(void 0===v?o(d,p,i|a,c,y):v))return!1}}return!0}},function(t,e,r){var n=r(527),o=r(519),i=r(209);t.exports=function(t){var e=o(t);return 1==e.length&&e[0][2]?i(e[0][0],e[0][1]):function(r){return r===t||n(r,t,e)}}},function(t,e,r){var n=r(72);t.exports=function(t,e){var r=[];return n(t,(function(t,n,o){e(t,n,o)&&r.push(t)})),r}},function(t,e,r){var n=r(29);t.exports=function(t,e){return function(r,o){if(null==r)return r;if(!n(r))return t(r,o);for(var i=r.length,a=e?i:-1,c=Object(r);(e?a--:++a<i)&&!1!==o(c[a],a,c););return r}}},function(t,e){t.exports=function(t){return function(e,r,n){for(var o=-1,i=Object(e),a=n(e),c=a.length;c--;){var s=a[t?c:++o];if(!1===r(i[s],s,i))break}return e}}},function(t,e,r){var n=r(40),o=r(23),i="[object Set]";t.exports=function(t){return o(t)&&n(t)==i}},function(t,e,r){var n=r(532),o=r(75),i=r(108),a=i&&i.isSet,c=a?o(a):n;t.exports=c},function(t,e,r){var n=r(40),o=r(23),i="[object Map]";t.exports=function(t){return o(t)&&n(t)==i}},function(t,e,r){var n=r(534),o=r(75),i=r(108),a=i&&i.isMap,c=a?o(a):n;t.exports=c},function(t,e,r){var n=r(38),o=n?n.prototype:void 0,i=o?o.valueOf:void 0;t.exports=function(t){return i?Object(i.call(t)):{}}},function(t,e){var r=/\w*$/;t.exports=function(t){var e=new t.constructor(t.source,r.exec(t));return e.lastIndex=t.lastIndex,e}},function(t,e,r){var n=r(104);t.exports=function(t,e){var r=e?n(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}},function(t,e,r){var n=r(104),o=r(538),i=r(537),a=r(536),c=r(221),s="[object Boolean]",u="[object Date]",l="[object Map]",f="[object Number]",h="[object RegExp]",p="[object Set]",d="[object String]",y="[object Symbol]",v="[object ArrayBuffer]",m="[object DataView]",g="[object Float32Array]",b="[object Float64Array]",w="[object Int8Array]",_="[object Int16Array]",x="[object Int32Array]",O="[object Uint8Array]",k="[object Uint8ClampedArray]",E="[object Uint16Array]",S="[object Uint32Array]";t.exports=function(t,e,r){var j=t.constructor;switch(e){case v:return n(t);case s:case u:return new j(+t);case m:return o(t,r);case g:case b:case w:case _:case x:case O:case k:case E:case S:return c(t,r);case l:return new j;case f:case d:return new j(t);case h:return i(t);case p:return new j;case y:return a(t)}}},function(t,e){var r=Object.prototype.hasOwnProperty;t.exports=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&r.call(t,"index")&&(n.index=t.index,n.input=t.input),n}},function(t,e,r){var n=r(37)(r(20),"WeakMap");t.exports=n},function(t,e,r){var n=r(37)(r(20),"Promise");t.exports=n},function(t,e,r){var n=r(37)(r(20),"DataView");t.exports=n},function(t,e,r){var n=r(224),o=r(226),i=r(41);t.exports=function(t){return n(t,i,o)}},function(t,e,r){var n=r(56),o=r(226);t.exports=function(t,e){return n(t,o(t),e)}},function(t,e,r){var n=r(56),o=r(106);t.exports=function(t,e){return n(t,o(t),e)}},function(t,e){t.exports=function(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e}},function(t,e,r){var n=r(16),o=r(74),i=r(547),a=Object.prototype.hasOwnProperty;t.exports=function(t){if(!n(t))return i(t);var e=o(t),r=[];for(var c in t)("constructor"!=c||!e&&a.call(t,c))&&r.push(c);return r}},function(t,e,r){var n=r(56),o=r(41);t.exports=function(t,e){return t&&n(e,o(e),t)}},function(t,e,r){var n=r(231)(Object.keys,Object);t.exports=n},function(t,e,r){var n=r(34),o=r(109),i=r(23),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,t.exports=function(t){return i(t)&&o(t.length)&&!!a[n(t)]}},function(t,e){t.exports=function(){return!1}},function(t,e,r){var n=r(34),o=r(23),i="[object Arguments]";t.exports=function(t){return o(t)&&n(t)==i}},function(t,e){t.exports=function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}},function(t,e,r){var n=r(56),o=r(33);t.exports=function(t,e){return t&&n(e,o(e),t)}},function(t,e,r){var n=r(79);t.exports=function(t,e){var r=n(this,t),o=r.size;return r.set(t,e),this.size+=r.size==o?0:1,this}},function(t,e,r){var n=r(79);t.exports=function(t){return n(this,t).has(t)}},function(t,e,r){var n=r(79);t.exports=function(t){return n(this,t).get(t)}},function(t,e){t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},function(t,e,r){var n=r(79);t.exports=function(t){var e=n(this,t).delete(t);return this.size-=e?1:0,e}},function(t,e,r){var n=r(80),o="__lodash_hash_undefined__";t.exports=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=n&&void 0===e?o:e,this}},function(t,e,r){var n=r(80),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return n?void 0!==e[t]:o.call(e,t)}},function(t,e,r){var n=r(80),o="__lodash_hash_undefined__",i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(n){var r=e[t];return r===o?void 0:r}return i.call(e,t)?e[t]:void 0}},function(t,e){t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},function(t,e,r){var n=r(80);t.exports=function(){this.__data__=n?n(null):{},this.size=0}},function(t,e,r){var n=r(565),o=r(564),i=r(563),a=r(562),c=r(561);function s(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}s.prototype.clear=n,s.prototype.delete=o,s.prototype.get=i,s.prototype.has=a,s.prototype.set=c,t.exports=s},function(t,e,r){var n=r(566),o=r(82),i=r(113);t.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||o),string:new n}}},function(t,e){t.exports=function(t,e){return null==t?void 0:t[e]}},function(t,e,r){var n=r(20)["__core-js_shared__"];t.exports=n},function(t,e,r){var n=r(569),o=function(){var t=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();t.exports=function(t){return!!o&&o in t}},function(t,e,r){var n=r(57),o=r(570),i=r(16),a=r(234),c=/^\[object .+?Constructor\]$/,s=Function.prototype,u=Object.prototype,l=s.toString,f=u.hasOwnProperty,h=RegExp("^"+l.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!i(t)||o(t))&&(n(t)?h:c).test(a(t))}},function(t,e,r){var n=r(82),o=r(113),i=r(112),a=200;t.exports=function(t,e){var r=this.__data__;if(r instanceof n){var c=r.__data__;if(!o||c.length<a-1)return c.push([t,e]),this.size=++r.size,this;r=this.__data__=new i(c)}return r.set(t,e),this.size=r.size,this}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e){t.exports=function(t){return this.__data__.get(t)}},function(t,e){t.exports=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}},function(t,e,r){var n=r(82);t.exports=function(){this.__data__=new n,this.size=0}},function(t,e,r){var n=r(81);t.exports=function(t,e){var r=this.__data__,o=n(r,t);return o<0?(++this.size,r.push([t,e])):r[o][1]=e,this}},function(t,e,r){var n=r(81);t.exports=function(t){return n(this.__data__,t)>-1}},function(t,e,r){var n=r(81);t.exports=function(t){var e=this.__data__,r=n(e,t);return r<0?void 0:e[r][1]}},function(t,e,r){var n=r(81),o=Array.prototype.splice;t.exports=function(t){var e=this.__data__,r=n(e,t);return!(r<0||(r==e.length-1?e.pop():o.call(e,r,1),--this.size,0))}},function(t,e){t.exports=function(){this.__data__=[],this.size=0}},function(t,e,r){var n=r(235),o=4;t.exports=function(t){return n(t,o)}},function(t,e,r){t.exports={Graph:r(114),version:r(484)}},function(t,e,r){var n=r(583);t.exports={Graph:n.Graph,json:r(483),alg:r(482),version:n.version}},function(t,e,r){t.exports={graphlib:r(22),layout:r(473),debug:r(416),util:{time:r(15).time,notime:r(15).notime},version:r(415)}},function(t,e,r){var n=r(3),o=r(585),i=n.Util,a=function(){function t(t){i.mix(this,{rankdir:"TB",align:void 0,nodesep:50,edgesep:10,ranksep:50,marginx:0,marginy:0,acyclicer:void 0,useEdgeControlPoint:!0,ranker:"network-simplex",callback:null},t)}var e=t.prototype;return e.getValue=function(t){var e=this[t];return i.isFunction(e)?e():e},e.execute=function(){var t=this.nodes,e=this.edges,r={},n=new o.graphlib.Graph,i=this.useEdgeControlPoint;n.setGraph({rankdir:this.getValue("rankdir"),align:this.getValue("align"),nodesep:this.getValue("nodesep"),edgesep:this.getValue("edgesep"),ranksep:this.getValue("ranksep"),marginx:this.getValue("marginx"),marginy:this.getValue("marginy"),acyclicer:this.getValue("acyclicer"),ranker:this.getValue("ranker")}),n.setDefaultEdgeLabel((function(){return{}})),t.forEach((function(t){n.setNode(t.id,{width:t.width,height:t.height}),r[t.id]=t})),e.forEach((function(t){n.setEdge(t.source,t.target)})),o.layout(n),n.nodes().forEach((function(t){var e=n.node(t);r[t].x=e.x,r[t].y=e.y})),n.edges().forEach((function(t,r){var o=n.edge(t);i&&(e[r].controlPoints=o.points.slice(1,o.points.length-1))}))},t}();t.exports=a},function(t,e,r){var n=r(3),o=r(586);n.Layouts.Dagre=o;var i=function(){function t(t){this.options=t}return t.prototype.init=function(){var t=this,e=this.graph;e.on("beforeinit",(function(){var r=new o(t.options);e.set("layout",r)}))},t}();n.Plugins["layout.dagre"]=i,t.exports=i}])}))},"01d7":function(t,e,r){(function(e,n,o){t.exports=n(r("bf17"),r("5c90"),r("67ae"))})(0,(function(t){return function(){var e=t,r=e.x64,n=r.Word,o=r.WordArray,i=e.algo,a=i.SHA512,c=i.SHA384=a.extend({_doReset:function(){this._hash=new o.init([new n.init(3418070365,3238371032),new n.init(1654270250,914150663),new n.init(2438529370,812702999),new n.init(355462360,4144912697),new n.init(1731405415,4290775857),new n.init(2394180231,1750603025),new n.init(3675008525,1694076839),new n.init(1203062813,3204075428)])},_doFinalize:function(){var t=a._doFinalize.call(this);return t.sigBytes-=16,t}});e.SHA384=a._createHelper(c),e.HmacSHA384=a._createHmacHelper(c)}(),t.SHA384}))},"023d":function(t,e,r){(function(e,n,o){t.exports=n(r("bf17"),r("57eb"))})(0,(function(t){t.lib.Cipher||function(e){var r=t,n=r.lib,o=n.Base,i=n.WordArray,a=n.BufferedBlockAlgorithm,c=r.enc,s=(c.Utf8,c.Base64),u=r.algo,l=u.EvpKDF,f=n.Cipher=a.extend({cfg:o.extend(),createEncryptor:function(t,e){return this.create(this._ENC_XFORM_MODE,t,e)},createDecryptor:function(t,e){return this.create(this._DEC_XFORM_MODE,t,e)},init:function(t,e,r){this.cfg=this.cfg.extend(r),this._xformMode=t,this._key=e,this.reset()},reset:function(){a.reset.call(this),this._doReset()},process:function(t){return this._append(t),this._process()},finalize:function(t){t&&this._append(t);var e=this._doFinalize();return e},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function t(t){return"string"==typeof t?O:w}return function(e){return{encrypt:function(r,n,o){return t(n).encrypt(e,r,n,o)},decrypt:function(r,n,o){return t(n).decrypt(e,r,n,o)}}}}()}),h=(n.StreamCipher=f.extend({_doFinalize:function(){var t=this._process(!0);return t},blockSize:1}),r.mode={}),p=n.BlockCipherMode=o.extend({createEncryptor:function(t,e){return this.Encryptor.create(t,e)},createDecryptor:function(t,e){return this.Decryptor.create(t,e)},init:function(t,e){this._cipher=t,this._iv=e}}),d=h.CBC=function(){var t=p.extend();function r(t,r,n){var o,i=this._iv;i?(o=i,this._iv=e):o=this._prevBlock;for(var a=0;a<n;a++)t[r+a]^=o[a]}return t.Encryptor=t.extend({processBlock:function(t,e){var n=this._cipher,o=n.blockSize;r.call(this,t,e,o),n.encryptBlock(t,e),this._prevBlock=t.slice(e,e+o)}}),t.Decryptor=t.extend({processBlock:function(t,e){var n=this._cipher,o=n.blockSize,i=t.slice(e,e+o);n.decryptBlock(t,e),r.call(this,t,e,o),this._prevBlock=i}}),t}(),y=r.pad={},v=y.Pkcs7={pad:function(t,e){for(var r=4*e,n=r-t.sigBytes%r,o=n<<24|n<<16|n<<8|n,a=[],c=0;c<n;c+=4)a.push(o);var s=i.create(a,n);t.concat(s)},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},m=(n.BlockCipher=f.extend({cfg:f.cfg.extend({mode:d,padding:v}),reset:function(){var t;f.reset.call(this);var e=this.cfg,r=e.iv,n=e.mode;this._xformMode==this._ENC_XFORM_MODE?t=n.createEncryptor:(t=n.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==t?this._mode.init(this,r&&r.words):(this._mode=t.call(n,this,r&&r.words),this._mode.__creator=t)},_doProcessBlock:function(t,e){this._mode.processBlock(t,e)},_doFinalize:function(){var t,e=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(e.pad(this._data,this.blockSize),t=this._process(!0)):(t=this._process(!0),e.unpad(t)),t},blockSize:4}),n.CipherParams=o.extend({init:function(t){this.mixIn(t)},toString:function(t){return(t||this.formatter).stringify(this)}})),g=r.format={},b=g.OpenSSL={stringify:function(t){var e,r=t.ciphertext,n=t.salt;return e=n?i.create([1398893684,1701076831]).concat(n).concat(r):r,e.toString(s)},parse:function(t){var e,r=s.parse(t),n=r.words;return 1398893684==n[0]&&1701076831==n[1]&&(e=i.create(n.slice(2,4)),n.splice(0,4),r.sigBytes-=16),m.create({ciphertext:r,salt:e})}},w=n.SerializableCipher=o.extend({cfg:o.extend({format:b}),encrypt:function(t,e,r,n){n=this.cfg.extend(n);var o=t.createEncryptor(r,n),i=o.finalize(e),a=o.cfg;return m.create({ciphertext:i,key:r,iv:a.iv,algorithm:t,mode:a.mode,padding:a.padding,blockSize:t.blockSize,formatter:n.format})},decrypt:function(t,e,r,n){n=this.cfg.extend(n),e=this._parse(e,n.format);var o=t.createDecryptor(r,n).finalize(e.ciphertext);return o},_parse:function(t,e){return"string"==typeof t?e.parse(t,this):t}}),_=r.kdf={},x=_.OpenSSL={execute:function(t,e,r,n){n||(n=i.random(8));var o=l.create({keySize:e+r}).compute(t,n),a=i.create(o.words.slice(e),4*r);return o.sigBytes=4*e,m.create({key:o,iv:a,salt:n})}},O=n.PasswordBasedCipher=w.extend({cfg:w.cfg.extend({kdf:x}),encrypt:function(t,e,r,n){n=this.cfg.extend(n);var o=n.kdf.execute(r,t.keySize,t.ivSize);n.iv=o.iv;var i=w.encrypt.call(this,t,e,o.key,n);return i.mixIn(o),i},decrypt:function(t,e,r,n){n=this.cfg.extend(n),e=this._parse(e,n.format);var o=n.kdf.execute(r,t.keySize,t.ivSize,e.salt);n.iv=o.iv;var i=w.decrypt.call(this,t,e,o.key,n);return i}})}()}))},"0934":function(t,e,r){(function(e,n,o){t.exports=n(r("bf17"),r("5c90"),r("101a"),r("ed00"),r("f97e"),r("0956"),r("a638"),r("2b25"),r("da25"),r("af8a"),r("67ae"),r("01d7"),r("ea8c"),r("b472"),r("fb70"),r("dfed"),r("57eb"),r("023d"),r("23a7"),r("ddc6"),r("0ba6"),r("8652"),r("a71c"),r("c4a3"),r("7e40"),r("e3fc"),r("eda6"),r("a303"),r("ecbb"),r("7144"),r("ad71"),r("d4c3"),r("1f44"),r("f0c7"))})(0,(function(t){return t}))},"0956":function(t,e,r){(function(e,n){t.exports=n(r("bf17"))})(0,(function(t){return function(){var e=t,r=e.lib,n=r.WordArray,o=e.enc;o.Base64url={stringify:function(t,e=!0){var r=t.words,n=t.sigBytes,o=e?this._safe_map:this._map;t.clamp();for(var i=[],a=0;a<n;a+=3)for(var c=r[a>>>2]>>>24-a%4*8&255,s=r[a+1>>>2]>>>24-(a+1)%4*8&255,u=r[a+2>>>2]>>>24-(a+2)%4*8&255,l=c<<16|s<<8|u,f=0;f<4&&a+.75*f<n;f++)i.push(o.charAt(l>>>6*(3-f)&63));var h=o.charAt(64);if(h)while(i.length%4)i.push(h);return i.join("")},parse:function(t,e=!0){var r=t.length,n=e?this._safe_map:this._map,o=this._reverseMap;if(!o){o=this._reverseMap=[];for(var a=0;a<n.length;a++)o[n.charCodeAt(a)]=a}var c=n.charAt(64);if(c){var s=t.indexOf(c);-1!==s&&(r=s)}return i(t,r,o)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function i(t,e,r){for(var o=[],i=0,a=0;a<e;a++)if(a%4){var c=r[t.charCodeAt(a-1)]<<a%4*2,s=r[t.charCodeAt(a)]>>>6-a%4*2,u=c|s;o[i>>>2]|=u<<24-i%4*8,i++}return n.create(o,i)}}(),t.enc.Base64url}))},"0ba6":function(t,e,r){(function(e,n,o){t.exports=n(r("bf17"),r("023d"))})(0,(function(t){
|
|
1
|
+
(function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e(require("monaco-editor"),require("@antv/g6"),require("vuex"),require("vue-amap"),require("vue-router"),require("qs"),require("vue"),require("lodash/fp/template"),require("axios"),require("vuex/dist/logger")):"function"===typeof define&&define.amd?define(["monaco-editor","@antv/g6","vuex","vue-amap","vue-router","qs",,"lodash/fp/template","axios","vuex/dist/logger"],e):"object"===typeof exports?exports["core"]=e(require("monaco-editor"),require("@antv/g6"),require("vuex"),require("vue-amap"),require("vue-router"),require("qs"),require("vue"),require("lodash/fp/template"),require("axios"),require("vuex/dist/logger")):t["core"]=e(t["monaco-editor"],t["@antv/g6"],t["vuex"],t["vue-amap"],t["vue-router"],t["qs"],t["Vue"],t["lodash/fp/template"],t["axios"],t["vuex/dist/logger"])})("undefined"!==typeof self?self:this,(function(t,e,r,n,o,i,a,c,s,u){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s="1aba")}({0:function(t,e){},"014f":function(t,e,r){"use strict";r("cf8c")},"019f":function(t,e,r){!function(e,n){t.exports=n(r("336c"))}(window,(function(t){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=587)}([,,,function(e,r){e.exports=t},,,,function(t,e,r){var n;try{n={cloneDeep:r(472),constant:r(103),defaults:r(471),each:r(218),filter:r(215),find:r(470),flatten:r(188),forEach:r(217),forIn:r(466),has:r(204),isUndefined:r(203),last:r(465),map:r(202),mapValues:r(464),max:r(463),merge:r(461),min:r(455),minBy:r(454),now:r(253),pick:r(453),range:r(448),reduce:r(200),sortBy:r(445),uniqueId:r(440),values:r(195),zipObject:r(439)}}catch(t){}n||(n=window._),t.exports=n},,,,function(t,e){var r=Array.isArray;t.exports=r},,,,function(t,e,r){"use strict";var n=r(7),o=r(22).Graph;function i(t,e,r,o){var i;do{i=n.uniqueId(o)}while(t.hasNode(i));return r.dummy=e,t.setNode(i,r),i}function a(t){return n.max(n.map(t.nodes(),(function(e){var r=t.node(e).rank;if(!n.isUndefined(r))return r})))}t.exports={addDummyNode:i,simplify:function(t){var e=(new o).setGraph(t.graph());return n.forEach(t.nodes(),(function(r){e.setNode(r,t.node(r))})),n.forEach(t.edges(),(function(r){var n=e.edge(r.v,r.w)||{weight:0,minlen:1},o=t.edge(r);e.setEdge(r.v,r.w,{weight:n.weight+o.weight,minlen:Math.max(n.minlen,o.minlen)})})),e},asNonCompoundGraph:function(t){var e=new o({multigraph:t.isMultigraph()}).setGraph(t.graph());return n.forEach(t.nodes(),(function(r){t.children(r).length||e.setNode(r,t.node(r))})),n.forEach(t.edges(),(function(r){e.setEdge(r,t.edge(r))})),e},successorWeights:function(t){var e=n.map(t.nodes(),(function(e){var r={};return n.forEach(t.outEdges(e),(function(e){r[e.w]=(r[e.w]||0)+t.edge(e).weight})),r}));return n.zipObject(t.nodes(),e)},predecessorWeights:function(t){var e=n.map(t.nodes(),(function(e){var r={};return n.forEach(t.inEdges(e),(function(e){r[e.v]=(r[e.v]||0)+t.edge(e).weight})),r}));return n.zipObject(t.nodes(),e)},intersectRect:function(t,e){var r,n,o=t.x,i=t.y,a=e.x-o,c=e.y-i,s=t.width/2,u=t.height/2;if(!a&&!c)throw new Error("Not possible to find intersection inside of the rectangle");return Math.abs(c)*s>Math.abs(a)*u?(c<0&&(u=-u),r=u*a/c,n=u):(a<0&&(s=-s),r=s,n=s*c/a),{x:o+r,y:i+n}},buildLayerMatrix:function(t){var e=n.map(n.range(a(t)+1),(function(){return[]}));return n.forEach(t.nodes(),(function(r){var o=t.node(r),i=o.rank;n.isUndefined(i)||(e[i][o.order]=r)})),e},normalizeRanks:function(t){var e=n.min(n.map(t.nodes(),(function(e){return t.node(e).rank})));n.forEach(t.nodes(),(function(r){var o=t.node(r);n.has(o,"rank")&&(o.rank-=e)}))},removeEmptyRanks:function(t){var e=n.min(n.map(t.nodes(),(function(e){return t.node(e).rank}))),r=[];n.forEach(t.nodes(),(function(n){var o=t.node(n).rank-e;r[o]||(r[o]=[]),r[o].push(n)}));var o=0,i=t.graph().nodeRankFactor;n.forEach(r,(function(e,r){n.isUndefined(e)&&r%i!=0?--o:o&&n.forEach(e,(function(e){t.node(e).rank+=o}))}))},addBorderNode:function(t,e,r,n){var o={width:0,height:0};return arguments.length>=4&&(o.rank=r,o.order=n),i(t,"border",o,e)},maxRank:a,partition:function(t,e){var r={lhs:[],rhs:[]};return n.forEach(t,(function(t){e(t)?r.lhs.push(t):r.rhs.push(t)})),r},time:function(t,e){var r=n.now();try{return e()}finally{console.log(t+" time: "+(n.now()-r)+"ms")}},notime:function(t,e){return e()}}},function(t,e){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},,function(t,e,r){var n;try{n={clone:r(582),constant:r(103),each:r(218),filter:r(215),has:r(204),isArray:r(11),isEmpty:r(508),isFunction:r(57),isUndefined:r(203),keys:r(33),map:r(202),reduce:r(200),size:r(505),transform:r(499),union:r(498),values:r(195)}}catch(t){}n||(n=window._),t.exports=n},,function(t,e,r){var n=r(117),o="object"==typeof self&&self&&self.Object===Object&&self,i=n||o||Function("return this")();t.exports=i},,function(t,e,r){var n;try{n=r(584)}catch(t){}n||(n=window.graphlib),t.exports=n},function(t,e){t.exports=function(t){return null!=t&&"object"==typeof t}},,,,,function(t,e,r){var n=r(528),o=r(518),i=r(36),a=r(11),c=r(511);t.exports=function(t){return"function"==typeof t?t:null==t?i:"object"==typeof t?a(t)?o(t[0],t[1]):n(t):c(t)}},function(t,e,r){var n=r(57),o=r(109);t.exports=function(t){return null!=t&&o(t.length)&&!n(t)}},,,,function(t,e,r){var n=r(232),o=r(107),i=r(29);t.exports=function(t){return i(t)?n(t):o(t)}},function(t,e,r){var n=r(38),o=r(250),i=r(249),a="[object Null]",c="[object Undefined]",s=n?n.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?c:a:s&&s in Object(t)?o(t):i(t)}},,function(t,e){t.exports=function(t){return t}},function(t,e,r){var n=r(571),o=r(568);t.exports=function(t,e){var r=o(t,e);return n(r)?r:void 0}},function(t,e,r){var n=r(20).Symbol;t.exports=n},function(t,e,r){var n=r(34),o=r(23),i="[object Symbol]";t.exports=function(t){return"symbol"==typeof t||o(t)&&n(t)==i}},function(t,e,r){var n=r(543),o=r(113),i=r(542),a=r(223),c=r(541),s=r(34),u=r(234),l=u(n),f=u(o),h=u(i),p=u(a),d=u(c),y=s;(n&&"[object DataView]"!=y(new n(new ArrayBuffer(1)))||o&&"[object Map]"!=y(new o)||i&&"[object Promise]"!=y(i.resolve())||a&&"[object Set]"!=y(new a)||c&&"[object WeakMap]"!=y(new c))&&(y=function(t){var e=s(t),r="[object Object]"==e?t.constructor:void 0,n=r?u(r):"";if(n)switch(n){case l:return"[object DataView]";case f:return"[object Map]";case h:return"[object Promise]";case p:return"[object Set]";case d:return"[object WeakMap]"}return e}),t.exports=y},function(t,e,r){var n=r(232),o=r(548),i=r(29);t.exports=function(t){return i(t)?n(t,!0):o(t)}},function(t,e,r){(function(t){var n=r(20),o=r(552),i="object"==typeof e&&e&&!e.nodeType&&e,a=i&&"object"==typeof t&&t&&!t.nodeType&&t,c=a&&a.exports===i?n.Buffer:void 0,s=(c?c.isBuffer:void 0)||o;t.exports=s}).call(this,r(110)(t))},function(t,e){t.exports=function(t,e){return t===e||t!=t&&e!=e}},,,,,,,,,,function(t,e,r){var n=r(39),o=1/0;t.exports=function(t){if("string"==typeof t||n(t))return t;var e=t+"";return"0"==e&&1/t==-o?"-0":e}},function(t,e,r){var n=r(551),o=r(75),i=r(108),a=i&&i.isTypedArray,c=a?o(a):n;t.exports=c},function(t,e,r){var n=r(553),o=r(23),i=Object.prototype,a=i.hasOwnProperty,c=i.propertyIsEnumerable,s=n(function(){return arguments}())?n:function(t){return o(t)&&a.call(t,"callee")&&!c.call(t,"callee")};t.exports=s},function(t,e,r){var n=r(78),o=r(77);t.exports=function(t,e,r,i){var a=!r;r||(r={});for(var c=-1,s=e.length;++c<s;){var u=e[c],l=i?i(r[u],t[u],u,r,t):void 0;void 0===l&&(l=t[u]),a?o(r,u,l):n(r,u,l)}return r}},function(t,e,r){var n=r(34),o=r(16),i="[object AsyncFunction]",a="[object Function]",c="[object GeneratorFunction]",s="[object Proxy]";t.exports=function(t){if(!o(t))return!1;var e=n(t);return e==a||e==c||e==i||e==s}},,,,,,,,,,function(t,e,r){"use strict";var n=r(7);t.exports={longestPath:function(t){var e={};n.forEach(t.sources(),(function r(o){var i=t.node(o);if(n.has(e,o))return i.rank;e[o]=!0;var a=n.min(n.map(t.outEdges(o),(function(e){return r(e.w)-t.edge(e).minlen})));return a!==Number.POSITIVE_INFINITY&&void 0!==a&&null!==a||(a=0),i.rank=a}))},slack:function(t,e){return t.node(e.w).rank-t.node(e.v).rank-t.edge(e).minlen}}},function(t,e,r){var n=r(43),o=r(29),i=r(76),a=r(16);t.exports=function(t,e,r){if(!a(r))return!1;var c=typeof e;return!!("number"==c?o(r)&&i(e,r.length):"string"==c&&e in r)&&n(r[e],t)}},function(t,e,r){var n=r(36),o=r(199),i=r(198);t.exports=function(t,e){return i(o(t,e,n),t+"")}},function(t,e){t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o}},function(t,e,r){var n=r(11),o=r(98),i=r(516),a=r(208);t.exports=function(t,e){return n(t)?t:o(t,e)?[t]:i(a(t))}},function(t,e,r){var n=r(102),o=r(530)(n);t.exports=o},function(t,e,r){var n=r(231)(Object.getPrototypeOf,Object);t.exports=n},function(t,e){var r=Object.prototype;t.exports=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||r)}},function(t,e){t.exports=function(t){return function(e){return t(e)}}},function(t,e){var r=9007199254740991,n=/^(?:0|[1-9]\d*)$/;t.exports=function(t,e){var o=typeof t;return!!(e=null==e?r:e)&&("number"==o||"symbol"!=o&&n.test(t))&&t>-1&&t%1==0&&t<e}},function(t,e,r){var n=r(233);t.exports=function(t,e,r){"__proto__"==e&&n?n(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}},function(t,e,r){var n=r(77),o=r(43),i=Object.prototype.hasOwnProperty;t.exports=function(t,e,r){var a=t[e];i.call(t,e)&&o(a,r)&&(void 0!==r||e in t)||n(t,e,r)}},function(t,e,r){var n=r(559);t.exports=function(t,e){var r=t.__data__;return n(e)?r["string"==typeof e?"string":"hash"]:r.map}},function(t,e,r){var n=r(37)(Object,"create");t.exports=n},function(t,e,r){var n=r(43);t.exports=function(t,e){for(var r=t.length;r--;)if(n(t[r][0],e))return r;return-1}},function(t,e,r){var n=r(581),o=r(580),i=r(579),a=r(578),c=r(577);function s(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}s.prototype.clear=n,s.prototype.delete=o,s.prototype.get=i,s.prototype.has=a,s.prototype.set=c,t.exports=s},function(t,e,r){var n=r(82),o=r(576),i=r(575),a=r(574),c=r(573),s=r(572);function u(t){var e=this.__data__=new n(t);this.size=e.size}u.prototype.clear=o,u.prototype.delete=i,u.prototype.get=a,u.prototype.has=c,u.prototype.set=s,t.exports=u},,,,,,,,,,,,,function(t,e,r){var n=r(39);t.exports=function(t,e,r){for(var o=-1,i=t.length;++o<i;){var a=t[o],c=e(a);if(null!=c&&(void 0===s?c==c&&!n(c):r(c,s)))var s=c,u=a}return u}},function(t,e,r){var n=r(105),o=r(497);t.exports=function t(e,r,i,a,c){var s=-1,u=e.length;for(i||(i=o),c||(c=[]);++s<u;){var l=e[s];r>0&&i(l)?r>1?t(l,r-1,i,a,c):n(c,l):a||(c[c.length]=l)}return c}},function(t,e,r){var n=r(11),o=r(39),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;t.exports=function(t,e){if(n(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!o(t))||a.test(t)||!i.test(t)||null!=e&&t in Object(e)}},function(t,e,r){var n=r(71),o=r(53);t.exports=function(t,e){for(var r=0,i=(e=n(e,t)).length;null!=t&&r<i;)t=t[o(e[r++])];return r&&r==i?t:void 0}},function(t,e){t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r}},function(t,e,r){var n=r(531)();t.exports=n},function(t,e,r){var n=r(101),o=r(33);t.exports=function(t,e){return t&&n(t,e,o)}},function(t,e){t.exports=function(t){return function(){return t}}},function(t,e,r){var n=r(222);t.exports=function(t){var e=new t.constructor(t.byteLength);return new n(e).set(new n(t)),e}},function(t,e){t.exports=function(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}},function(t,e,r){var n=r(228),o=r(227),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,c=a?function(t){return null==t?[]:(t=Object(t),n(a(t),(function(e){return i.call(t,e)})))}:o;t.exports=c},function(t,e,r){var n=r(74),o=r(550),i=Object.prototype.hasOwnProperty;t.exports=function(t){if(!n(t))return o(t);var e=[];for(var r in Object(t))i.call(t,r)&&"constructor"!=r&&e.push(r);return e}},function(t,e,r){(function(t){var n=r(117),o="object"==typeof e&&e&&!e.nodeType&&e,i=o&&"object"==typeof t&&t&&!t.nodeType&&t,a=i&&i.exports===o&&n.process,c=function(){try{var t=i&&i.require&&i.require("util").types;return t||a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=c}).call(this,r(110)(t))},function(t,e){var r=9007199254740991;t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=r}},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e){t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n&&!1!==e(t[r],r,t););return t}},function(t,e,r){var n=r(567),o=r(560),i=r(558),a=r(557),c=r(556);function s(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}s.prototype.clear=n,s.prototype.delete=o,s.prototype.get=i,s.prototype.has=a,s.prototype.set=c,t.exports=s},function(t,e,r){var n=r(37)(r(20),"Map");t.exports=n},function(t,e,r){"use strict";var n=r(18);t.exports=c;var o="\0",i="\0",a="";function c(t){this._isDirected=!n.has(t,"directed")||t.directed,this._isMultigraph=!!n.has(t,"multigraph")&&t.multigraph,this._isCompound=!!n.has(t,"compound")&&t.compound,this._label=void 0,this._defaultNodeLabelFn=n.constant(void 0),this._defaultEdgeLabelFn=n.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[i]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}function s(t,e){t[e]?t[e]++:t[e]=1}function u(t,e){--t[e]||delete t[e]}function l(t,e,r,i){var c=""+e,s=""+r;if(!t&&c>s){var u=c;c=s,s=u}return c+a+s+a+(n.isUndefined(i)?o:i)}function f(t,e){return l(t,e.v,e.w,e.name)}c.prototype._nodeCount=0,c.prototype._edgeCount=0,c.prototype.isDirected=function(){return this._isDirected},c.prototype.isMultigraph=function(){return this._isMultigraph},c.prototype.isCompound=function(){return this._isCompound},c.prototype.setGraph=function(t){return this._label=t,this},c.prototype.graph=function(){return this._label},c.prototype.setDefaultNodeLabel=function(t){return n.isFunction(t)||(t=n.constant(t)),this._defaultNodeLabelFn=t,this},c.prototype.nodeCount=function(){return this._nodeCount},c.prototype.nodes=function(){return n.keys(this._nodes)},c.prototype.sources=function(){var t=this;return n.filter(this.nodes(),(function(e){return n.isEmpty(t._in[e])}))},c.prototype.sinks=function(){var t=this;return n.filter(this.nodes(),(function(e){return n.isEmpty(t._out[e])}))},c.prototype.setNodes=function(t,e){var r=arguments,o=this;return n.each(t,(function(t){r.length>1?o.setNode(t,e):o.setNode(t)})),this},c.prototype.setNode=function(t,e){return n.has(this._nodes,t)?(arguments.length>1&&(this._nodes[t]=e),this):(this._nodes[t]=arguments.length>1?e:this._defaultNodeLabelFn(t),this._isCompound&&(this._parent[t]=i,this._children[t]={},this._children[i][t]=!0),this._in[t]={},this._preds[t]={},this._out[t]={},this._sucs[t]={},++this._nodeCount,this)},c.prototype.node=function(t){return this._nodes[t]},c.prototype.hasNode=function(t){return n.has(this._nodes,t)},c.prototype.removeNode=function(t){var e=this;if(n.has(this._nodes,t)){var r=function(t){e.removeEdge(e._edgeObjs[t])};delete this._nodes[t],this._isCompound&&(this._removeFromParentsChildList(t),delete this._parent[t],n.each(this.children(t),(function(t){e.setParent(t)})),delete this._children[t]),n.each(n.keys(this._in[t]),r),delete this._in[t],delete this._preds[t],n.each(n.keys(this._out[t]),r),delete this._out[t],delete this._sucs[t],--this._nodeCount}return this},c.prototype.setParent=function(t,e){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(n.isUndefined(e))e=i;else{for(var r=e+="";!n.isUndefined(r);r=this.parent(r))if(r===t)throw new Error("Setting "+e+" as parent of "+t+" would create a cycle");this.setNode(e)}return this.setNode(t),this._removeFromParentsChildList(t),this._parent[t]=e,this._children[e][t]=!0,this},c.prototype._removeFromParentsChildList=function(t){delete this._children[this._parent[t]][t]},c.prototype.parent=function(t){if(this._isCompound){var e=this._parent[t];if(e!==i)return e}},c.prototype.children=function(t){if(n.isUndefined(t)&&(t=i),this._isCompound){var e=this._children[t];if(e)return n.keys(e)}else{if(t===i)return this.nodes();if(this.hasNode(t))return[]}},c.prototype.predecessors=function(t){var e=this._preds[t];if(e)return n.keys(e)},c.prototype.successors=function(t){var e=this._sucs[t];if(e)return n.keys(e)},c.prototype.neighbors=function(t){var e=this.predecessors(t);if(e)return n.union(e,this.successors(t))},c.prototype.isLeaf=function(t){return 0===(this.isDirected()?this.successors(t):this.neighbors(t)).length},c.prototype.filterNodes=function(t){var e=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});e.setGraph(this.graph());var r=this;n.each(this._nodes,(function(r,n){t(n)&&e.setNode(n,r)})),n.each(this._edgeObjs,(function(t){e.hasNode(t.v)&&e.hasNode(t.w)&&e.setEdge(t,r.edge(t))}));var o={};return this._isCompound&&n.each(e.nodes(),(function(t){e.setParent(t,function t(n){var i=r.parent(n);return void 0===i||e.hasNode(i)?(o[n]=i,i):i in o?o[i]:t(i)}(t))})),e},c.prototype.setDefaultEdgeLabel=function(t){return n.isFunction(t)||(t=n.constant(t)),this._defaultEdgeLabelFn=t,this},c.prototype.edgeCount=function(){return this._edgeCount},c.prototype.edges=function(){return n.values(this._edgeObjs)},c.prototype.setPath=function(t,e){var r=this,o=arguments;return n.reduce(t,(function(t,n){return o.length>1?r.setEdge(t,n,e):r.setEdge(t,n),n})),this},c.prototype.setEdge=function(){var t,e,r,o,i=!1,a=arguments[0];"object"==typeof a&&null!==a&&"v"in a?(t=a.v,e=a.w,r=a.name,2===arguments.length&&(o=arguments[1],i=!0)):(t=a,e=arguments[1],r=arguments[3],arguments.length>2&&(o=arguments[2],i=!0)),t=""+t,e=""+e,n.isUndefined(r)||(r=""+r);var c=l(this._isDirected,t,e,r);if(n.has(this._edgeLabels,c))return i&&(this._edgeLabels[c]=o),this;if(!n.isUndefined(r)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(t),this.setNode(e),this._edgeLabels[c]=i?o:this._defaultEdgeLabelFn(t,e,r);var u=function(t,e,r,n){var o=""+e,i=""+r;if(!t&&o>i){var a=o;o=i,i=a}var c={v:o,w:i};return n&&(c.name=n),c}(this._isDirected,t,e,r);return t=u.v,e=u.w,Object.freeze(u),this._edgeObjs[c]=u,s(this._preds[e],t),s(this._sucs[t],e),this._in[e][c]=u,this._out[t][c]=u,this._edgeCount++,this},c.prototype.edge=function(t,e,r){var n=1===arguments.length?f(this._isDirected,arguments[0]):l(this._isDirected,t,e,r);return this._edgeLabels[n]},c.prototype.hasEdge=function(t,e,r){var o=1===arguments.length?f(this._isDirected,arguments[0]):l(this._isDirected,t,e,r);return n.has(this._edgeLabels,o)},c.prototype.removeEdge=function(t,e,r){var n=1===arguments.length?f(this._isDirected,arguments[0]):l(this._isDirected,t,e,r),o=this._edgeObjs[n];return o&&(t=o.v,e=o.w,delete this._edgeLabels[n],delete this._edgeObjs[n],u(this._preds[e],t),u(this._sucs[t],e),delete this._in[e][n],delete this._out[t][n],this._edgeCount--),this},c.prototype.inEdges=function(t,e){var r=this._in[t];if(r){var o=n.values(r);return e?n.filter(o,(function(t){return t.v===e})):o}},c.prototype.outEdges=function(t,e){var r=this._out[t];if(r){var o=n.values(r);return e?n.filter(o,(function(t){return t.w===e})):o}},c.prototype.nodeEdges=function(t,e){var r=this.inEdges(t,e);if(r)return r.concat(this.outEdges(t,e))}},,,function(t,e,r){(function(e){var r="object"==typeof e&&e&&e.Object===Object&&e;t.exports=r}).call(this,r(252))},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,r){"use strict";var n=r(7),o=r(22).Graph,i=r(67).slack;function a(t,e){return n.forEach(t.nodes(),(function r(o){n.forEach(e.nodeEdges(o),(function(n){var a=n.v,c=o===a?n.w:a;t.hasNode(c)||i(e,n)||(t.setNode(c,{}),t.setEdge(o,c,{}),r(c))}))})),t.nodeCount()}function c(t,e){return n.minBy(e.edges(),(function(r){if(t.hasNode(r.v)!==t.hasNode(r.w))return i(e,r)}))}function s(t,e,r){n.forEach(t.nodes(),(function(t){e.node(t).rank+=r}))}t.exports=function(t){var e,r,n=new o({directed:!1}),u=t.nodes()[0],l=t.nodeCount();for(n.setNode(u,{});a(n,t)<l;)e=c(n,t),r=n.hasNode(e.v)?i(t,e):-i(t,e),s(n,t,r);return n}},function(t,e){t.exports=function(t,e){return t<e}},function(t,e){t.exports=function(t,e){if("__proto__"!=e)return t[e]}},function(t,e,r){var n=r(77),o=r(43);t.exports=function(t,e,r){(void 0===r||o(t[e],r))&&(void 0!==r||e in t)||n(t,e,r)}},function(t,e,r){var n=r(97);t.exports=function(t){return null!=t&&t.length?n(t,1):[]}},function(t,e,r){var n=r(251),o=1/0,i=17976931348623157e292;t.exports=function(t){return t?(t=n(t))===o||t===-o?(t<0?-1:1)*i:t==t?t:0:0===t?t:0}},function(t,e,r){var n=r(18);t.exports=function(t,e,r){n.isArray(e)||(e=[e]);var o=(t.isDirected()?t.successors:t.neighbors).bind(t),i=[],a={};return n.each(e,(function(e){if(!t.hasNode(e))throw new Error("Graph does not have node: "+e);!function t(e,r,o,i,a,c){n.has(i,r)||(i[r]=!0,o||c.push(r),n.each(a(r),(function(r){t(e,r,o,i,a,c)})),o&&c.push(r))}(t,e,"post"===r,a,o,i)})),i}},function(t,e,r){var n=r(18);function o(t){var e={},r={},o=[];if(n.each(t.sinks(),(function a(c){if(n.has(r,c))throw new i;n.has(e,c)||(r[c]=!0,e[c]=!0,n.each(t.predecessors(c),a),delete r[c],o.push(c))})),n.size(e)!==t.nodeCount())throw new i;return o}function i(){}t.exports=o,o.CycleException=i,i.prototype=new Error},function(t,e,r){var n=r(18);t.exports=function(t){var e=0,r=[],o={},i=[];return t.nodes().forEach((function(a){n.has(o,a)||function a(c){var s=o[c]={onStack:!0,lowlink:e,index:e++};if(r.push(c),t.successors(c).forEach((function(t){n.has(o,t)?o[t].onStack&&(s.lowlink=Math.min(s.lowlink,o[t].index)):(a(t),s.lowlink=Math.min(s.lowlink,o[t].lowlink))})),s.lowlink===s.index){var u,l=[];do{u=r.pop(),o[u].onStack=!1,l.push(u)}while(c!==u);i.push(l)}}(a)})),i}},function(t,e,r){var n=r(18);function o(){this._arr=[],this._keyIndices={}}t.exports=o,o.prototype.size=function(){return this._arr.length},o.prototype.keys=function(){return this._arr.map((function(t){return t.key}))},o.prototype.has=function(t){return n.has(this._keyIndices,t)},o.prototype.priority=function(t){var e=this._keyIndices[t];if(void 0!==e)return this._arr[e].priority},o.prototype.min=function(){if(0===this.size())throw new Error("Queue underflow");return this._arr[0].key},o.prototype.add=function(t,e){var r=this._keyIndices;if(t=String(t),!n.has(r,t)){var o=this._arr,i=o.length;return r[t]=i,o.push({key:t,priority:e}),this._decrease(i),!0}return!1},o.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var t=this._arr.pop();return delete this._keyIndices[t.key],this._heapify(0),t.key},o.prototype.decrease=function(t,e){var r=this._keyIndices[t];if(e>this._arr[r].priority)throw new Error("New priority is greater than current priority. Key: "+t+" Old: "+this._arr[r].priority+" New: "+e);this._arr[r].priority=e,this._decrease(r)},o.prototype._heapify=function(t){var e=this._arr,r=2*t,n=r+1,o=t;r<e.length&&(o=e[r].priority<e[o].priority?r:o,n<e.length&&(o=e[n].priority<e[o].priority?n:o),o!==t&&(this._swap(t,o),this._heapify(o)))},o.prototype._decrease=function(t){for(var e,r=this._arr,n=r[t].priority;0!==t&&!(r[e=t>>1].priority<n);)this._swap(t,e),t=e},o.prototype._swap=function(t,e){var r=this._arr,n=this._keyIndices,o=r[t],i=r[e];r[t]=i,r[e]=o,n[i.key]=t,n[o.key]=e}},function(t,e,r){var n=r(18),o=r(193);t.exports=function(t,e,r,n){return function(t,e,r,n){var i,a,c={},s=new o,u=function(t){var e=t.v!==i?t.v:t.w,n=c[e],o=r(t),u=a.distance+o;if(o<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+t+" Weight: "+o);u<n.distance&&(n.distance=u,n.predecessor=i,s.decrease(e,u))};for(t.nodes().forEach((function(t){var r=t===e?0:Number.POSITIVE_INFINITY;c[t]={distance:r},s.add(t,r)}));s.size()>0&&(i=s.removeMin(),(a=c[i]).distance!==Number.POSITIVE_INFINITY);)n(i).forEach(u);return c}(t,String(e),r||i,n||function(e){return t.outEdges(e)})};var i=n.constant(1)},function(t,e,r){var n=r(485),o=r(33);t.exports=function(t){return null==t?[]:n(t,o(t))}},function(t,e,r){var n=r(29),o=r(23);t.exports=function(t){return o(t)&&n(t)}},function(t,e){t.exports=function(t,e,r,n){for(var o=t.length,i=r+(n?1:-1);n?i--:++i<o;)if(e(t[i],i,t))return i;return-1}},function(t,e,r){var n=r(495),o=r(494)(n);t.exports=o},function(t,e,r){var n=r(496),o=Math.max;t.exports=function(t,e,r){return e=o(void 0===e?t.length-1:e,0),function(){for(var i=arguments,a=-1,c=o(i.length-e,0),s=Array(c);++a<c;)s[a]=i[e+a];a=-1;for(var u=Array(e+1);++a<e;)u[a]=i[a];return u[e]=r(s),n(t,this,u)}}},function(t,e,r){var n=r(507),o=r(72),i=r(28),a=r(506),c=r(11);t.exports=function(t,e,r){var s=c(t)?n:a,u=arguments.length<3;return s(t,i(e,4),r,u,o)}},function(t,e,r){var n=r(72),o=r(29);t.exports=function(t,e){var r=-1,i=o(t)?Array(t.length):[];return n(t,(function(t,n,o){i[++r]=e(t,n,o)})),i}},function(t,e,r){var n=r(70),o=r(28),i=r(201),a=r(11);t.exports=function(t,e){return(a(t)?n:i)(t,o(e,3))}},function(t,e){t.exports=function(t){return void 0===t}},function(t,e,r){var n=r(509),o=r(206);t.exports=function(t,e){return null!=t&&o(t,e,n)}},function(t,e){t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},function(t,e,r){var n=r(71),o=r(55),i=r(11),a=r(76),c=r(109),s=r(53);t.exports=function(t,e,r){for(var u=-1,l=(e=n(e,t)).length,f=!1;++u<l;){var h=s(e[u]);if(!(f=null!=t&&r(t,h)))break;t=t[h]}return f||++u!=l?f:!!(l=null==t?0:t.length)&&c(l)&&a(h,l)&&(i(t)||o(t))}},function(t,e,r){var n=r(512),o=r(206);t.exports=function(t,e){return null!=t&&o(t,e,n)}},function(t,e,r){var n=r(513);t.exports=function(t){return null==t?"":n(t)}},function(t,e){t.exports=function(t,e){return function(r){return null!=r&&r[t]===e&&(void 0!==e||t in Object(r))}}},function(t,e,r){var n=r(16);t.exports=function(t){return t==t&&!n(t)}},function(t,e){t.exports=function(t,e){return t.has(e)}},function(t,e,r){var n=r(112),o=r(525),i=r(524);function a(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new n;++e<r;)this.add(t[e])}a.prototype.add=a.prototype.push=o,a.prototype.has=i,t.exports=a},function(t,e,r){var n=r(212),o=r(523),i=r(211),a=1,c=2;t.exports=function(t,e,r,s,u,l){var f=r&a,h=t.length,p=e.length;if(h!=p&&!(f&&p>h))return!1;var d=l.get(t);if(d&&l.get(e))return d==e;var y=-1,v=!0,m=r&c?new n:void 0;for(l.set(t,e),l.set(e,t);++y<h;){var g=t[y],b=e[y];if(s)var w=f?s(b,g,y,e,t,l):s(g,b,y,t,e,l);if(void 0!==w){if(w)continue;v=!1;break}if(m){if(!o(e,(function(t,e){if(!i(m,e)&&(g===t||u(g,t,r,s,l)))return m.push(e)}))){v=!1;break}}else if(g!==b&&!u(g,b,r,s,l)){v=!1;break}}return l.delete(t),l.delete(e),v}},function(t,e,r){var n=r(526),o=r(23);t.exports=function t(e,r,i,a,c){return e===r||(null==e||null==r||!o(e)&&!o(r)?e!=e&&r!=r:n(e,r,i,a,t,c))}},function(t,e,r){var n=r(228),o=r(529),i=r(28),a=r(11);t.exports=function(t,e){return(a(t)?n:o)(t,i(e,3))}},function(t,e,r){var n=r(36);t.exports=function(t){return"function"==typeof t?t:n}},function(t,e,r){var n=r(111),o=r(72),i=r(216),a=r(11);t.exports=function(t,e){return(a(t)?n:o)(t,i(e))}},function(t,e,r){t.exports=r(217)},function(t,e,r){var n=r(16),o=Object.create,i=function(){function t(){}return function(e){if(!n(e))return{};if(o)return o(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}}();t.exports=i},function(t,e,r){var n=r(219),o=r(73),i=r(74);t.exports=function(t){return"function"!=typeof t.constructor||i(t)?{}:n(o(t))}},function(t,e,r){var n=r(104);t.exports=function(t,e){var r=e?n(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}},function(t,e,r){var n=r(20).Uint8Array;t.exports=n},function(t,e,r){var n=r(37)(r(20),"Set");t.exports=n},function(t,e,r){var n=r(105),o=r(11);t.exports=function(t,e,r){var i=e(t);return o(t)?i:n(i,r(t))}},function(t,e,r){var n=r(224),o=r(106),i=r(33);t.exports=function(t){return n(t,i,o)}},function(t,e,r){var n=r(105),o=r(73),i=r(106),a=r(227),c=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)n(e,i(t)),t=o(t);return e}:a;t.exports=c},function(t,e){t.exports=function(){return[]}},function(t,e){t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,o=0,i=[];++r<n;){var a=t[r];e(a,r,t)&&(i[o++]=a)}return i}},function(t,e){t.exports=function(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r<n;)e[r]=t[r];return e}},function(t,e,r){(function(t){var n=r(20),o="object"==typeof e&&e&&!e.nodeType&&e,i=o&&"object"==typeof t&&t&&!t.nodeType&&t,a=i&&i.exports===o?n.Buffer:void 0,c=a?a.allocUnsafe:void 0;t.exports=function(t,e){if(e)return t.slice();var r=t.length,n=c?c(r):new t.constructor(r);return t.copy(n),n}}).call(this,r(110)(t))},function(t,e){t.exports=function(t,e){return function(r){return t(e(r))}}},function(t,e,r){var n=r(554),o=r(55),i=r(11),a=r(42),c=r(76),s=r(54),u=Object.prototype.hasOwnProperty;t.exports=function(t,e){var r=i(t),l=!r&&o(t),f=!r&&!l&&a(t),h=!r&&!l&&!f&&s(t),p=r||l||f||h,d=p?n(t.length,String):[],y=d.length;for(var v in t)!e&&!u.call(t,v)||p&&("length"==v||f&&("offset"==v||"parent"==v)||h&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||c(v,y))||d.push(v);return d}},function(t,e,r){var n=r(37),o=function(){try{var t=n(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=o},function(t,e){var r=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return r.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},function(t,e,r){var n=r(83),o=r(111),i=r(78),a=r(555),c=r(549),s=r(230),u=r(229),l=r(546),f=r(545),h=r(225),p=r(544),d=r(40),y=r(540),v=r(539),m=r(220),g=r(11),b=r(42),w=r(535),_=r(16),x=r(533),O=r(33),k=1,E=2,S=4,j="[object Arguments]",L="[object Function]",P="[object GeneratorFunction]",N="[object Object]",A={};A[j]=A["[object Array]"]=A["[object ArrayBuffer]"]=A["[object DataView]"]=A["[object Boolean]"]=A["[object Date]"]=A["[object Float32Array]"]=A["[object Float64Array]"]=A["[object Int8Array]"]=A["[object Int16Array]"]=A["[object Int32Array]"]=A["[object Map]"]=A["[object Number]"]=A[N]=A["[object RegExp]"]=A["[object Set]"]=A["[object String]"]=A["[object Symbol]"]=A["[object Uint8Array]"]=A["[object Uint8ClampedArray]"]=A["[object Uint16Array]"]=A["[object Uint32Array]"]=!0,A["[object Error]"]=A[L]=A["[object WeakMap]"]=!1,t.exports=function t(e,r,C,T,I,M){var D,q=r&k,R=r&E,B=r&S;if(C&&(D=I?C(e,T,I,M):C(e)),void 0!==D)return D;if(!_(e))return e;var F=g(e);if(F){if(D=y(e),!q)return u(e,D)}else{var $=d(e),V=$==L||$==P;if(b(e))return s(e,q);if($==N||$==j||V&&!I){if(D=R||V?{}:m(e),!q)return R?f(e,c(D,e)):l(e,a(D,e))}else{if(!A[$])return I?e:{};D=v(e,$,q)}}M||(M=new n);var U=M.get(e);if(U)return U;if(M.set(e,D),x(e))return e.forEach((function(n){D.add(t(n,r,C,n,e,M))})),D;if(w(e))return e.forEach((function(n,o){D.set(o,t(n,r,C,o,e,M))})),D;var G=B?R?p:h:R?keysIn:O,z=F?void 0:G(e);return o(z||e,(function(n,o){z&&(n=e[o=n]),i(D,o,t(n,r,C,o,e,M))})),D}},,,,,,,,,,,,,,function(t,e){var r=Object.prototype.toString;t.exports=function(t){return r.call(t)}},function(t,e,r){var n=r(38),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,c=n?n.toStringTag:void 0;t.exports=function(t){var e=i.call(t,c),r=t[c];try{t[c]=void 0;var n=!0}catch(t){}var o=a.call(t);return n&&(e?t[c]=r:delete t[c]),o}},function(t,e,r){var n=r(16),o=r(39),i=NaN,a=/^\s+|\s+$/g,c=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,l=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(o(t))return i;if(n(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=n(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(a,"");var r=s.test(t);return r||u.test(t)?l(t.slice(2),r?2:8):c.test(t)?i:+t}},function(t,e){var r;r=function(){return this}();try{r=r||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,e,r){var n=r(20);t.exports=function(){return n.Date.now()}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e){t.exports="0.8.4"},function(t,e,r){var n=r(7),o=r(15),i=r(22).Graph;t.exports={debugOrdering:function(t){var e=o.buildLayerMatrix(t),r=new i({compound:!0,multigraph:!0}).setGraph({});return n.forEach(t.nodes(),(function(e){r.setNode(e,{label:e}),r.setParent(e,"layer"+t.node(e).rank)})),n.forEach(t.edges(),(function(t){r.setEdge(t.v,t.w,{},t.name)})),n.forEach(e,(function(t,e){var o="layer"+e;r.setNode(o,{rank:"same"}),n.reduce(t,(function(t,e){return r.setEdge(t,e,{style:"invis"}),e}))})),r}}},function(t,e,r){"use strict";var n=r(7),o=r(22).Graph,i=r(15);function a(t,e){var r={};return n.reduce(e,(function(e,o){var i=0,a=0,c=e.length,u=n.last(o);return n.forEach(o,(function(e,l){var f=function(t,e){if(t.node(e).dummy)return n.find(t.predecessors(e),(function(e){return t.node(e).dummy}))}(t,e),h=f?t.node(f).order:c;(f||e===u)&&(n.forEach(o.slice(a,l+1),(function(e){n.forEach(t.predecessors(e),(function(n){var o=t.node(n),a=o.order;!(a<i||h<a)||o.dummy&&t.node(e).dummy||s(r,n,e)}))})),a=l+1,i=h)})),o})),r}function c(t,e){var r={};function o(e,o,i,a,c){var u;n.forEach(n.range(o,i),(function(o){u=e[o],t.node(u).dummy&&n.forEach(t.predecessors(u),(function(e){var n=t.node(e);n.dummy&&(n.order<a||n.order>c)&&s(r,e,u)}))}))}return n.reduce(e,(function(e,r){var i,a=-1,c=0;return n.forEach(r,(function(n,s){if("border"===t.node(n).dummy){var u=t.predecessors(n);u.length&&(i=t.node(u[0]).order,o(r,c,s,a,i),c=s,a=i)}o(r,c,r.length,i,e.length)})),r})),r}function s(t,e,r){if(e>r){var n=e;e=r,r=n}var o=t[e];o||(t[e]=o={}),o[r]=!0}function u(t,e,r){if(e>r){var o=e;e=r,r=o}return n.has(t[e],r)}function l(t,e,r,o){var i={},a={},c={};return n.forEach(e,(function(t){n.forEach(t,(function(t,e){i[t]=t,a[t]=t,c[t]=e}))})),n.forEach(e,(function(t){var e=-1;n.forEach(t,(function(t){var s=o(t);if(s.length)for(var l=((s=n.sortBy(s,(function(t){return c[t]}))).length-1)/2,f=Math.floor(l),h=Math.ceil(l);f<=h;++f){var p=s[f];a[t]===t&&e<c[p]&&!u(r,t,p)&&(a[p]=t,a[t]=i[t]=i[p],e=c[p])}}))})),{root:i,align:a}}function f(t,e,r,i,a){var c={},s=function(t,e,r,i){var a=new o,c=t.graph(),s=function(t,e,r){return function(o,i,a){var c,s=o.node(i),u=o.node(a),l=0;if(l+=s.width/2,n.has(s,"labelpos"))switch(s.labelpos.toLowerCase()){case"l":c=-s.width/2;break;case"r":c=s.width/2}if(c&&(l+=r?c:-c),c=0,l+=(s.dummy?e:t)/2,l+=(u.dummy?e:t)/2,l+=u.width/2,n.has(u,"labelpos"))switch(u.labelpos.toLowerCase()){case"l":c=u.width/2;break;case"r":c=-u.width/2}return c&&(l+=r?c:-c),c=0,l}}(c.nodesep,c.edgesep,i);return n.forEach(e,(function(e){var o;n.forEach(e,(function(e){var n=r[e];if(a.setNode(n),o){var i=r[o],c=a.edge(i,n);a.setEdge(i,n,Math.max(s(t,e,o),c||0))}o=e}))})),a}(t,e,r,a),u=a?"borderLeft":"borderRight";function l(t,e){for(var r=s.nodes(),n=r.pop(),o={};n;)o[n]?t(n):(o[n]=!0,r.push(n),r=r.concat(e(n))),n=r.pop()}return l((function(t){c[t]=s.inEdges(t).reduce((function(t,e){return Math.max(t,c[e.v]+s.edge(e))}),0)}),s.predecessors.bind(s)),l((function(e){var r=s.outEdges(e).reduce((function(t,e){return Math.min(t,c[e.w]-s.edge(e))}),Number.POSITIVE_INFINITY),n=t.node(e);r!==Number.POSITIVE_INFINITY&&n.borderType!==u&&(c[e]=Math.max(c[e],r))}),s.successors.bind(s)),n.forEach(i,(function(t){c[t]=c[r[t]]})),c}function h(t,e){return n.minBy(n.values(e),(function(e){var r=Number.NEGATIVE_INFINITY,o=Number.POSITIVE_INFINITY;return n.forIn(e,(function(e,n){var i=function(t,e){return t.node(e).width}(t,n)/2;r=Math.max(e+i,r),o=Math.min(e-i,o)})),r-o}))}function p(t,e){var r=n.values(e),o=n.min(r),i=n.max(r);n.forEach(["u","d"],(function(r){n.forEach(["l","r"],(function(a){var c,s=r+a,u=t[s];if(u!==e){var l=n.values(u);(c="l"===a?o-n.min(l):i-n.max(l))&&(t[s]=n.mapValues(u,(function(t){return t+c})))}}))}))}function d(t,e){return n.mapValues(t.ul,(function(r,o){if(e)return t[e.toLowerCase()][o];var i=n.sortBy(n.map(t,o));return(i[1]+i[2])/2}))}t.exports={positionX:function(t){var e,r=i.buildLayerMatrix(t),o=n.merge(a(t,r),c(t,r)),s={};n.forEach(["u","d"],(function(i){e="u"===i?r:n.values(r).reverse(),n.forEach(["l","r"],(function(r){"r"===r&&(e=n.map(e,(function(t){return n.values(t).reverse()})));var a=("u"===i?t.predecessors:t.successors).bind(t),c=l(t,e,o,a),u=f(t,e,c.root,c.align,"r"===r);"r"===r&&(u=n.mapValues(u,(function(t){return-t}))),s[i+r]=u}))}));var u=h(t,s);return p(s,u),d(s,t.graph().align)},findType1Conflicts:a,findType2Conflicts:c,addConflict:s,hasConflict:u,verticalAlignment:l,horizontalCompaction:f,alignCoordinates:p,findSmallestWidthAlignment:h,balance:d}},function(t,e,r){"use strict";var n=r(7),o=r(15),i=r(417).positionX;t.exports=function(t){(function(t){var e=o.buildLayerMatrix(t),r=t.graph().ranksep,i=0;n.forEach(e,(function(e){var o=n.max(n.map(e,(function(e){return t.node(e).height})));n.forEach(e,(function(e){t.node(e).y=i+o/2})),i+=o+r}))})(t=o.asNonCompoundGraph(t)),n.forEach(i(t),(function(e,r){t.node(r).x=e}))}},function(t,e,r){var n=r(7);t.exports=function(t,e,r){var o,i={};n.forEach(r,(function(r){for(var n,a,c=t.parent(r);c;){if((n=t.parent(c))?(a=i[n],i[n]=c):(a=o,o=c),a&&a!==c)return void e.setEdge(a,c);c=n}}))}},function(t,e,r){var n=r(7),o=r(22).Graph;t.exports=function(t,e,r){var i=function(t){for(var e;t.hasNode(e=n.uniqueId("_root")););return e}(t),a=new o({compound:!0}).setGraph({root:i}).setDefaultNodeLabel((function(e){return t.node(e)}));return n.forEach(t.nodes(),(function(o){var c=t.node(o),s=t.parent(o);(c.rank===e||c.minRank<=e&&e<=c.maxRank)&&(a.setNode(o),a.setParent(o,s||i),n.forEach(t[r](o),(function(e){var r=e.v===o?e.w:e.v,i=a.edge(r,o),c=n.isUndefined(i)?0:i.weight;a.setEdge(r,o,{weight:t.edge(e).weight+c})})),n.has(c,"minRank")&&a.setNode(o,{borderLeft:c.borderLeft[e],borderRight:c.borderRight[e]}))})),a}},function(t,e,r){var n=r(7),o=r(15);function i(t,e,r){for(var o;e.length&&(o=n.last(e)).i<=r;)e.pop(),t.push(o.vs),r++;return r}t.exports=function(t,e){var r=o.partition(t,(function(t){return n.has(t,"barycenter")})),a=r.lhs,c=n.sortBy(r.rhs,(function(t){return-t.i})),s=[],u=0,l=0,f=0;a.sort(function(t){return function(e,r){return e.barycenter<r.barycenter?-1:e.barycenter>r.barycenter?1:t?r.i-e.i:e.i-r.i}}(!!e)),f=i(s,c,f),n.forEach(a,(function(t){f+=t.vs.length,s.push(t.vs),u+=t.barycenter*t.weight,l+=t.weight,f=i(s,c,f)}));var h={vs:n.flatten(s,!0)};return l&&(h.barycenter=u/l,h.weight=l),h}},function(t,e,r){"use strict";var n=r(7);t.exports=function(t,e){var r={};return n.forEach(t,(function(t,e){var o=r[t.v]={indegree:0,in:[],out:[],vs:[t.v],i:e};n.isUndefined(t.barycenter)||(o.barycenter=t.barycenter,o.weight=t.weight)})),n.forEach(e.edges(),(function(t){var e=r[t.v],o=r[t.w];n.isUndefined(e)||n.isUndefined(o)||(o.indegree++,e.out.push(r[t.w]))})),function(t){var e=[];function r(t){return function(e){e.merged||(n.isUndefined(e.barycenter)||n.isUndefined(t.barycenter)||e.barycenter>=t.barycenter)&&function(t,e){var r=0,n=0;t.weight&&(r+=t.barycenter*t.weight,n+=t.weight),e.weight&&(r+=e.barycenter*e.weight,n+=e.weight),t.vs=e.vs.concat(t.vs),t.barycenter=r/n,t.weight=n,t.i=Math.min(e.i,t.i),e.merged=!0}(t,e)}}function o(e){return function(r){r.in.push(e),0==--r.indegree&&t.push(r)}}for(;t.length;){var i=t.pop();e.push(i),n.forEach(i.in.reverse(),r(i)),n.forEach(i.out,o(i))}return n.map(n.filter(e,(function(t){return!t.merged})),(function(t){return n.pick(t,["vs","i","barycenter","weight"])}))}(n.filter(r,(function(t){return!t.indegree})))}},function(t,e,r){var n=r(7);t.exports=function(t,e){return n.map(e,(function(e){var r=t.inEdges(e);if(r.length){var o=n.reduce(r,(function(e,r){var n=t.edge(r),o=t.node(r.v);return{sum:e.sum+n.weight*o.order,weight:e.weight+n.weight}}),{sum:0,weight:0});return{v:e,barycenter:o.sum/o.weight,weight:o.weight}}return{v:e}}))}},function(t,e,r){var n=r(7),o=r(423),i=r(422),a=r(421);t.exports=function t(e,r,c,s){var u=e.children(r),l=e.node(r),f=l?l.borderLeft:void 0,h=l?l.borderRight:void 0,p={};f&&(u=n.filter(u,(function(t){return t!==f&&t!==h})));var d=o(e,u);n.forEach(d,(function(r){if(e.children(r.v).length){var o=t(e,r.v,c,s);p[r.v]=o,n.has(o,"barycenter")&&function(t,e){n.isUndefined(t.barycenter)?(t.barycenter=e.barycenter,t.weight=e.weight):(t.barycenter=(t.barycenter*t.weight+e.barycenter*e.weight)/(t.weight+e.weight),t.weight+=e.weight)}(r,o)}}));var y=i(d,c);!function(t,e){n.forEach(t,(function(t){t.vs=n.flatten(t.vs.map((function(t){return e[t]?e[t].vs:t})),!0)}))}(y,p);var v=a(y,s);if(f&&(v.vs=n.flatten([f,v.vs,h],!0),e.predecessors(f).length)){var m=e.node(e.predecessors(f)[0]),g=e.node(e.predecessors(h)[0]);n.has(v,"barycenter")||(v.barycenter=0,v.weight=0),v.barycenter=(v.barycenter*v.weight+m.order+g.order)/(v.weight+2),v.weight+=2}return v}},function(t,e,r){"use strict";var n=r(7);function o(t,e,r){for(var o=n.zipObject(r,n.map(r,(function(t,e){return e}))),i=n.flatten(n.map(e,(function(e){return n.sortBy(n.map(t.outEdges(e),(function(e){return{pos:o[e.w],weight:t.edge(e).weight}})),"pos")})),!0),a=1;a<r.length;)a<<=1;var c=2*a-1;a-=1;var s=n.map(new Array(c),(function(){return 0})),u=0;return n.forEach(i.forEach((function(t){var e=t.pos+a;s[e]+=t.weight;for(var r=0;e>0;)e%2&&(r+=s[e+1]),s[e=e-1>>1]+=t.weight;u+=t.weight*r}))),u}t.exports=function(t,e){for(var r=0,n=1;n<e.length;++n)r+=o(t,e[n-1],e[n]);return r}},function(t,e,r){"use strict";var n=r(7);t.exports=function(t){var e={},r=n.filter(t.nodes(),(function(e){return!t.children(e).length})),o=n.max(n.map(r,(function(e){return t.node(e).rank}))),i=n.map(n.range(o+1),(function(){return[]})),a=n.sortBy(r,(function(e){return t.node(e).rank}));return n.forEach(a,(function r(o){if(!n.has(e,o)){e[o]=!0;var a=t.node(o);i[a.rank].push(o),n.forEach(t.successors(o),r)}})),i}},function(t,e,r){"use strict";var n=r(7),o=r(426),i=r(425),a=r(424),c=r(420),s=r(419),u=r(22).Graph,l=r(15);function f(t,e,r){return n.map(e,(function(e){return c(t,e,r)}))}function h(t,e){var r=new u;n.forEach(t,(function(t){var o=t.graph().root,i=a(t,o,r,e);n.forEach(i.vs,(function(e,r){t.node(e).order=r})),s(t,r,i.vs)}))}function p(t,e){n.forEach(e,(function(e){n.forEach(e,(function(e,r){t.node(e).order=r}))}))}t.exports=function(t){var e=l.maxRank(t),r=f(t,n.range(1,e+1),"inEdges"),a=f(t,n.range(e-1,-1,-1),"outEdges"),c=o(t);p(t,c);for(var s,u=Number.POSITIVE_INFINITY,d=0,y=0;y<4;++d,++y){h(d%2?r:a,d%4>=2),c=l.buildLayerMatrix(t);var v=i(t,c);v<u&&(y=0,s=n.cloneDeep(c),u=v)}p(t,s)}},function(t,e,r){"use strict";var n=r(7);function o(t){n.forEach(t.nodes(),(function(e){i(t.node(e))})),n.forEach(t.edges(),(function(e){i(t.edge(e))}))}function i(t){var e=t.width;t.width=t.height,t.height=e}function a(t){t.y=-t.y}function c(t){var e=t.x;t.x=t.y,t.y=e}t.exports={adjust:function(t){var e=t.graph().rankdir.toLowerCase();"lr"!==e&&"rl"!==e||o(t)},undo:function(t){var e=t.graph().rankdir.toLowerCase();"bt"!==e&&"rl"!==e||function(t){n.forEach(t.nodes(),(function(e){a(t.node(e))})),n.forEach(t.edges(),(function(e){var r=t.edge(e);n.forEach(r.points,a),n.has(r,"y")&&a(r)}))}(t),"lr"!==e&&"rl"!==e||(function(t){n.forEach(t.nodes(),(function(e){c(t.node(e))})),n.forEach(t.edges(),(function(e){var r=t.edge(e);n.forEach(r.points,c),n.has(r,"x")&&c(r)}))}(t),o(t))}}},function(t,e,r){var n=r(7),o=r(15);function i(t,e,r,n,i,a){var c={width:0,height:0,rank:a,borderType:e},s=i[e][a-1],u=o.addDummyNode(t,"border",c,r);i[e][a]=u,t.setParent(u,n),s&&t.setEdge(s,u,{weight:1})}t.exports=function(t){n.forEach(t.children(),(function e(r){var o=t.children(r),a=t.node(r);if(o.length&&n.forEach(o,e),n.has(a,"minRank")){a.borderLeft=[],a.borderRight=[];for(var c=a.minRank,s=a.maxRank+1;c<s;++c)i(t,"borderLeft","_bl",r,a,c),i(t,"borderRight","_br",r,a,c)}}))}},function(t,e,r){var n=r(7),o=r(15);t.exports={run:function(t){var e=o.addDummyNode(t,"root",{},"_root"),r=function(t){var e={};return n.forEach(t.children(),(function(r){!function r(o,i){var a=t.children(o);a&&a.length&&n.forEach(a,(function(t){r(t,i+1)})),e[o]=i}(r,1)})),e}(t),i=n.max(n.values(r))-1,a=2*i+1;t.graph().nestingRoot=e,n.forEach(t.edges(),(function(e){t.edge(e).minlen*=a}));var c=function(t){return n.reduce(t.edges(),(function(e,r){return e+t.edge(r).weight}),0)}(t)+1;n.forEach(t.children(),(function(s){!function t(e,r,i,a,c,s,u){var l=e.children(u);if(l.length){var f=o.addBorderNode(e,"_bt"),h=o.addBorderNode(e,"_bb"),p=e.node(u);e.setParent(f,u),p.borderTop=f,e.setParent(h,u),p.borderBottom=h,n.forEach(l,(function(n){t(e,r,i,a,c,s,n);var o=e.node(n),l=o.borderTop?o.borderTop:n,p=o.borderBottom?o.borderBottom:n,d=o.borderTop?a:2*a,y=l!==p?1:c-s[u]+1;e.setEdge(f,l,{weight:d,minlen:y,nestingEdge:!0}),e.setEdge(p,h,{weight:d,minlen:y,nestingEdge:!0})})),e.parent(u)||e.setEdge(r,f,{weight:0,minlen:c+s[u]})}else u!==r&&e.setEdge(r,u,{weight:0,minlen:i})}(t,e,a,c,i,r,s)})),t.graph().nodeRankFactor=a},cleanup:function(t){var e=t.graph();t.removeNode(e.nestingRoot),delete e.nestingRoot,n.forEach(t.edges(),(function(e){var r=t.edge(e);r.nestingEdge&&t.removeEdge(e)}))}}},function(t,e,r){var n=r(7);t.exports=function(t){var e=function(t){var e={},r=0;return n.forEach(t.children(),(function o(i){var a=r;n.forEach(t.children(i),o),e[i]={low:a,lim:r++}})),e}(t);n.forEach(t.graph().dummyChains,(function(r){for(var n=t.node(r),o=n.edgeObj,i=function(t,e,r,n){var o,i,a=[],c=[],s=Math.min(e[r].low,e[n].low),u=Math.max(e[r].lim,e[n].lim);o=r;do{o=t.parent(o),a.push(o)}while(o&&(e[o].low>s||u>e[o].lim));for(i=o,o=n;(o=t.parent(o))!==i;)c.push(o);return{path:a.concat(c.reverse()),lca:i}}(t,e,o.v,o.w),a=i.path,c=i.lca,s=0,u=a[s],l=!0;r!==o.w;){if(n=t.node(r),l){for(;(u=a[s])!==c&&t.node(u).maxRank<n.rank;)s++;u===c&&(l=!1)}if(!l){for(;s<a.length-1&&t.node(u=a[s+1]).minRank<=n.rank;)s++;u=a[s]}t.setParent(r,u),r=t.successors(r)[0]}}))}},function(t,e,r){"use strict";var n=r(7),o=r(184),i=r(67).slack,a=r(67).longestPath,c=r(22).alg.preorder,s=r(22).alg.postorder,u=r(15).simplify;function l(t){t=u(t),a(t);var e,r=o(t);for(p(r),f(r,t);e=d(r);)v(r,t,e,y(r,t,e))}function f(t,e){var r=s(t,t.nodes());r=r.slice(0,r.length-1),n.forEach(r,(function(r){!function(t,e,r){var n=t.node(r).parent;t.edge(r,n).cutvalue=h(t,e,r)}(t,e,r)}))}function h(t,e,r){var o=t.node(r).parent,i=!0,a=e.edge(r,o),c=0;return a||(i=!1,a=e.edge(o,r)),c=a.weight,n.forEach(e.nodeEdges(r),(function(n){var a=n.v===r,s=a?n.w:n.v;if(s!==o){var u=a===i,l=e.edge(n).weight;if(c+=u?l:-l,function(t,e,r){return t.hasEdge(e,r)}(t,r,s)){var f=t.edge(r,s).cutvalue;c+=u?-f:f}}})),c}function p(t,e){arguments.length<2&&(e=t.nodes()[0]),function t(e,r,o,i,a){var c=o,s=e.node(i);return r[i]=!0,n.forEach(e.neighbors(i),(function(a){n.has(r,a)||(o=t(e,r,o,a,i))})),s.low=c,s.lim=o++,a?s.parent=a:delete s.parent,o}(t,{},1,e)}function d(t){return n.find(t.edges(),(function(e){return t.edge(e).cutvalue<0}))}function y(t,e,r){var o=r.v,a=r.w;e.hasEdge(o,a)||(o=r.w,a=r.v);var c=t.node(o),s=t.node(a),u=c,l=!1;c.lim>s.lim&&(u=s,l=!0);var f=n.filter(e.edges(),(function(e){return l===m(t,t.node(e.v),u)&&l!==m(t,t.node(e.w),u)}));return n.minBy(f,(function(t){return i(e,t)}))}function v(t,e,r,o){var i=r.v,a=r.w;t.removeEdge(i,a),t.setEdge(o.v,o.w,{}),p(t),f(t,e),function(t,e){var r=n.find(t.nodes(),(function(t){return!e.node(t).parent})),o=c(t,r);o=o.slice(1),n.forEach(o,(function(r){var n=t.node(r).parent,o=e.edge(r,n),i=!1;o||(o=e.edge(n,r),i=!0),e.node(r).rank=e.node(n).rank+(i?o.minlen:-o.minlen)}))}(t,e)}function m(t,e,r){return r.low<=e.lim&&e.lim<=r.lim}t.exports=l,l.initLowLimValues=p,l.initCutValues=f,l.calcCutValue=h,l.leaveEdge=d,l.enterEdge=y,l.exchangeEdges=v},function(t,e,r){"use strict";var n=r(67).longestPath,o=r(184),i=r(432);t.exports=function(t){switch(t.graph().ranker){case"network-simplex":c(t);break;case"tight-tree":!function(t){n(t),o(t)}(t);break;case"longest-path":a(t);break;default:c(t)}};var a=n;function c(t){i(t)}},function(t,e,r){"use strict";var n=r(7),o=r(15);t.exports={run:function(t){t.graph().dummyChains=[],n.forEach(t.edges(),(function(e){!function(t,e){var r,n,i,a=e.v,c=t.node(a).rank,s=e.w,u=t.node(s).rank,l=e.name,f=t.edge(e),h=f.labelRank;if(u!==c+1){for(t.removeEdge(e),i=0,++c;c<u;++i,++c)f.points=[],n={width:0,height:0,edgeLabel:f,edgeObj:e,rank:c},r=o.addDummyNode(t,"edge",n,"_d"),c===h&&(n.width=f.width,n.height=f.height,n.dummy="edge-label",n.labelpos=f.labelpos),t.setEdge(a,r,{weight:f.weight},l),0===i&&t.graph().dummyChains.push(r),a=r;t.setEdge(a,s,{weight:f.weight},l)}}(t,e)}))},undo:function(t){n.forEach(t.graph().dummyChains,(function(e){var r,n=t.node(e),o=n.edgeLabel;for(t.setEdge(n.edgeObj,o);n.dummy;)r=t.successors(e)[0],t.removeNode(e),o.points.push({x:n.x,y:n.y}),"edge-label"===n.dummy&&(o.x=n.x,o.y=n.y,o.width=n.width,o.height=n.height),e=r,n=t.node(e)}))}}},function(t,e){function r(){var t={};t._next=t._prev=t,this._sentinel=t}function n(t){t._prev._next=t._next,t._next._prev=t._prev,delete t._next,delete t._prev}function o(t,e){if("_next"!==t&&"_prev"!==t)return e}t.exports=r,r.prototype.dequeue=function(){var t=this._sentinel,e=t._prev;if(e!==t)return n(e),e},r.prototype.enqueue=function(t){var e=this._sentinel;t._prev&&t._next&&n(t),t._next=e._next,e._next._prev=t,e._next=t,t._prev=e},r.prototype.toString=function(){for(var t=[],e=this._sentinel,r=e._prev;r!==e;)t.push(JSON.stringify(r,o)),r=r._prev;return"["+t.join(", ")+"]"}},function(t,e,r){var n=r(7),o=r(22).Graph,i=r(435);t.exports=function(t,e){if(t.nodeCount()<=1)return[];var r=function(t,e){var r=new o,a=0,c=0;n.forEach(t.nodes(),(function(t){r.setNode(t,{v:t,in:0,out:0})})),n.forEach(t.edges(),(function(t){var n=r.edge(t.v,t.w)||0,o=e(t),i=n+o;r.setEdge(t.v,t.w,i),c=Math.max(c,r.node(t.v).out+=o),a=Math.max(a,r.node(t.w).in+=o)}));var u=n.range(c+a+3).map((function(){return new i})),l=a+1;return n.forEach(r.nodes(),(function(t){s(u,l,r.node(t))})),{graph:r,buckets:u,zeroIdx:l}}(t,e||a),u=function(t,e,r){for(var n,o=[],i=e[e.length-1],a=e[0];t.nodeCount();){for(;n=a.dequeue();)c(t,e,r,n);for(;n=i.dequeue();)c(t,e,r,n);if(t.nodeCount())for(var s=e.length-2;s>0;--s)if(n=e[s].dequeue()){o=o.concat(c(t,e,r,n,!0));break}}return o}(r.graph,r.buckets,r.zeroIdx);return n.flatten(n.map(u,(function(e){return t.outEdges(e.v,e.w)})),!0)};var a=n.constant(1);function c(t,e,r,o,i){var a=i?[]:void 0;return n.forEach(t.inEdges(o.v),(function(n){var o=t.edge(n),c=t.node(n.v);i&&a.push({v:n.v,w:n.w}),c.out-=o,s(e,r,c)})),n.forEach(t.outEdges(o.v),(function(n){var o=t.edge(n),i=n.w,a=t.node(i);a.in-=o,s(e,r,a)})),t.removeNode(o.v),a}function s(t,e,r){r.out?r.in?t[r.out-r.in+e].enqueue(r):t[t.length-1].enqueue(r):t[0].enqueue(r)}},function(t,e,r){"use strict";var n=r(7),o=r(436);t.exports={run:function(t){var e="greedy"===t.graph().acyclicer?o(t,function(t){return function(e){return t.edge(e).weight}}(t)):function(t){var e=[],r={},o={};return n.forEach(t.nodes(),(function i(a){n.has(o,a)||(o[a]=!0,r[a]=!0,n.forEach(t.outEdges(a),(function(t){n.has(r,t.w)?e.push(t):i(t.w)})),delete r[a])})),e}(t);n.forEach(e,(function(e){var r=t.edge(e);t.removeEdge(e),r.forwardName=e.name,r.reversed=!0,t.setEdge(e.w,e.v,r,n.uniqueId("rev"))}))},undo:function(t){n.forEach(t.edges(),(function(e){var r=t.edge(e);if(r.reversed){t.removeEdge(e);var n=r.forwardName;delete r.reversed,delete r.forwardName,t.setEdge(e.w,e.v,r,n)}}))}}},function(t,e){t.exports=function(t,e,r){for(var n=-1,o=t.length,i=e.length,a={};++n<o;){var c=n<i?e[n]:void 0;r(a,t[n],c)}return a}},function(t,e,r){var n=r(78),o=r(438);t.exports=function(t,e){return o(t||[],e||[],n)}},function(t,e,r){var n=r(208),o=0;t.exports=function(t){var e=++o;return n(t)+e}},function(t,e,r){var n=r(39);t.exports=function(t,e){if(t!==e){var r=void 0!==t,o=null===t,i=t==t,a=n(t),c=void 0!==e,s=null===e,u=e==e,l=n(e);if(!s&&!l&&!a&&t>e||a&&c&&u&&!s&&!l||o&&c&&u||!r&&u||!i)return 1;if(!o&&!a&&!l&&t<e||l&&r&&i&&!o&&!a||s&&r&&i||!c&&i||!u)return-1}return 0}},function(t,e,r){var n=r(441);t.exports=function(t,e,r){for(var o=-1,i=t.criteria,a=e.criteria,c=i.length,s=r.length;++o<c;){var u=n(i[o],a[o]);if(u)return o>=s?u:u*("desc"==r[o]?-1:1)}return t.index-e.index}},function(t,e){t.exports=function(t,e){var r=t.length;for(t.sort(e);r--;)t[r]=t[r].value;return t}},function(t,e,r){var n=r(70),o=r(28),i=r(201),a=r(443),c=r(75),s=r(442),u=r(36);t.exports=function(t,e,r){var l=-1;e=n(e.length?e:[u],c(o));var f=i(t,(function(t,r,o){return{criteria:n(e,(function(e){return e(t)})),index:++l,value:t}}));return a(f,(function(t,e){return s(t,e,r)}))}},function(t,e,r){var n=r(97),o=r(444),i=r(69),a=r(68),c=i((function(t,e){if(null==t)return[];var r=e.length;return r>1&&a(t,e[0],e[1])?e=[]:r>2&&a(e[0],e[1],e[2])&&(e=[e[0]]),o(t,n(e,1),[])}));t.exports=c},function(t,e){var r=Math.ceil,n=Math.max;t.exports=function(t,e,o,i){for(var a=-1,c=n(r((e-t)/(o||1)),0),s=Array(c);c--;)s[i?c:++a]=t,t+=o;return s}},function(t,e,r){var n=r(446),o=r(68),i=r(189);t.exports=function(t){return function(e,r,a){return a&&"number"!=typeof a&&o(e,r,a)&&(r=a=void 0),e=i(e),void 0===r?(r=e,e=0):r=i(r),a=void 0===a?e<r?1:-1:i(a),n(e,r,a,t)}}},function(t,e,r){var n=r(447)();t.exports=n},function(t,e,r){var n=r(188),o=r(199),i=r(198);t.exports=function(t){return i(o(t,void 0,n),t+"")}},function(t,e,r){var n=r(78),o=r(71),i=r(76),a=r(16),c=r(53);t.exports=function(t,e,r,s){if(!a(t))return t;for(var u=-1,l=(e=o(e,t)).length,f=l-1,h=t;null!=h&&++u<l;){var p=c(e[u]),d=r;if(u!=f){var y=h[p];void 0===(d=s?s(y,p,h):void 0)&&(d=a(y)?y:i(e[u+1])?[]:{})}n(h,p,d),h=h[p]}return t}},function(t,e,r){var n=r(99),o=r(450),i=r(71);t.exports=function(t,e,r){for(var a=-1,c=e.length,s={};++a<c;){var u=e[a],l=n(t,u);r(l,u)&&o(s,i(u,t),l)}return s}},function(t,e,r){var n=r(451),o=r(207);t.exports=function(t,e){return n(t,e,(function(e,r){return o(t,r)}))}},function(t,e,r){var n=r(452),o=r(449)((function(t,e){return null==t?{}:n(t,e)}));t.exports=o},function(t,e,r){var n=r(96),o=r(28),i=r(185);t.exports=function(t,e){return t&&t.length?n(t,o(e,2),i):void 0}},function(t,e,r){var n=r(96),o=r(185),i=r(36);t.exports=function(t){return t&&t.length?n(t,i,o):void 0}},function(t,e,r){var n=r(69),o=r(68);t.exports=function(t){return n((function(e,r){var n=-1,i=r.length,a=i>1?r[i-1]:void 0,c=i>2?r[2]:void 0;for(a=t.length>3&&"function"==typeof a?(i--,a):void 0,c&&o(r[0],r[1],c)&&(a=i<3?void 0:a,i=1),e=Object(e);++n<i;){var s=r[n];s&&t(e,s,n,a)}return e}))}},function(t,e,r){var n=r(56),o=r(41);t.exports=function(t){return n(t,o(t))}},function(t,e,r){var n=r(34),o=r(73),i=r(23),a="[object Object]",c=Function.prototype,s=Object.prototype,u=c.toString,l=s.hasOwnProperty,f=u.call(Object);t.exports=function(t){if(!i(t)||n(t)!=a)return!1;var e=o(t);if(null===e)return!0;var r=l.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&u.call(r)==f}},function(t,e,r){var n=r(187),o=r(230),i=r(221),a=r(229),c=r(220),s=r(55),u=r(11),l=r(196),f=r(42),h=r(57),p=r(16),d=r(458),y=r(54),v=r(186),m=r(457);t.exports=function(t,e,r,g,b,w,_){var x=v(t,r),O=v(e,r),k=_.get(O);if(k)n(t,r,k);else{var E=w?w(x,O,r+"",t,e,_):void 0,S=void 0===E;if(S){var j=u(O),L=!j&&f(O),P=!j&&!L&&y(O);E=O,j||L||P?u(x)?E=x:l(x)?E=a(x):L?(S=!1,E=o(O,!0)):P?(S=!1,E=i(O,!0)):E=[]:d(O)||s(O)?(E=x,s(x)?E=m(x):p(x)&&!h(x)||(E=c(O))):S=!1}S&&(_.set(O,E),b(E,O,g,w,_),_.delete(O)),n(t,r,E)}}},function(t,e,r){var n=r(83),o=r(187),i=r(101),a=r(459),c=r(16),s=r(41),u=r(186);t.exports=function t(e,r,l,f,h){e!==r&&i(r,(function(i,s){if(c(i))h||(h=new n),a(e,r,s,l,t,f,h);else{var p=f?f(u(e,s),i,s+"",e,r,h):void 0;void 0===p&&(p=i),o(e,s,p)}}),s)}},function(t,e,r){var n=r(460),o=r(456)((function(t,e,r){n(t,e,r)}));t.exports=o},function(t,e){t.exports=function(t,e){return t>e}},function(t,e,r){var n=r(96),o=r(462),i=r(36);t.exports=function(t){return t&&t.length?n(t,i,o):void 0}},function(t,e,r){var n=r(77),o=r(102),i=r(28);t.exports=function(t,e){var r={};return e=i(e,3),o(t,(function(t,o,i){n(r,o,e(t,o,i))})),r}},function(t,e){t.exports=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}},function(t,e,r){var n=r(101),o=r(216),i=r(41);t.exports=function(t,e){return null==t?t:n(t,o(e),i)}},function(t,e,r){var n=r(189);t.exports=function(t){var e=n(t),r=e%1;return e==e?r?e-r:e:0}},function(t,e,r){var n=r(197),o=r(28),i=r(467),a=Math.max;t.exports=function(t,e,r){var c=null==t?0:t.length;if(!c)return-1;var s=null==r?0:i(r);return s<0&&(s=a(c+s,0)),n(t,o(e,3),s)}},function(t,e,r){var n=r(28),o=r(29),i=r(33);t.exports=function(t){return function(e,r,a){var c=Object(e);if(!o(e)){var s=n(r,3);e=i(e),r=function(t){return s(c[t],t,c)}}var u=t(e,r,a);return u>-1?c[s?e[u]:u]:void 0}}},function(t,e,r){var n=r(469)(r(468));t.exports=n},function(t,e,r){var n=r(69),o=r(43),i=r(68),a=r(41),c=Object.prototype,s=c.hasOwnProperty,u=n((function(t,e){t=Object(t);var r=-1,n=e.length,u=n>2?e[2]:void 0;for(u&&i(e[0],e[1],u)&&(n=1);++r<n;)for(var l=e[r],f=a(l),h=-1,p=f.length;++h<p;){var d=f[h],y=t[d];(void 0===y||o(y,c[d])&&!s.call(t,d))&&(t[d]=l[d])}return t}));t.exports=u},function(t,e,r){var n=r(235),o=1,i=4;t.exports=function(t){return n(t,o|i)}},function(t,e,r){"use strict";var n=r(7),o=r(437),i=r(434),a=r(433),c=r(15).normalizeRanks,s=r(431),u=r(15).removeEmptyRanks,l=r(430),f=r(429),h=r(428),p=r(427),d=r(418),y=r(15),v=r(22).Graph;t.exports=function(t,e){var r=e&&e.debugTiming?y.time:y.notime;r("layout",(function(){var e=r(" buildLayoutGraph",(function(){return function(t){var e=new v({multigraph:!0,compound:!0}),r=S(t.graph());return e.setGraph(n.merge({},g,E(r,m),n.pick(r,b))),n.forEach(t.nodes(),(function(r){var o=S(t.node(r));e.setNode(r,n.defaults(E(o,w),_)),e.setParent(r,t.parent(r))})),n.forEach(t.edges(),(function(r){var o=S(t.edge(r));e.setEdge(r,n.merge({},O,E(o,x),n.pick(o,k)))})),e}(t)}));r(" runLayout",(function(){!function(t,e){e(" makeSpaceForEdgeLabels",(function(){!function(t){var e=t.graph();e.ranksep/=2,n.forEach(t.edges(),(function(r){var n=t.edge(r);n.minlen*=2,"c"!==n.labelpos.toLowerCase()&&("TB"===e.rankdir||"BT"===e.rankdir?n.width+=n.labeloffset:n.height+=n.labeloffset)}))}(t)})),e(" removeSelfEdges",(function(){!function(t){n.forEach(t.edges(),(function(e){if(e.v===e.w){var r=t.node(e.v);r.selfEdges||(r.selfEdges=[]),r.selfEdges.push({e:e,label:t.edge(e)}),t.removeEdge(e)}}))}(t)})),e(" acyclic",(function(){o.run(t)})),e(" nestingGraph.run",(function(){l.run(t)})),e(" rank",(function(){a(y.asNonCompoundGraph(t))})),e(" injectEdgeLabelProxies",(function(){!function(t){n.forEach(t.edges(),(function(e){var r=t.edge(e);if(r.width&&r.height){var n=t.node(e.v),o=t.node(e.w),i={rank:(o.rank-n.rank)/2+n.rank,e:e};y.addDummyNode(t,"edge-proxy",i,"_ep")}}))}(t)})),e(" removeEmptyRanks",(function(){u(t)})),e(" nestingGraph.cleanup",(function(){l.cleanup(t)})),e(" normalizeRanks",(function(){c(t)})),e(" assignRankMinMax",(function(){!function(t){var e=0;n.forEach(t.nodes(),(function(r){var o=t.node(r);o.borderTop&&(o.minRank=t.node(o.borderTop).rank,o.maxRank=t.node(o.borderBottom).rank,e=n.max(e,o.maxRank))})),t.graph().maxRank=e}(t)})),e(" removeEdgeLabelProxies",(function(){!function(t){n.forEach(t.nodes(),(function(e){var r=t.node(e);"edge-proxy"===r.dummy&&(t.edge(r.e).labelRank=r.rank,t.removeNode(e))}))}(t)})),e(" normalize.run",(function(){i.run(t)})),e(" parentDummyChains",(function(){s(t)})),e(" addBorderSegments",(function(){f(t)})),e(" order",(function(){p(t)})),e(" insertSelfEdges",(function(){!function(t){var e=y.buildLayerMatrix(t);n.forEach(e,(function(e){var r=0;n.forEach(e,(function(e,o){var i=t.node(e);i.order=o+r,n.forEach(i.selfEdges,(function(e){y.addDummyNode(t,"selfedge",{width:e.label.width,height:e.label.height,rank:i.rank,order:o+ ++r,e:e.e,label:e.label},"_se")})),delete i.selfEdges}))}))}(t)})),e(" adjustCoordinateSystem",(function(){h.adjust(t)})),e(" position",(function(){d(t)})),e(" positionSelfEdges",(function(){!function(t){n.forEach(t.nodes(),(function(e){var r=t.node(e);if("selfedge"===r.dummy){var n=t.node(r.e.v),o=n.x+n.width/2,i=n.y,a=r.x-o,c=n.height/2;t.setEdge(r.e,r.label),t.removeNode(e),r.label.points=[{x:o+2*a/3,y:i-c},{x:o+5*a/6,y:i-c},{x:o+a,y:i},{x:o+5*a/6,y:i+c},{x:o+2*a/3,y:i+c}],r.label.x=r.x,r.label.y=r.y}}))}(t)})),e(" removeBorderNodes",(function(){!function(t){n.forEach(t.nodes(),(function(e){if(t.children(e).length){var r=t.node(e),o=t.node(r.borderTop),i=t.node(r.borderBottom),a=t.node(n.last(r.borderLeft)),c=t.node(n.last(r.borderRight));r.width=Math.abs(c.x-a.x),r.height=Math.abs(i.y-o.y),r.x=a.x+r.width/2,r.y=o.y+r.height/2}})),n.forEach(t.nodes(),(function(e){"border"===t.node(e).dummy&&t.removeNode(e)}))}(t)})),e(" normalize.undo",(function(){i.undo(t)})),e(" fixupEdgeLabelCoords",(function(){!function(t){n.forEach(t.edges(),(function(e){var r=t.edge(e);if(n.has(r,"x"))switch("l"!==r.labelpos&&"r"!==r.labelpos||(r.width-=r.labeloffset),r.labelpos){case"l":r.x-=r.width/2+r.labeloffset;break;case"r":r.x+=r.width/2+r.labeloffset}}))}(t)})),e(" undoCoordinateSystem",(function(){h.undo(t)})),e(" translateGraph",(function(){!function(t){var e=Number.POSITIVE_INFINITY,r=0,o=Number.POSITIVE_INFINITY,i=0,a=t.graph(),c=a.marginx||0,s=a.marginy||0;function u(t){var n=t.x,a=t.y,c=t.width,s=t.height;e=Math.min(e,n-c/2),r=Math.max(r,n+c/2),o=Math.min(o,a-s/2),i=Math.max(i,a+s/2)}n.forEach(t.nodes(),(function(e){u(t.node(e))})),n.forEach(t.edges(),(function(e){var r=t.edge(e);n.has(r,"x")&&u(r)})),e-=c,o-=s,n.forEach(t.nodes(),(function(r){var n=t.node(r);n.x-=e,n.y-=o})),n.forEach(t.edges(),(function(r){var i=t.edge(r);n.forEach(i.points,(function(t){t.x-=e,t.y-=o})),n.has(i,"x")&&(i.x-=e),n.has(i,"y")&&(i.y-=o)})),a.width=r-e+c,a.height=i-o+s}(t)})),e(" assignNodeIntersects",(function(){!function(t){n.forEach(t.edges(),(function(e){var r,n,o=t.edge(e),i=t.node(e.v),a=t.node(e.w);o.points?(r=o.points[0],n=o.points[o.points.length-1]):(o.points=[],r=a,n=i),o.points.unshift(y.intersectRect(i,r)),o.points.push(y.intersectRect(a,n))}))}(t)})),e(" reversePoints",(function(){!function(t){n.forEach(t.edges(),(function(e){var r=t.edge(e);r.reversed&&r.points.reverse()}))}(t)})),e(" acyclic.undo",(function(){o.undo(t)}))}(e,r)})),r(" updateInputGraph",(function(){!function(t,e){n.forEach(t.nodes(),(function(r){var n=t.node(r),o=e.node(r);n&&(n.x=o.x,n.y=o.y,e.children(r).length&&(n.width=o.width,n.height=o.height))})),n.forEach(t.edges(),(function(r){var o=t.edge(r),i=e.edge(r);o.points=i.points,n.has(i,"x")&&(o.x=i.x,o.y=i.y)})),t.graph().width=e.graph().width,t.graph().height=e.graph().height}(t,e)}))}))};var m=["nodesep","edgesep","ranksep","marginx","marginy"],g={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},b=["acyclicer","ranker","rankdir","align"],w=["width","height"],_={width:0,height:0},x=["minlen","weight","width","height","labeloffset"],O={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},k=["labelpos"];function E(t,e){return n.mapValues(n.pick(t,e),Number)}function S(t){var e={};return n.forEach(t,(function(t,r){e[r.toLowerCase()]=t})),e}},function(t,e,r){var n=r(18),o=r(114),i=r(193);t.exports=function(t,e){var r,a=new o,c={},s=new i;function u(t){var n=t.v===r?t.w:t.v,o=s.priority(n);if(void 0!==o){var i=e(t);i<o&&(c[n]=r,s.decrease(n,i))}}if(0===t.nodeCount())return a;n.each(t.nodes(),(function(t){s.add(t,Number.POSITIVE_INFINITY),a.setNode(t)})),s.decrease(t.nodes()[0],0);for(var l=!1;s.size()>0;){if(r=s.removeMin(),n.has(c,r))a.setEdge(r,c[r]);else{if(l)throw new Error("Input graph is not connected: "+t);l=!0}t.nodeEdges(r).forEach(u)}return a}},function(t,e,r){var n=r(190);t.exports=function(t,e){return n(t,e,"pre")}},function(t,e,r){var n=r(190);t.exports=function(t,e){return n(t,e,"post")}},function(t,e,r){var n=r(191);t.exports=function(t){try{n(t)}catch(t){if(t instanceof n.CycleException)return!1;throw t}return!0}},function(t,e,r){var n=r(18);t.exports=function(t,e,r){return function(t,e,r){var n={},o=t.nodes();return o.forEach((function(t){n[t]={},n[t][t]={distance:0},o.forEach((function(e){t!==e&&(n[t][e]={distance:Number.POSITIVE_INFINITY})})),r(t).forEach((function(r){var o=r.v===t?r.w:r.v,i=e(r);n[t][o]={distance:i,predecessor:t}}))})),o.forEach((function(t){var e=n[t];o.forEach((function(r){var i=n[r];o.forEach((function(r){var n=i[t],o=e[r],a=i[r],c=n.distance+o.distance;c<a.distance&&(a.distance=c,a.predecessor=o.predecessor)}))}))})),n}(t,e||o,r||function(e){return t.outEdges(e)})};var o=n.constant(1)},function(t,e,r){var n=r(18),o=r(192);t.exports=function(t){return n.filter(o(t),(function(e){return e.length>1||1===e.length&&t.hasEdge(e[0],e[0])}))}},function(t,e,r){var n=r(194),o=r(18);t.exports=function(t,e,r){return o.transform(t.nodes(),(function(o,i){o[i]=n(t,i,e,r)}),{})}},function(t,e,r){var n=r(18);t.exports=function(t){var e,r={},o=[];function i(o){n.has(r,o)||(r[o]=!0,e.push(o),n.each(t.successors(o),i),n.each(t.predecessors(o),i))}return n.each(t.nodes(),(function(t){e=[],i(t),e.length&&o.push(e)})),o}},function(t,e,r){t.exports={components:r(481),dijkstra:r(194),dijkstraAll:r(480),findCycles:r(479),floydWarshall:r(478),isAcyclic:r(477),postorder:r(476),preorder:r(475),prim:r(474),tarjan:r(192),topsort:r(191)}},function(t,e,r){var n=r(18),o=r(114);t.exports={write:function(t){var e={options:{directed:t.isDirected(),multigraph:t.isMultigraph(),compound:t.isCompound()},nodes:function(t){return n.map(t.nodes(),(function(e){var r=t.node(e),o=t.parent(e),i={v:e};return n.isUndefined(r)||(i.value=r),n.isUndefined(o)||(i.parent=o),i}))}(t),edges:function(t){return n.map(t.edges(),(function(e){var r=t.edge(e),o={v:e.v,w:e.w};return n.isUndefined(e.name)||(o.name=e.name),n.isUndefined(r)||(o.value=r),o}))}(t)};return n.isUndefined(t.graph())||(e.value=n.clone(t.graph())),e},read:function(t){var e=new o(t.options).setGraph(t.value);return n.each(t.nodes,(function(t){e.setNode(t.v,t.value),t.parent&&e.setParent(t.v,t.parent)})),n.each(t.edges,(function(t){e.setEdge({v:t.v,w:t.w,name:t.name},t.value)})),e}}},function(t,e){t.exports="2.1.7"},function(t,e,r){var n=r(70);t.exports=function(t,e){return n(e,(function(e){return t[e]}))}},function(t,e){t.exports=function(){}},function(t,e,r){var n=r(223),o=r(486),i=r(100),a=n&&1/i(new n([,-0]))[1]==1/0?function(t){return new n(t)}:o;t.exports=a},function(t,e){t.exports=function(t,e,r){for(var n=-1,o=null==t?0:t.length;++n<o;)if(r(e,t[n]))return!0;return!1}},function(t,e){t.exports=function(t,e,r){for(var n=r-1,o=t.length;++n<o;)if(t[n]===e)return n;return-1}},function(t,e){t.exports=function(t){return t!=t}},function(t,e,r){var n=r(197),o=r(490),i=r(489);t.exports=function(t,e,r){return e==e?i(t,e,r):n(t,o,r)}},function(t,e,r){var n=r(491);t.exports=function(t,e){return!(null==t||!t.length)&&n(t,e,0)>-1}},function(t,e,r){var n=r(212),o=r(492),i=r(488),a=r(211),c=r(487),s=r(100),u=200;t.exports=function(t,e,r){var l=-1,f=o,h=t.length,p=!0,d=[],y=d;if(r)p=!1,f=i;else if(h>=u){var v=e?null:c(t);if(v)return s(v);p=!1,f=a,y=new n}else y=e?[]:d;t:for(;++l<h;){var m=t[l],g=e?e(m):m;if(m=r||0!==m?m:0,p&&g==g){for(var b=y.length;b--;)if(y[b]===g)continue t;e&&y.push(g),d.push(m)}else f(y,g,r)||(y!==d&&y.push(g),d.push(m))}return d}},function(t,e){var r=800,n=16,o=Date.now;t.exports=function(t){var e=0,i=0;return function(){var a=o(),c=n-(a-i);if(i=a,c>0){if(++e>=r)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}},function(t,e,r){var n=r(103),o=r(233),i=r(36),a=o?function(t,e){return o(t,"toString",{configurable:!0,enumerable:!1,value:n(e),writable:!0})}:i;t.exports=a},function(t,e){t.exports=function(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}},function(t,e,r){var n=r(38),o=r(55),i=r(11),a=n?n.isConcatSpreadable:void 0;t.exports=function(t){return i(t)||o(t)||!!(a&&t&&t[a])}},function(t,e,r){var n=r(97),o=r(69),i=r(493),a=r(196),c=o((function(t){return i(n(t,1,a,!0))}));t.exports=c},function(t,e,r){var n=r(111),o=r(219),i=r(102),a=r(28),c=r(73),s=r(11),u=r(42),l=r(57),f=r(16),h=r(54);t.exports=function(t,e,r){var p=s(t),d=p||u(t)||h(t);if(e=a(e,4),null==r){var y=t&&t.constructor;r=d?p?new y:[]:f(t)&&l(y)?o(c(t)):{}}return(d?n:i)(t,(function(t,n,o){return e(r,t,n,o)})),r}},function(t,e){var r="[\\ud800-\\udfff]",n="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",o="\\ud83c[\\udffb-\\udfff]",i="[^\\ud800-\\udfff]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",c="[\\ud800-\\udbff][\\udc00-\\udfff]",s="(?:"+n+"|"+o+")?",u="[\\ufe0e\\ufe0f]?"+s+"(?:\\u200d(?:"+[i,a,c].join("|")+")[\\ufe0e\\ufe0f]?"+s+")*",l="(?:"+[i+n+"?",n,a,c,r].join("|")+")",f=RegExp(o+"(?="+o+")|"+l+u,"g");t.exports=function(t){for(var e=f.lastIndex=0;f.test(t);)++e;return e}},function(t,e){var r=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");t.exports=function(t){return r.test(t)}},function(t,e,r){var n=r(205)("length");t.exports=n},function(t,e,r){var n=r(502),o=r(501),i=r(500);t.exports=function(t){return o(t)?i(t):n(t)}},function(t,e,r){var n=r(34),o=r(11),i=r(23),a="[object String]";t.exports=function(t){return"string"==typeof t||!o(t)&&i(t)&&n(t)==a}},function(t,e,r){var n=r(107),o=r(40),i=r(29),a=r(504),c=r(503),s="[object Map]",u="[object Set]";t.exports=function(t){if(null==t)return 0;if(i(t))return a(t)?c(t):t.length;var e=o(t);return e==s||e==u?t.size:n(t).length}},function(t,e){t.exports=function(t,e,r,n,o){return o(t,(function(t,o,i){r=n?(n=!1,t):e(r,t,o,i)})),r}},function(t,e){t.exports=function(t,e,r,n){var o=-1,i=null==t?0:t.length;for(n&&i&&(r=t[++o]);++o<i;)r=e(r,t[o],o,t);return r}},function(t,e,r){var n=r(107),o=r(40),i=r(55),a=r(11),c=r(29),s=r(42),u=r(74),l=r(54),f="[object Map]",h="[object Set]",p=Object.prototype.hasOwnProperty;t.exports=function(t){if(null==t)return!0;if(c(t)&&(a(t)||"string"==typeof t||"function"==typeof t.splice||s(t)||l(t)||i(t)))return!t.length;var e=o(t);if(e==f||e==h)return!t.size;if(u(t))return!n(t).length;for(var r in t)if(p.call(t,r))return!1;return!0}},function(t,e){var r=Object.prototype.hasOwnProperty;t.exports=function(t,e){return null!=t&&r.call(t,e)}},function(t,e,r){var n=r(99);t.exports=function(t){return function(e){return n(e,t)}}},function(t,e,r){var n=r(205),o=r(510),i=r(98),a=r(53);t.exports=function(t){return i(t)?n(a(t)):o(t)}},function(t,e){t.exports=function(t,e){return null!=t&&e in Object(t)}},function(t,e,r){var n=r(38),o=r(70),i=r(11),a=r(39),c=1/0,s=n?n.prototype:void 0,u=s?s.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(i(e))return o(e,t)+"";if(a(e))return u?u.call(e):"";var r=e+"";return"0"==r&&1/e==-c?"-0":r}},function(t,e,r){var n=r(112),o="Expected a function";function i(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError(o);var r=function(){var n=arguments,o=e?e.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=t.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(i.Cache||n),r}i.Cache=n,t.exports=i},function(t,e,r){var n=r(514),o=500;t.exports=function(t){var e=n(t,(function(t){return r.size===o&&r.clear(),t})),r=e.cache;return e}},function(t,e,r){var n=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,i=r(515)((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(n,(function(t,r,n,i){e.push(n?i.replace(o,"$1"):r||t)})),e}));t.exports=i},function(t,e,r){var n=r(99);t.exports=function(t,e,r){var o=null==t?void 0:n(t,e);return void 0===o?r:o}},function(t,e,r){var n=r(214),o=r(517),i=r(207),a=r(98),c=r(210),s=r(209),u=r(53),l=1,f=2;t.exports=function(t,e){return a(t)&&c(e)?s(u(t),e):function(r){var a=o(r,t);return void 0===a&&a===e?i(r,t):n(e,a,l|f)}}},function(t,e,r){var n=r(210),o=r(33);t.exports=function(t){for(var e=o(t),r=e.length;r--;){var i=e[r],a=t[i];e[r]=[i,a,n(a)]}return e}},function(t,e,r){var n=r(225),o=1,i=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,a,c,s){var u=r&o,l=n(t),f=l.length;if(f!=n(e).length&&!u)return!1;for(var h=f;h--;){var p=l[h];if(!(u?p in e:i.call(e,p)))return!1}var d=s.get(t);if(d&&s.get(e))return d==e;var y=!0;s.set(t,e),s.set(e,t);for(var v=u;++h<f;){var m=t[p=l[h]],g=e[p];if(a)var b=u?a(g,m,p,e,t,s):a(m,g,p,t,e,s);if(!(void 0===b?m===g||c(m,g,r,a,s):b)){y=!1;break}v||(v="constructor"==p)}if(y&&!v){var w=t.constructor,_=e.constructor;w!=_&&"constructor"in t&&"constructor"in e&&!("function"==typeof w&&w instanceof w&&"function"==typeof _&&_ instanceof _)&&(y=!1)}return s.delete(t),s.delete(e),y}},function(t,e){t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r}},function(t,e,r){var n=r(38),o=r(222),i=r(43),a=r(213),c=r(521),s=r(100),u=1,l=2,f="[object Boolean]",h="[object Date]",p="[object Error]",d="[object Map]",y="[object Number]",v="[object RegExp]",m="[object Set]",g="[object String]",b="[object Symbol]",w="[object ArrayBuffer]",_="[object DataView]",x=n?n.prototype:void 0,O=x?x.valueOf:void 0;t.exports=function(t,e,r,n,x,k,E){switch(r){case _:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case w:return!(t.byteLength!=e.byteLength||!k(new o(t),new o(e)));case f:case h:case y:return i(+t,+e);case p:return t.name==e.name&&t.message==e.message;case v:case g:return t==e+"";case d:var S=c;case m:var j=n&u;if(S||(S=s),t.size!=e.size&&!j)return!1;var L=E.get(t);if(L)return L==e;n|=l,E.set(t,e);var P=a(S(t),S(e),n,x,k,E);return E.delete(t),P;case b:if(O)return O.call(t)==O.call(e)}return!1}},function(t,e){t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e){var r="__lodash_hash_undefined__";t.exports=function(t){return this.__data__.set(t,r),this}},function(t,e,r){var n=r(83),o=r(213),i=r(522),a=r(520),c=r(40),s=r(11),u=r(42),l=r(54),f=1,h="[object Arguments]",p="[object Array]",d="[object Object]",y=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,v,m,g){var b=s(t),w=s(e),_=b?p:c(t),x=w?p:c(e),O=(_=_==h?d:_)==d,k=(x=x==h?d:x)==d,E=_==x;if(E&&u(t)){if(!u(e))return!1;b=!0,O=!1}if(E&&!O)return g||(g=new n),b||l(t)?o(t,e,r,v,m,g):i(t,e,_,r,v,m,g);if(!(r&f)){var S=O&&y.call(t,"__wrapped__"),j=k&&y.call(e,"__wrapped__");if(S||j){var L=S?t.value():t,P=j?e.value():e;return g||(g=new n),m(L,P,r,v,g)}}return!!E&&(g||(g=new n),a(t,e,r,v,m,g))}},function(t,e,r){var n=r(83),o=r(214),i=1,a=2;t.exports=function(t,e,r,c){var s=r.length,u=s,l=!c;if(null==t)return!u;for(t=Object(t);s--;){var f=r[s];if(l&&f[2]?f[1]!==t[f[0]]:!(f[0]in t))return!1}for(;++s<u;){var h=(f=r[s])[0],p=t[h],d=f[1];if(l&&f[2]){if(void 0===p&&!(h in t))return!1}else{var y=new n;if(c)var v=c(p,d,h,t,e,y);if(!(void 0===v?o(d,p,i|a,c,y):v))return!1}}return!0}},function(t,e,r){var n=r(527),o=r(519),i=r(209);t.exports=function(t){var e=o(t);return 1==e.length&&e[0][2]?i(e[0][0],e[0][1]):function(r){return r===t||n(r,t,e)}}},function(t,e,r){var n=r(72);t.exports=function(t,e){var r=[];return n(t,(function(t,n,o){e(t,n,o)&&r.push(t)})),r}},function(t,e,r){var n=r(29);t.exports=function(t,e){return function(r,o){if(null==r)return r;if(!n(r))return t(r,o);for(var i=r.length,a=e?i:-1,c=Object(r);(e?a--:++a<i)&&!1!==o(c[a],a,c););return r}}},function(t,e){t.exports=function(t){return function(e,r,n){for(var o=-1,i=Object(e),a=n(e),c=a.length;c--;){var s=a[t?c:++o];if(!1===r(i[s],s,i))break}return e}}},function(t,e,r){var n=r(40),o=r(23),i="[object Set]";t.exports=function(t){return o(t)&&n(t)==i}},function(t,e,r){var n=r(532),o=r(75),i=r(108),a=i&&i.isSet,c=a?o(a):n;t.exports=c},function(t,e,r){var n=r(40),o=r(23),i="[object Map]";t.exports=function(t){return o(t)&&n(t)==i}},function(t,e,r){var n=r(534),o=r(75),i=r(108),a=i&&i.isMap,c=a?o(a):n;t.exports=c},function(t,e,r){var n=r(38),o=n?n.prototype:void 0,i=o?o.valueOf:void 0;t.exports=function(t){return i?Object(i.call(t)):{}}},function(t,e){var r=/\w*$/;t.exports=function(t){var e=new t.constructor(t.source,r.exec(t));return e.lastIndex=t.lastIndex,e}},function(t,e,r){var n=r(104);t.exports=function(t,e){var r=e?n(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}},function(t,e,r){var n=r(104),o=r(538),i=r(537),a=r(536),c=r(221),s="[object Boolean]",u="[object Date]",l="[object Map]",f="[object Number]",h="[object RegExp]",p="[object Set]",d="[object String]",y="[object Symbol]",v="[object ArrayBuffer]",m="[object DataView]",g="[object Float32Array]",b="[object Float64Array]",w="[object Int8Array]",_="[object Int16Array]",x="[object Int32Array]",O="[object Uint8Array]",k="[object Uint8ClampedArray]",E="[object Uint16Array]",S="[object Uint32Array]";t.exports=function(t,e,r){var j=t.constructor;switch(e){case v:return n(t);case s:case u:return new j(+t);case m:return o(t,r);case g:case b:case w:case _:case x:case O:case k:case E:case S:return c(t,r);case l:return new j;case f:case d:return new j(t);case h:return i(t);case p:return new j;case y:return a(t)}}},function(t,e){var r=Object.prototype.hasOwnProperty;t.exports=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&r.call(t,"index")&&(n.index=t.index,n.input=t.input),n}},function(t,e,r){var n=r(37)(r(20),"WeakMap");t.exports=n},function(t,e,r){var n=r(37)(r(20),"Promise");t.exports=n},function(t,e,r){var n=r(37)(r(20),"DataView");t.exports=n},function(t,e,r){var n=r(224),o=r(226),i=r(41);t.exports=function(t){return n(t,i,o)}},function(t,e,r){var n=r(56),o=r(226);t.exports=function(t,e){return n(t,o(t),e)}},function(t,e,r){var n=r(56),o=r(106);t.exports=function(t,e){return n(t,o(t),e)}},function(t,e){t.exports=function(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e}},function(t,e,r){var n=r(16),o=r(74),i=r(547),a=Object.prototype.hasOwnProperty;t.exports=function(t){if(!n(t))return i(t);var e=o(t),r=[];for(var c in t)("constructor"!=c||!e&&a.call(t,c))&&r.push(c);return r}},function(t,e,r){var n=r(56),o=r(41);t.exports=function(t,e){return t&&n(e,o(e),t)}},function(t,e,r){var n=r(231)(Object.keys,Object);t.exports=n},function(t,e,r){var n=r(34),o=r(109),i=r(23),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,t.exports=function(t){return i(t)&&o(t.length)&&!!a[n(t)]}},function(t,e){t.exports=function(){return!1}},function(t,e,r){var n=r(34),o=r(23),i="[object Arguments]";t.exports=function(t){return o(t)&&n(t)==i}},function(t,e){t.exports=function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}},function(t,e,r){var n=r(56),o=r(33);t.exports=function(t,e){return t&&n(e,o(e),t)}},function(t,e,r){var n=r(79);t.exports=function(t,e){var r=n(this,t),o=r.size;return r.set(t,e),this.size+=r.size==o?0:1,this}},function(t,e,r){var n=r(79);t.exports=function(t){return n(this,t).has(t)}},function(t,e,r){var n=r(79);t.exports=function(t){return n(this,t).get(t)}},function(t,e){t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},function(t,e,r){var n=r(79);t.exports=function(t){var e=n(this,t).delete(t);return this.size-=e?1:0,e}},function(t,e,r){var n=r(80),o="__lodash_hash_undefined__";t.exports=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=n&&void 0===e?o:e,this}},function(t,e,r){var n=r(80),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return n?void 0!==e[t]:o.call(e,t)}},function(t,e,r){var n=r(80),o="__lodash_hash_undefined__",i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(n){var r=e[t];return r===o?void 0:r}return i.call(e,t)?e[t]:void 0}},function(t,e){t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},function(t,e,r){var n=r(80);t.exports=function(){this.__data__=n?n(null):{},this.size=0}},function(t,e,r){var n=r(565),o=r(564),i=r(563),a=r(562),c=r(561);function s(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}s.prototype.clear=n,s.prototype.delete=o,s.prototype.get=i,s.prototype.has=a,s.prototype.set=c,t.exports=s},function(t,e,r){var n=r(566),o=r(82),i=r(113);t.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||o),string:new n}}},function(t,e){t.exports=function(t,e){return null==t?void 0:t[e]}},function(t,e,r){var n=r(20)["__core-js_shared__"];t.exports=n},function(t,e,r){var n=r(569),o=function(){var t=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();t.exports=function(t){return!!o&&o in t}},function(t,e,r){var n=r(57),o=r(570),i=r(16),a=r(234),c=/^\[object .+?Constructor\]$/,s=Function.prototype,u=Object.prototype,l=s.toString,f=u.hasOwnProperty,h=RegExp("^"+l.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!i(t)||o(t))&&(n(t)?h:c).test(a(t))}},function(t,e,r){var n=r(82),o=r(113),i=r(112),a=200;t.exports=function(t,e){var r=this.__data__;if(r instanceof n){var c=r.__data__;if(!o||c.length<a-1)return c.push([t,e]),this.size=++r.size,this;r=this.__data__=new i(c)}return r.set(t,e),this.size=r.size,this}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e){t.exports=function(t){return this.__data__.get(t)}},function(t,e){t.exports=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}},function(t,e,r){var n=r(82);t.exports=function(){this.__data__=new n,this.size=0}},function(t,e,r){var n=r(81);t.exports=function(t,e){var r=this.__data__,o=n(r,t);return o<0?(++this.size,r.push([t,e])):r[o][1]=e,this}},function(t,e,r){var n=r(81);t.exports=function(t){return n(this.__data__,t)>-1}},function(t,e,r){var n=r(81);t.exports=function(t){var e=this.__data__,r=n(e,t);return r<0?void 0:e[r][1]}},function(t,e,r){var n=r(81),o=Array.prototype.splice;t.exports=function(t){var e=this.__data__,r=n(e,t);return!(r<0||(r==e.length-1?e.pop():o.call(e,r,1),--this.size,0))}},function(t,e){t.exports=function(){this.__data__=[],this.size=0}},function(t,e,r){var n=r(235),o=4;t.exports=function(t){return n(t,o)}},function(t,e,r){t.exports={Graph:r(114),version:r(484)}},function(t,e,r){var n=r(583);t.exports={Graph:n.Graph,json:r(483),alg:r(482),version:n.version}},function(t,e,r){t.exports={graphlib:r(22),layout:r(473),debug:r(416),util:{time:r(15).time,notime:r(15).notime},version:r(415)}},function(t,e,r){var n=r(3),o=r(585),i=n.Util,a=function(){function t(t){i.mix(this,{rankdir:"TB",align:void 0,nodesep:50,edgesep:10,ranksep:50,marginx:0,marginy:0,acyclicer:void 0,useEdgeControlPoint:!0,ranker:"network-simplex",callback:null},t)}var e=t.prototype;return e.getValue=function(t){var e=this[t];return i.isFunction(e)?e():e},e.execute=function(){var t=this.nodes,e=this.edges,r={},n=new o.graphlib.Graph,i=this.useEdgeControlPoint;n.setGraph({rankdir:this.getValue("rankdir"),align:this.getValue("align"),nodesep:this.getValue("nodesep"),edgesep:this.getValue("edgesep"),ranksep:this.getValue("ranksep"),marginx:this.getValue("marginx"),marginy:this.getValue("marginy"),acyclicer:this.getValue("acyclicer"),ranker:this.getValue("ranker")}),n.setDefaultEdgeLabel((function(){return{}})),t.forEach((function(t){n.setNode(t.id,{width:t.width,height:t.height}),r[t.id]=t})),e.forEach((function(t){n.setEdge(t.source,t.target)})),o.layout(n),n.nodes().forEach((function(t){var e=n.node(t);r[t].x=e.x,r[t].y=e.y})),n.edges().forEach((function(t,r){var o=n.edge(t);i&&(e[r].controlPoints=o.points.slice(1,o.points.length-1))}))},t}();t.exports=a},function(t,e,r){var n=r(3),o=r(586);n.Layouts.Dagre=o;var i=function(){function t(t){this.options=t}return t.prototype.init=function(){var t=this,e=this.graph;e.on("beforeinit",(function(){var r=new o(t.options);e.set("layout",r)}))},t}();n.Plugins["layout.dagre"]=i,t.exports=i}])}))},"01d7":function(t,e,r){(function(e,n,o){t.exports=n(r("bf17"),r("5c90"),r("67ae"))})(0,(function(t){return function(){var e=t,r=e.x64,n=r.Word,o=r.WordArray,i=e.algo,a=i.SHA512,c=i.SHA384=a.extend({_doReset:function(){this._hash=new o.init([new n.init(3418070365,3238371032),new n.init(1654270250,914150663),new n.init(2438529370,812702999),new n.init(355462360,4144912697),new n.init(1731405415,4290775857),new n.init(2394180231,1750603025),new n.init(3675008525,1694076839),new n.init(1203062813,3204075428)])},_doFinalize:function(){var t=a._doFinalize.call(this);return t.sigBytes-=16,t}});e.SHA384=a._createHelper(c),e.HmacSHA384=a._createHmacHelper(c)}(),t.SHA384}))},"023d":function(t,e,r){(function(e,n,o){t.exports=n(r("bf17"),r("57eb"))})(0,(function(t){t.lib.Cipher||function(e){var r=t,n=r.lib,o=n.Base,i=n.WordArray,a=n.BufferedBlockAlgorithm,c=r.enc,s=(c.Utf8,c.Base64),u=r.algo,l=u.EvpKDF,f=n.Cipher=a.extend({cfg:o.extend(),createEncryptor:function(t,e){return this.create(this._ENC_XFORM_MODE,t,e)},createDecryptor:function(t,e){return this.create(this._DEC_XFORM_MODE,t,e)},init:function(t,e,r){this.cfg=this.cfg.extend(r),this._xformMode=t,this._key=e,this.reset()},reset:function(){a.reset.call(this),this._doReset()},process:function(t){return this._append(t),this._process()},finalize:function(t){t&&this._append(t);var e=this._doFinalize();return e},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function t(t){return"string"==typeof t?O:w}return function(e){return{encrypt:function(r,n,o){return t(n).encrypt(e,r,n,o)},decrypt:function(r,n,o){return t(n).decrypt(e,r,n,o)}}}}()}),h=(n.StreamCipher=f.extend({_doFinalize:function(){var t=this._process(!0);return t},blockSize:1}),r.mode={}),p=n.BlockCipherMode=o.extend({createEncryptor:function(t,e){return this.Encryptor.create(t,e)},createDecryptor:function(t,e){return this.Decryptor.create(t,e)},init:function(t,e){this._cipher=t,this._iv=e}}),d=h.CBC=function(){var t=p.extend();function r(t,r,n){var o,i=this._iv;i?(o=i,this._iv=e):o=this._prevBlock;for(var a=0;a<n;a++)t[r+a]^=o[a]}return t.Encryptor=t.extend({processBlock:function(t,e){var n=this._cipher,o=n.blockSize;r.call(this,t,e,o),n.encryptBlock(t,e),this._prevBlock=t.slice(e,e+o)}}),t.Decryptor=t.extend({processBlock:function(t,e){var n=this._cipher,o=n.blockSize,i=t.slice(e,e+o);n.decryptBlock(t,e),r.call(this,t,e,o),this._prevBlock=i}}),t}(),y=r.pad={},v=y.Pkcs7={pad:function(t,e){for(var r=4*e,n=r-t.sigBytes%r,o=n<<24|n<<16|n<<8|n,a=[],c=0;c<n;c+=4)a.push(o);var s=i.create(a,n);t.concat(s)},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},m=(n.BlockCipher=f.extend({cfg:f.cfg.extend({mode:d,padding:v}),reset:function(){var t;f.reset.call(this);var e=this.cfg,r=e.iv,n=e.mode;this._xformMode==this._ENC_XFORM_MODE?t=n.createEncryptor:(t=n.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==t?this._mode.init(this,r&&r.words):(this._mode=t.call(n,this,r&&r.words),this._mode.__creator=t)},_doProcessBlock:function(t,e){this._mode.processBlock(t,e)},_doFinalize:function(){var t,e=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(e.pad(this._data,this.blockSize),t=this._process(!0)):(t=this._process(!0),e.unpad(t)),t},blockSize:4}),n.CipherParams=o.extend({init:function(t){this.mixIn(t)},toString:function(t){return(t||this.formatter).stringify(this)}})),g=r.format={},b=g.OpenSSL={stringify:function(t){var e,r=t.ciphertext,n=t.salt;return e=n?i.create([1398893684,1701076831]).concat(n).concat(r):r,e.toString(s)},parse:function(t){var e,r=s.parse(t),n=r.words;return 1398893684==n[0]&&1701076831==n[1]&&(e=i.create(n.slice(2,4)),n.splice(0,4),r.sigBytes-=16),m.create({ciphertext:r,salt:e})}},w=n.SerializableCipher=o.extend({cfg:o.extend({format:b}),encrypt:function(t,e,r,n){n=this.cfg.extend(n);var o=t.createEncryptor(r,n),i=o.finalize(e),a=o.cfg;return m.create({ciphertext:i,key:r,iv:a.iv,algorithm:t,mode:a.mode,padding:a.padding,blockSize:t.blockSize,formatter:n.format})},decrypt:function(t,e,r,n){n=this.cfg.extend(n),e=this._parse(e,n.format);var o=t.createDecryptor(r,n).finalize(e.ciphertext);return o},_parse:function(t,e){return"string"==typeof t?e.parse(t,this):t}}),_=r.kdf={},x=_.OpenSSL={execute:function(t,e,r,n){n||(n=i.random(8));var o=l.create({keySize:e+r}).compute(t,n),a=i.create(o.words.slice(e),4*r);return o.sigBytes=4*e,m.create({key:o,iv:a,salt:n})}},O=n.PasswordBasedCipher=w.extend({cfg:w.cfg.extend({kdf:x}),encrypt:function(t,e,r,n){n=this.cfg.extend(n);var o=n.kdf.execute(r,t.keySize,t.ivSize);n.iv=o.iv;var i=w.encrypt.call(this,t,e,o.key,n);return i.mixIn(o),i},decrypt:function(t,e,r,n){n=this.cfg.extend(n),e=this._parse(e,n.format);var o=n.kdf.execute(r,t.keySize,t.ivSize,e.salt);n.iv=o.iv;var i=w.decrypt.call(this,t,e,o.key,n);return i}})}()}))},"0934":function(t,e,r){(function(e,n,o){t.exports=n(r("bf17"),r("5c90"),r("101a"),r("ed00"),r("f97e"),r("0956"),r("a638"),r("2b25"),r("da25"),r("af8a"),r("67ae"),r("01d7"),r("ea8c"),r("b472"),r("fb70"),r("dfed"),r("57eb"),r("023d"),r("23a7"),r("ddc6"),r("0ba6"),r("8652"),r("a71c"),r("c4a3"),r("7e40"),r("e3fc"),r("eda6"),r("a303"),r("ecbb"),r("7144"),r("ad71"),r("d4c3"),r("1f44"),r("f0c7"))})(0,(function(t){return t}))},"0956":function(t,e,r){(function(e,n){t.exports=n(r("bf17"))})(0,(function(t){return function(){var e=t,r=e.lib,n=r.WordArray,o=e.enc;o.Base64url={stringify:function(t,e=!0){var r=t.words,n=t.sigBytes,o=e?this._safe_map:this._map;t.clamp();for(var i=[],a=0;a<n;a+=3)for(var c=r[a>>>2]>>>24-a%4*8&255,s=r[a+1>>>2]>>>24-(a+1)%4*8&255,u=r[a+2>>>2]>>>24-(a+2)%4*8&255,l=c<<16|s<<8|u,f=0;f<4&&a+.75*f<n;f++)i.push(o.charAt(l>>>6*(3-f)&63));var h=o.charAt(64);if(h)while(i.length%4)i.push(h);return i.join("")},parse:function(t,e=!0){var r=t.length,n=e?this._safe_map:this._map,o=this._reverseMap;if(!o){o=this._reverseMap=[];for(var a=0;a<n.length;a++)o[n.charCodeAt(a)]=a}var c=n.charAt(64);if(c){var s=t.indexOf(c);-1!==s&&(r=s)}return i(t,r,o)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function i(t,e,r){for(var o=[],i=0,a=0;a<e;a++)if(a%4){var c=r[t.charCodeAt(a-1)]<<a%4*2,s=r[t.charCodeAt(a)]>>>6-a%4*2,u=c|s;o[i>>>2]|=u<<24-i%4*8,i++}return n.create(o,i)}}(),t.enc.Base64url}))},"0ba6":function(t,e,r){(function(e,n,o){t.exports=n(r("bf17"),r("023d"))})(0,(function(t){
|
|
2
2
|
/** @preserve
|
|
3
3
|
* Counter block mode compatible with Dr Brian Gladman fileenc.c
|
|
4
4
|
* derived from CryptoJS.mode.CTR
|
|
@@ -6,14 +6,14 @@
|
|
|
6
6
|
*/
|
|
7
7
|
return t.mode.CTRGladman=function(){var e=t.lib.BlockCipherMode.extend();function r(t){if(255===(t>>24&255)){var e=t>>16&255,r=t>>8&255,n=255&t;255===e?(e=0,255===r?(r=0,255===n?n=0:++n):++r):++e,t=0,t+=e<<16,t+=r<<8,t+=n}else t+=1<<24;return t}function n(t){return 0===(t[0]=r(t[0]))&&(t[1]=r(t[1])),t}var o=e.Encryptor=e.extend({processBlock:function(t,e){var r=this._cipher,o=r.blockSize,i=this._iv,a=this._counter;i&&(a=this._counter=i.slice(0),this._iv=void 0),n(a);var c=a.slice(0);r.encryptBlock(c,0);for(var s=0;s<o;s++)t[e+s]^=c[s]}});return e.Decryptor=o,e}(),t.mode.CTRGladman}))},"101a":function(t,e,r){(function(e,n){t.exports=n(r("bf17"))})(0,(function(t){return function(){if("function"==typeof ArrayBuffer){var e=t,r=e.lib,n=r.WordArray,o=n.init,i=n.init=function(t){if(t instanceof ArrayBuffer&&(t=new Uint8Array(t)),(t instanceof Int8Array||"undefined"!==typeof Uint8ClampedArray&&t instanceof Uint8ClampedArray||t instanceof Int16Array||t instanceof Uint16Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Float32Array||t instanceof Float64Array)&&(t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength)),t instanceof Uint8Array){for(var e=t.byteLength,r=[],n=0;n<e;n++)r[n>>>2]|=t[n]<<24-n%4*8;o.call(this,r,e)}else o.apply(this,arguments)};i.prototype=n}}(),t.lib.WordArray}))},"15a5":function(t,e){
|
|
8
8
|
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
9
|
-
e.read=function(t,e,r,n,o){var i,a,c=8*o-n-1,s=(1<<c)-1,u=s>>1,l=-7,f=r?o-1:0,h=r?-1:1,p=t[e+f];for(f+=h,i=p&(1<<-l)-1,p>>=-l,l+=c;l>0;i=256*i+t[e+f],f+=h,l-=8);for(a=i&(1<<-l)-1,i>>=-l,l+=n;l>0;a=256*a+t[e+f],f+=h,l-=8);if(0===i)i=1-u;else{if(i===s)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,n),i-=u}return(p?-1:1)*a*Math.pow(2,i-n)},e.write=function(t,e,r,n,o,i){var a,c,s,u=8*i-o-1,l=(1<<u)-1,f=l>>1,h=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:i-1,d=n?1:-1,y=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(c=isNaN(e)?1:0,a=l):(a=Math.floor(Math.log(e)/Math.LN2),e*(s=Math.pow(2,-a))<1&&(a--,s*=2),e+=a+f>=1?h/s:h*Math.pow(2,1-f),e*s>=2&&(a++,s/=2),a+f>=l?(c=0,a=l):a+f>=1?(c=(e*s-1)*Math.pow(2,o),a+=f):(c=e*Math.pow(2,f-1)*Math.pow(2,o),a=0));o>=8;t[r+p]=255&c,p+=d,c/=256,o-=8);for(a=a<<o|c,u+=o;u>0;t[r+p]=255&a,p+=d,a/=256,u-=8);t[r+p-d]|=128*y}},"1a73":function(t,e,r){},"1aba":function(t,e,r){"use strict";if(r.r(e),r.d(e,"App",(function(){return pp})),r.d(e,"createStore",(function(){return Pp})),r.d(e,"create",(function(){return $t})),r.d(e,"template",(function(){return be})),r.d(e,"WebRouters",(function(){return Tp})),r.d(e,"WebViews",(function(){return bh})),r.d(e,"Descriptions",(function(){return za})),r.d(e,"Frame",(function(){return Xa})),r.d(e,"Clipboard",(function(){return Rp})),r.d(e,"Collection",(function(){return id})),r.d(e,"FormItem",(function(){return ki})),r.d(e,"FormBase",(function(){return en})),r.d(e,"encrypt",(function(){return sd})),"undefined"!==typeof window){var n=window.document.currentScript,o=r("dc36");n=o(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:o});var i=n&&n.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);i&&(r.p=i[1])}var a=function(){var t=this,e=t._self._c;return e("a-spin",{attrs:{spinning:t.$store.state.loading}},[e("Router",{on:{routed:function(e){t.spinning=!1}}})],1)},c=[],s=function(){var t=this,e=t._self._c;return e("router-view")},u=[],l=r("5880"),f=r.n(l),h=r("cebe"),p=r.n(h);function d(t){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},d(t)}function y(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */y=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(N){s=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var i=e&&e.prototype instanceof h?e:h,a=Object.create(i.prototype),c=new j(o||[]);return n(a,"_invoke",{value:O(t,r,c)}),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(N){return{type:"throw",arg:N}}}t.wrap=u;var f={};function h(){}function p(){}function v(){}var m={};s(m,i,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(L([])));b&&b!==e&&r.call(b,i)&&(m=b);var w=v.prototype=h.prototype=Object.create(m);function _(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function o(n,i,a,c){var s=l(t[n],t,i);if("throw"!==s.type){var u=s.arg,f=u.value;return f&&"object"==d(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return o("throw",t,a,c)}))}c(s.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function O(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return P()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=k(a,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=l(t,e,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function k(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,k(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=l(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function E(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function L(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:P}}function P(){return{value:void 0,done:!0}}return p.prototype=v,n(w,"constructor",{value:v,configurable:!0}),n(v,"constructor",{value:p,configurable:!0}),p.displayName=s(v,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,s(t,c,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},_(x.prototype),s(x.prototype,a,(function(){return this})),t.AsyncIterator=x,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new x(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},_(w),s(w,c,"Generator"),s(w,i,(function(){return this})),s(w,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=L,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),S(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;S(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:L(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function v(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function m(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?v(Object(r),!0).forEach((function(e){g(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):v(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function g(t,e,r){return e=b(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function b(t){var e=w(t,"string");return"symbol"===d(e)?e:String(e)}function w(t,e){if("object"!==d(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==d(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function _(t,e,r,n,o,i,a){try{var c=t[i](a),s=c.value}catch(u){return void r(u)}c.done?e(s):Promise.resolve(s).then(n,o)}function x(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){_(i,n,o,a,c,"next",t)}function c(t){_(i,n,o,a,c,"throw",t)}a(void 0)}))}}var O=p.a.create({timeout:6e5,withCredentials:!0}),k={axios:p.a,instance:O,install:function(t){t.prototype.$api=k},setDefaults:function(t){Object.keys(t).forEach((function(e){O.defaults[e]=t[e]}))},request:function(t,e,r,n){return x(y().mark((function o(){var i;return y().wrap((function(o){while(1)switch(o.prev=o.next){case 0:return o.next=2,O.request(m(m({},n),{},{method:t,url:e,data:r}));case 2:return i=o.sent,o.abrupt("return",i);case 4:case"end":return o.stop()}}),o)})))()},get:function(t){var e=arguments;return x(y().mark((function r(){var n,o,i;return y().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return n=e.length>1&&void 0!==e[1]?e[1]:null,o=e.length>2&&void 0!==e[2]?e[2]:null,r.next=4,k.request("get",t,o,n);case 4:return i=r.sent,r.abrupt("return",i);case 6:case"end":return r.stop()}}),r)})))()},post:function(t,e){var r=arguments;return x(y().mark((function n(){var o,i;return y().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return o=r.length>2&&void 0!==r[2]?r[2]:null,n.next=3,k.request("post",t,e,o);case 3:return i=n.sent,n.abrupt("return",i);case 5:case"end":return n.stop()}}),n)})))()},put:function(t,e){var r=arguments;return x(y().mark((function n(){var o,i;return y().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return o=r.length>2&&void 0!==r[2]?r[2]:null,n.next=3,k.request("put",t,e,o);case 3:return i=n.sent,n.abrupt("return",i);case 5:case"end":return n.stop()}}),n)})))()},delete:function(t,e){var r=arguments;return x(y().mark((function n(){var o,i;return y().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return o=r.length>2&&void 0!==r[2]?r[2]:null,n.next=3,k.request("delete",t,e,o);case 3:return i=n.sent,n.abrupt("return",i);case 5:case"end":return n.stop()}}),n)})))()}},E=k,S=r("796d"),j=r.n(S),L=r("8bbf"),P=r.n(L);function N(t){return N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},N(t)}function A(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function T(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?A(Object(r),!0).forEach((function(e){C(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):A(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function C(t,e,r){return e=I(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function I(t){var e=M(t,"string");return"symbol"===N(e)?e:String(e)}function M(t,e){if("object"!==N(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==N(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function D(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */D=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(L){s=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var i=e&&e.prototype instanceof h?e:h,a=Object.create(i.prototype),c=new E(o||[]);return n(a,"_invoke",{value:_(t,r,c)}),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(L){return{type:"throw",arg:L}}}t.wrap=u;var f={};function h(){}function p(){}function d(){}var y={};s(y,i,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(S([])));m&&m!==e&&r.call(m,i)&&(y=m);var g=d.prototype=h.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,c){var s=l(t[n],t,i);if("throw"!==s.type){var u=s.arg,f=u.value;return f&&"object"==N(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return o("throw",t,a,c)}))}c(s.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function _(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=x(a,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=l(t,e,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=l(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function S(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return p.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:p,configurable:!0}),p.displayName=s(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,s(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),s(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),s(g,c,"Generator"),s(g,i,(function(){return this})),s(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=S,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:S(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function q(t,e,r,n,o,i,a){try{var c=t[i](a),s=c.value}catch(u){return void r(u)}c.done?e(s):Promise.resolve(s).then(n,o)}function R(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){q(i,n,o,a,c,"next",t)}function c(t){q(i,n,o,a,c,"throw",t)}a(void 0)}))}}function B(t,e){return G(t)||U(t,e)||$(t,e)||F()}function F(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function $(t,e){if(t){if("string"===typeof t)return V(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?V(t,e):void 0}}function V(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function U(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],s=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);s=!0);}catch(l){u=!0,o=l}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}function G(t){if(Array.isArray(t))return t}var z=function t(e,r,n){for(var o=0;o<e.length;o++){if(e[o][n]===r)return[e,o];if(e[o]._childList){var i=t(e[o]._childList,r,n);if(i)return i}}return null};function K(t,e,r,n){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,i=e.slice(2),a={namespaced:!0,state:function(){return{namespace:i,data:{rows:[],count:0,size:15},schema:null,wordbooks:{},expired:0,loading:!1,committing:!1,status:0,message:""}},mutations:{setSchema:function(t,e){t.schema=e},setStatus:function(t,e){var r=e.status,n=e.message;t.status=r,t.message=n},setLoading:function(t,e){t.loading=e},setCommitting:function(t,e){t.committing=e},setData:function(t,e){var r=e.rows,n=e.count,o=e.size;t.data.rows=r,t.data.count=n,t.data.size=o},appendData:function(t,e){var r=e.rows||[];t.data.rows=t.data.rows.concat(r)},saveData:function(t,e){var r=e.rows,n=e.idName,o=e.parentIdName;r=Array.isArray(r)?r:[r],r.forEach((function(e){var r=z(t.data.rows,e[n],n);if(r){r[0][r[1]]._childList&&(e._childList=r[0][r[1]]._childList);var i=r,a=B(i,2),c=a[0],s=a[1];o&&e[o]!==c[s][o]?(c.splice(s,1),r=null):P.a.set(c,s,e)}if(!r&&e[n]&&o&&e[o]){var u=z(t.data.rows,e[o],n);if(u){var l=u[0][u[1]];l._childList?l._childList.unshift(e):P.a.set(l,"_childList",[e])}else t.data.rows.unshift(e)}else!r&&e[n]&&t.data.rows.unshift(e)}))},removeData:function(t,e){var r=e.rows,n=e.idName;e.parentIdName;r=Array.isArray(r)?r:[r],r.forEach((function(e){var r=z(t.data.rows,e[n],n);if(r){var o=B(r,2),i=o[0],a=o[1];i.splice(a,1)}}))},setWordbook:function(t,e){var r=e.rows,n=e.key;t.wordbooks[n]?t.wordbooks[n]=r:P.a.set(t.wordbooks,n,r)},replaceNamespace:function(t,e){t.namespace=e.reduce((function(t,e){return t.replace(":id",e)}),i)},createSubViewStore:function(e,n){function o(e,n){e.model.attrs.filter((function(t){return"model"===t.metaType})).map((function(e){var i="".concat(n,"/:id/").concat(e.name);t.hasModule(i)||(K(t,i,r,e.name,!1,e.subView),e.subView&&o(e.subView,i))}))}o(n,"v-".concat(i))}},actions:{loadSchema:function(t,e){return R(D().mark((function e(){var r,n,o,a,c,s,u,l;return D().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=t.commit,t.state.namespace,r("setLoading",!0),e.prev=2,e.next=5,E.get("/schemas/".concat(i.replace(/\/:id/g,"")));case 5:n=e.sent,o=n.data,a=n.status,r("createSubViewStore",o),r("setSchema",o),r("setStatus",{status:a}),e.next=20;break;case 13:if(e.prev=13,e.t0=e["catch"](2),e.t0.response){e.next=17;break}return e.abrupt("return",r("setStatus",{status:0,message:"网络请求错误,请检查您的网络链接。"}));case 17:c=e.t0.response,s=c.status,u=c.data,l=u&&u.content||"系统错误请与管理员联系。",r("setStatus",{status:s,message:l});case 20:return e.prev=20,r("setLoading",!1),e.finish(20);case 23:case"end":return e.stop()}}),e,null,[[2,13,20,23]])})))()},loadData:function(t){var e=arguments;return R(D().mark((function r(){var n,o,i,a,c,s,u,l,f,h,p,d,y,v,m,g,b,w,_,x,O,k,S,L,P,N;return D().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return n=t.commit,o=t.dispatch,i=t.getters,a=t.state.namespace,c=e.length>1&&void 0!==e[1]?e[1]:{},s=c.url,u=void 0===s?a:s,l=c.method,f=void 0===l?"get":l,h=c.data,p=void 0===h?null:h,d=c.key,y=c.query,v=c.options,m=c.mute,g=void 0!==m&&m,!g&&n("setLoading",!0),r.prev=4,r.next=7,E[f]("/api/".concat(u).concat(d?"/".concat(d):"","?").concat(j.a.stringify(y)),p,v);case 7:return b=r.sent,w=b.data,_=w.collection,x=w.model,O=w.count,k=w.pagination,S=b.status,L=i.idName,P=i.parentIdName,N=i.nodeName,x?n("saveData",{rows:x,idName:L,parentIdName:P,nodeName:N}):n("setData",{rows:_||[],count:O,size:k&&k.size}),n("setStatus",{status:S,message:""}),r.abrupt("return",_||x);case 20:return r.prev=20,r.t0=r["catch"](4),r.abrupt("return",o("handleError",{error:r.t0,mute:g}));case 23:return r.prev=23,!g&&n("setLoading",!1),r.finish(23);case 26:case"end":return r.stop()}}),r,null,[[4,20,23,26]])})))()},loadWordBook:function(t){var e=arguments;return R(D().mark((function r(){var n,o,i,a,c,s,u,l,f,h,p,d,y,v,m;return D().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return n=t.commit,o=t.dispatch,i=t.state.namespace,a=e.length>1&&void 0!==e[1]?e[1]:{},c=a.url,s=void 0===c?i:c,u=a.method,l=void 0===u?"get":u,f=a.data,h=void 0===f?null:f,p=a.key,d=a.query,y=a.options,r.prev=3,r.next=6,E[l.toLowerCase()]("/api/".concat(s).concat(p?"/".concat(p):"","?").concat(j.a.stringify(d)),h,y);case 6:return v=r.sent,m=v.data,m.collection&&p&&n("setWordBook",{rows:m.collection,key:p}),r.abrupt("return",m);case 12:return r.prev=12,r.t0=r["catch"](3),r.abrupt("return",o("handleError",{error:r.t0}));case 15:case"end":return r.stop()}}),r,null,[[3,12]])})))()},saveData:function(t){var e=arguments;return R(D().mark((function r(){var n,o,i,a,c,s,u,l,f,h,p,d,y,v,m,g,b,w,_,x,O,k,S,L,P,N,A,T;return D().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return n=t.commit,o=t.dispatch,i=t.getters,a=t.state.namespace,c=e.length>1&&void 0!==e[1]?e[1]:{},s=c.url,u=void 0===s?a:s,l=c.type,f=void 0===l?"save":l,h=c.method,p=void 0===h?"post":h,d=c.data,y=void 0===d?null:d,v=c.key,m=c.query,g=c.options,b=c.mute,w=void 0!==b&&b,n("setCommitting",!0),r.prev=4,r.next=7,E[p.toLowerCase()]("/api/".concat(u).concat(v?"/".concat(v):"","?").concat(j.a.stringify(m)),y,g);case 7:return _=r.sent,x=_.data,O=x.data,k=x.content,S=_.status,L=_.statusText,P=i.idName,N=i.parentIdName,A=i.nodeName,O&&(T="remove"===f?"removeData":"saveData",c.params&&c.params.mode&&"notUpdate"===c.params.mode||n(T,{rows:O.data||O,idName:P,parentIdName:N,nodeName:A})),n("setStatus",{status:S,message:w?"":k||L}),r.abrupt("return",O);case 19:return r.prev=19,r.t0=r["catch"](4),r.abrupt("return",o("handleError",{error:r.t0}));case 22:return r.prev=22,n("setCommitting",!1),r.finish(22);case 25:case"end":return r.stop()}}),r,null,[[4,19,22,25]])})))()},executeData:function(t,e){return R(D().mark((function r(){var n,o,i;return D().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return n=t.dispatch,o=e.method,i=void 0===o?"post":o,r.next=4,n("saveData",T({type:"execute",method:i},e));case 4:return r.abrupt("return",r.sent);case 5:case"end":return r.stop()}}),r)})))()},removeData:function(t,e){return R(D().mark((function r(){var n,o,i;return D().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return n=t.dispatch,o=e.method,i=void 0===o?"delete":o,r.next=4,n("saveData",T({type:"remove",method:i},e));case 4:return r.abrupt("return",r.sent);case 5:case"end":return r.stop()}}),r)})))()},handleError:function(t,e){var r=t.commit,n=e.error,o=e.mute;if(!n.response)return r("setStatus",{status:0,message:!o&&"网络请求错误,请检查您的网络连接。"});var i=n.response,a=i.status,c=i.data,s=o?null:c&&c.content||"系统错误请与管理员联系。";return r("setStatus",{status:a,message:s}),n},resetStatus:function(t){var e=t.commit;e("setStatus",{status:0,message:""})}},getters:{schema:function(t,e,i){return o||(i[r].views.find((function(t){return t.key===n}))||t.schema)},model:function(t,e){return e.schema?e.schema.model:null},idName:function(t,e){return e.model?e.model.idName:null},parentIdName:function(t,e){return e.model?e.model.parentIdName:null},nodeName:function(t,e){return e.model?e.model.nodeName:null},titleName:function(t,e){var r=e.model.attrs.find((function(t){return"title"===t.display}));return r?r.name:null},titleSchema:function(t,e){var r=e.model.attrs.find((function(t){return"title"===t.display}));return r||null},config:function(t,e){return function(t){var r;return e.schema&&e.schema.configs&&(r=e.schema.configs.find((function(e){return e.key===t}))),r?r.value:null}},wordbook:function(t){return function(e){return t.wordbooks[e]||[]}},find:function(t,e){return function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=t.data;if(!r)return n;"object"!==N(r)&&(r=C({},e.idName,r));var o=Object.keys(r);return n.filter((function(t){return o.every((function(e){return t[e]===r[e]}))}))}},findOne:function(t,e,r){return function(r){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=n||e.idName||"id",i=z(t.data.rows,r,o);return i?i[0][i[1]]:null}},findAll:function(t){var e=t.data.rows;return e},apiURL:function(t,e,r){var n=t.namespace,o=r.baseURL;return"".concat(o,"/api/").concat(n)},apiBaseURL:function(t,e,r){var n=r.baseURL;return n}}};t.registerModule(e,a)}function H(t){return H="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},H(t)}function Y(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Y=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(L){s=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var i=e&&e.prototype instanceof h?e:h,a=Object.create(i.prototype),c=new E(o||[]);return n(a,"_invoke",{value:_(t,r,c)}),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(L){return{type:"throw",arg:L}}}t.wrap=u;var f={};function h(){}function p(){}function d(){}var y={};s(y,i,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(S([])));m&&m!==e&&r.call(m,i)&&(y=m);var g=d.prototype=h.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,c){var s=l(t[n],t,i);if("throw"!==s.type){var u=s.arg,f=u.value;return f&&"object"==H(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return o("throw",t,a,c)}))}c(s.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function _(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=x(a,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=l(t,e,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=l(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function S(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return p.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:p,configurable:!0}),p.displayName=s(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,s(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),s(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),s(g,c,"Generator"),s(g,i,(function(){return this})),s(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=S,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:S(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function W(t,e,r,n,o,i,a){try{var c=t[i](a),s=c.value}catch(u){return void r(u)}c.done?e(s):Promise.resolve(s).then(n,o)}function Z(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){W(i,n,o,a,c,"next",t)}function c(t){W(i,n,o,a,c,"throw",t)}a(void 0)}))}}var X=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n={namespaced:!0,state:function(){return{namespace:e.slice(2),schema:null,views:[],actions:[],configs:[],params:[],rules:[],version:0,loading:!1,status:200,message:"",single:r}},mutations:{setSchema:function(t,e){t.schema=e},setViews:function(t,e){t.views=e},setStatus:function(t,e){var r=e.status,n=e.message;t.status=r,t.message=n},setLoading:function(t,e){t.loading=e},createViewStore:function(n,o){function i(n,o){n.model.attrs.filter((function(t){return"model"===t.metaType})).map((function(n){var a="".concat(o,"/:id/").concat(n.name);t.hasModule(a)||(K(t,a,e,n.name,r,n.subView),n.subView&&i(n.subView,a))}))}o.map((function(n){var o="v-".concat(e.slice(2)).concat(r?"":"-".concat(n.key));t.hasModule(o)||(K(t,o,e,n.key,r),i(n,o))}))},setViewData:function(t,e){}},actions:{loadSchema:function(t,e){return Z(Y().mark((function e(){var n,o,i,a,c,s,u,l,f,h;return Y().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.commit,o=t.state.namespace,n("setLoading",!0),e.prev=2,e.next=5,E.get("/schemas/".concat(o));case 5:i=e.sent,a=i.data,c=i.status,s=i.statusText,n("createViewStore",r?[a]:a.views),n("setViews",r?[a]:a.views),delete a.views,n("setSchema",a),n("setStatus",{status:c,message:a.message||s}),e.next=23;break;case 16:if(e.prev=16,e.t0=e["catch"](2),e.t0.response){e.next=20;break}return e.abrupt("return",n("setStatus",{status:0,message:"网络请求错误,请检查您的网络链接。"}));case 20:u=e.t0.response,l=u.status,f=u.data,h=f&&f.content||"系统错误请与管理员联系。",n("setStatus",{status:l,message:h});case 23:return e.prev=23,n("setLoading",!1),e.finish(23);case 26:case"end":return e.stop()}}),e,null,[[2,16,23,26]])})))()}},getters:{schema:function(t){return t.schema},views:function(t){return t.views},config:function(t){return function(e){return t.configs.find((function(t){return t.key===e}))}}}};t.registerModule(e,n)};function J(t){return J="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},J(t)}function Q(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function tt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Q(Object(r),!0).forEach((function(e){et(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Q(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function et(t,e,r){return e=rt(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function rt(t){var e=nt(t,"string");return"symbol"===J(e)?e:String(e)}function nt(t,e){if("object"!==J(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==J(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var ot=["loading","schema","status","message","single"],it=["loadSchema"],at=["views"],ct=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=Object(l["createNamespacedHelpers"])(t),n=r.mapState,o=r.mapActions,i=r.mapGetters;return{data:function(){return{storeNamespace:t}},computed:tt(tt({},n(ot)),i(at)),methods:tt({},o(it)),beforeCreate:function(){this.$store.hasModule(t)||X(this.$store,t,e)},created:function(){!this.schema&&this.loadSchema()},watch:{status:function(t){401===t&&(this.$router.push("/sign-in"),window.location.reload())}}}},st=function(t){return function(e){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return{extends:t,mixins:[ct("p-".concat(e),r)]}}},ut=function(){var t=this,e=t._self._c;return e("a-spin",{attrs:{spinning:t.loading,delay:50}},[e("layout-page-".concat(t.layout),{tag:"component",scopedSlots:t._u([t._l(t.slots,(function(r){return{key:r,fn:function(){return[e("views",{key:"slot-".concat(r),attrs:{views:t.slotViews(r),modelViewType:t.modelViewType}})]},proxy:!0}}))],null,!0)})],1)},lt=[];function ft(t){return yt(t)||dt(t)||pt(t)||ht()}function ht(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function pt(t,e){if(t){if("string"===typeof t)return vt(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?vt(t,e):void 0}}function dt(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function yt(t){if(Array.isArray(t))return vt(t)}function vt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var mt={props:{pageKey:{type:String,required:!0},layout:{type:String,default:"base"},modelViewType:{type:String}},provide:function(){return{page:this,view:null}},computed:{slots:function(){var t=["default","header","footer","sider","left","right"],e=this.$theme.layouts.page["".concat(this.layout.replace(/^\S/,(function(t){return t.toUpperCase()})),"Layout")].slots;return e&&Array.from(new Set([].concat(ft(e),t)))||[]}},methods:{slotViews:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default";return this.views.filter((function(e){return e.slot===t||"default"===t&&!e.slot}))}},activated:function(){},deactivated:function(){}},gt=function(){var t=this,e=t._self._c;return e("a-row",t._l(t.views,(function(r){return e("a-col",{key:r.key,attrs:{span:r.span||24}},[e("layout-view-".concat(r.layout||t.viewLayout),{tag:"component",attrs:{view:r}},[e("ViewBox",t._b({attrs:{view:r}},"ViewBox",t.$attrs,!1))],1)],1)})),1)},bt=[],wt=function(){var t=this,e=t._self._c;return e("keep-alive",[e(t.createView(),t._b({tag:"component",attrs:{pageKey:t.page.pageKey,viewKey:t.view.key,mode:"page",layout:"layout-view-model-list"}},"component",t.view,!1))],1)},_t=[];function xt(t){return xt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xt(t)}function Ot(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Ot=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(L){s=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var i=e&&e.prototype instanceof h?e:h,a=Object.create(i.prototype),c=new E(o||[]);return n(a,"_invoke",{value:_(t,r,c)}),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(L){return{type:"throw",arg:L}}}t.wrap=u;var f={};function h(){}function p(){}function d(){}var y={};s(y,i,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(S([])));m&&m!==e&&r.call(m,i)&&(y=m);var g=d.prototype=h.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,c){var s=l(t[n],t,i);if("throw"!==s.type){var u=s.arg,f=u.value;return f&&"object"==xt(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return o("throw",t,a,c)}))}c(s.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function _(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=x(a,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=l(t,e,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=l(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function S(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return p.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:p,configurable:!0}),p.displayName=s(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,s(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),s(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),s(g,c,"Generator"),s(g,i,(function(){return this})),s(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=S,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:S(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function kt(t,e,r,n,o,i,a){try{var c=t[i](a),s=c.value}catch(u){return void r(u)}c.done?e(s):Promise.resolve(s).then(n,o)}function Et(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){kt(i,n,o,a,c,"next",t)}function c(t){kt(i,n,o,a,c,"throw",t)}a(void 0)}))}}function St(t){return Nt(t)||Pt(t)||Lt(t)||jt()}function jt(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Lt(t,e){if(t){if("string"===typeof t)return At(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?At(t,e):void 0}}function Pt(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function Nt(t){if(Array.isArray(t))return At(t)}function At(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Tt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Ct(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Tt(Object(r),!0).forEach((function(e){It(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Tt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function It(t,e,r){return e=Mt(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Mt(t){var e=Dt(t,"string");return"symbol"===xt(e)?e:String(e)}function Dt(t,e){if("object"!==xt(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==xt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var qt=["loading","committing","data","status","message"],Rt=["loadSchema","loadData","saveData","executeData","removeData","resetStatus"],Bt=["schema","model","idName","nodeName","parentIdName","titleSchema","titleName","findAll","find","findOne","config","apiURL","apiBaseURL"],Ft=function(t){var e=Object(l["createNamespacedHelpers"])(t),r=e.mapState,n=e.mapActions,o=e.mapGetters,i=e.mapMutations;return{data:function(){return{storeNamespace:t}},computed:Ct(Ct(Ct({},r(qt)),o(Bt)),{},{configs:function(){var t=this.schema,e=t.configs,r=void 0===e?[]:e,n=t.resConfigs,o=void 0===n?[]:n,i=[].concat(St(r),St(o));return Object.fromEntries(i.map((function(t){var e=t.value;try{"JSON"===t.type&&(e=JSON.parse(t.value))}catch(r){}return[t.key,e]})))},defaults:function(){var t=this.schema,e=t.params,r=void 0===e?[]:e,n=t.resParams,o=void 0===n?[]:n,i=[].concat(St(r),St(o));return Object.fromEntries(i.map((function(t){var e=t.value;try{"JSON"===t.type&&(e=JSON.parse(t.value))}catch(r){}return[t.key,e]})))}}),methods:Ct(Ct({},i(["replaceNamespace"])),n(Rt)),created:function(){var t=this;return Et(Ot().mark((function e(){return Ot().wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.parentIds&&t.replaceNamespace(t.parentIds),t.delay||t.id||t.schema&&t.load();case 2:case"end":return e.stop()}}),e)})))()},watch:{status:function(t){401===t&&(this.$router.push("/sign-in"),window.location.reload())}}}},$t=function(t){return function(e){return{extends:t,mixins:[Ft("".concat(e))]}}},Vt=function(){var t=this,e=t._self._c;return e("a-spin",{staticStyle:{width:"100%"},attrs:{spinning:!t.schema||t.actioning}},[t.schema?e("div",[t.actionViewVisible&&"block"===t.actionViewMode?t._e():e(t.layout,{tag:"component",scopedSlots:t._u([t.configs["list.header"]?{key:"header",fn:function(){return[e(t.configs["list.header"],{tag:"component"})]},proxy:!0}:null,t.configs["list.footer"]?{key:"footer",fn:function(){return[e(t.configs["list.footer"],{tag:"component"})]},proxy:!0}:null,t.configs["list.sider"]?{key:"sider",fn:function(){return[e(t.configs["list.sider"],{tag:"component"})]},proxy:!0}:null,{key:"pagination",fn:function(){return[t.data.size?e("PaginationSize",{attrs:{total:t.data.count,current:Number(t.query.$limit),pageSize:Number(t.query._size),"show-total":function(e,r){return e?"当前页面 ".concat(r[0],"-").concat(r[1]," 项,选定 ").concat(t.selections.length," 项,共 ").concat(e," 项"):null},pageSizeOptions:["15","30","50","100"],"show-size-changer":""},on:{change:t.handlePaginationPageChange,showSizeChange:t.handleShowSizeChange}}):t._e()]},proxy:!0},t.actions.length?{key:"actions-none",fn:function(){return[e("ActionGroup",{attrs:{actions:t.actions},on:{action:t.handleAction}})]},proxy:!0}:null,{key:"actions-setting",fn:function(){return[e("ActionGroup",{attrs:{actions:t.settingActions},on:{action:t.handleAction}})]},proxy:!0},t.filters.length?{key:"filters",fn:function(){return[e("FilterForm",{attrs:{columns:t.filters,params:{$parent:t.params.$parent}},model:{value:t.query,callback:function(e){t.query=e},expression:"query"}})]},proxy:!0}:null,t.treeFilters.length?{key:"tree-filters",fn:function(){return[e("FilterForm",{attrs:{columns:t.treeFilters,params:{$parent:t.params.$parent},layout:"vertical"},model:{value:t.query,callback:function(e){t.query=e},expression:"query"}})]},proxy:!0}:null],null,!0)},[e("list-".concat(t.configs["list.widget"]||"table"),{tag:"component",attrs:{rowKey:t.idName,loading:t.loading,rowSelection:t.rowSelection,columns:t.columns,dataSource:t.dataSource,item:t.configs["list.item"],childrenColumnName:"_childList",rowClassName:t.listSeparateColor,scroll:{x:Number(t.configs["list.scrollX"])||null,y:Number(t.configs["list.scrollY"])||null}},on:{profile:function(e){return t.handleModelProfile(e)},"row-action":t.handleRowAction}})],1),t.actionViewVisible?e("Popup",{class:{"ant-modal-tip":t.actionParams.actionViewTip},attrs:{visible:t.actionViewVisible,title:t.action.name,type:t.actionViewMode,okButtonProps:t.actionOkButtonProps,cancelButtonProps:t.actionCancelButtonProps,width:t.configs["profile.popup.width"],footer:"hide"===t.actionParams.footer?null:void 0},on:{ok:t.submitActionView,close:t.closeActionView,cancel:t.closeActionView}},[t.actionViewVisible?e("ActionView",{attrs:{action:t.action,submited:t.actionSubmited,values:t.actionModel,modelViewType:t.actionViewType,widget:t.actionViewWidget,parentIds:t.parentIds,params:t.actionParams,commitResult:t.actionCommitResult,selections:t.selections,schema:t.schema},on:{commit:t.commitActionView,profile:t.handleModelProfile,close:t.closeActionView}}):t._e(),t.action.params&&t.action.params.autofill?e("a-row",{attrs:{slot:"footer",type:"flex",justify:"space-between",align:"middle"},slot:"footer"},[e("a-col",[e("a-checkbox",{on:{change:t.handleAutoFill}},[t._v(" 自动填充表单 ")])],1),e("a-col",[e("a-space",[e("a-button",{attrs:{icon:"close",disabled:t.committing},on:{click:t.closeActionView}},[t._v(" 取消 ")]),e("a-button",{attrs:{type:"primary",icon:"check",loading:t.committing},on:{click:t.submitActionView}},[t._v(" 确认 ")])],1)],1)],1):t._e()],1):t._e()],1):t._e()])},Ut=[],Gt={props:{pageKey:{type:String,required:!0},viewKey:{type:String,required:!0},type:{type:String,enum:["model-list","model-profile","model-form","model-sheet","report","nav","com","container","post-list","post-profile","post-form"]},widget:{type:[String,Object],enum:["list-normal","list-table","list-grid","list-menu","list-sheet","list-calendar","list-map","list-kanban","profile-tile","profile-group","form-normal","form-filter","form-setting","form-wizard","form-editor","report-chart","report-crosstab","report-com","report-map","report-canvas","nav-menu","nav-link","nav-flow"]},mode:{type:String,enum:["page","embed","picker","widget"]},title:String,subtitle:String,icon:String,description:String,params:{type:[Object,Array],default:function(){return{}}},options:Object,nestedLevel:{type:Number,default:0},delay:{type:Boolean,default:!1},defaultSelections:{type:[String],default:null}},inject:["page","view"],provide:function(){return{view:this}},activated:function(){},deactivated:function(){}},zt={props:{modelId:{type:String},parentIds:Array,parentModel:Object},provide:function(){return{model:this.model}},data:function(){return{}},computed:{hide:function(){var t=this.configs.hide;return t?Array.isArray(t)?t:t.split(","):[]}},methods:{}};function Kt(t){return Kt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Kt(t)}function Ht(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Ht=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(L){s=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var i=e&&e.prototype instanceof h?e:h,a=Object.create(i.prototype),c=new E(o||[]);return n(a,"_invoke",{value:_(t,r,c)}),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(L){return{type:"throw",arg:L}}}t.wrap=u;var f={};function h(){}function p(){}function d(){}var y={};s(y,i,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(S([])));m&&m!==e&&r.call(m,i)&&(y=m);var g=d.prototype=h.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,c){var s=l(t[n],t,i);if("throw"!==s.type){var u=s.arg,f=u.value;return f&&"object"==Kt(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return o("throw",t,a,c)}))}c(s.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function _(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=x(a,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=l(t,e,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=l(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function S(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return p.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:p,configurable:!0}),p.displayName=s(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,s(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),s(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),s(g,c,"Generator"),s(g,i,(function(){return this})),s(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=S,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:S(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function Yt(t,e,r,n,o,i,a){try{var c=t[i](a),s=c.value}catch(u){return void r(u)}c.done?e(s):Promise.resolve(s).then(n,o)}function Wt(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){Yt(i,n,o,a,c,"next",t)}function c(t){Yt(i,n,o,a,c,"throw",t)}a(void 0)}))}}function Zt(t){return te(t)||Qt(t)||Jt(t)||Xt()}function Xt(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Jt(t,e){if(t){if("string"===typeof t)return ee(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ee(t,e):void 0}}function Qt(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function te(t){if(Array.isArray(t))return ee(t)}function ee(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function re(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function ne(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?re(Object(r),!0).forEach((function(e){oe(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):re(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function oe(t,e,r){return e=ie(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ie(t){var e=ae(t,"string");return"symbol"===Kt(e)?e:String(e)}function ae(t,e){if("object"!==Kt(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Kt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var ce={props:{profileMode:{type:String,default:"page",enum:["page","embed","column","collapse","preview"]},layout:{type:String,default:"layout-view-model-list"}},data:function(){return{query:{},unwatchQuery:null}},computed:{columns:function(){var t=this,e=this.$createElement,r=this.idName,n=this.hide,o=this.model.attrs.filter((function(t){return!["all","list"].includes(t.hidden)&&!n.includes(t.name)&&t.name!==r&&"model"!==t.metaType&&"link"!==t.type})).map((function(r){var n=Object.fromEntries(r.configs.map((function(t){return[t.key,t.value]})));return{dataIndex:r.name,key:r.name,title:r.alias,align:["Integer","Number"].includes(r.metaType)?"right":"left",schema:r,width:n["list.width"],fixed:n["list.fixed"]||!1,ellipsis:"true"===n["list.ellipsis"],customRender:function(n,o,i){return e("Cell",{on:{profile:function(){return t.handleModelProfile(o)},change:function(e){return t.handleCellChange(e,r.name,o)}},attrs:{value:n,row:o,schema:r,editable:t.configs["list.actionRowNotEditing.key"]&&t.configs["list.actionRowNotEditing.value"]?t.actionRowEditing&&!t.configs["list.actionRowNotEditing.value"].split(",").includes(o[t.configs["list.actionRowNotEditing.key"]]):t.actionRowEditing,idName:t.idName,rowIndex:i}})}}})),i=[],a=null;return this.configs&&this.configs["list.collapse.action"]&&(isNaN(Number(this.configs["list.collapse.action"]))?i=this.configs["list.collapse.action"].split(","):a=Number(this.configs["list.collapse.action"])),this.inlineActions&&this.inlineActions.length&&!this.actionRowEditing&&o.push({title:"操作",key:"_action",fixed:this.configs["list.scrollX"]?"right":null,customRender:function(r,n){var o=null;return o=i.length?[e("span",[t.rowActions(n).filter((function(t){return!i.includes(t.key)})).map((function(r,o){return[o?e("a-divider",{attrs:{type:"vertical"}}):"",e("a",{on:{click:function(){return t.handleRowAction(r,n)}}},[r.name])]}))]),t.rowActions(n).filter((function(t){return!i.includes(t.key)})).length?e("a-divider",{attrs:{type:"vertical"}}):"",e("a-dropdown",{attrs:{trigger:["click"]}},[e("a",{class:"ant-dropdown-link",on:{click:function(t){return t.preventDefault()}}},["更多 ",e("a-icon",{attrs:{type:"down"}})]),e("a-menu",{slot:"overlay"},[t.rowActions(n).filter((function(t){return i.includes(t.key)})).map((function(r,o){return e("a-menu-item",{key:r.id},[e("a",{on:{click:function(){return t.handleRowAction(r,n)}}},[r.name])])}))])])]:a?[e("span",[t.rowActions(n).slice(0,a).map((function(r,o){return[o?e("a-divider",{attrs:{type:"vertical"}}):"",e("a",{on:{click:function(){return t.handleRowAction(r,n)}}},[r.name])]}))]),t.rowActions(n).slice(0,a).length?e("a-divider",{attrs:{type:"vertical"}}):"",e("a-dropdown",{attrs:{trigger:["click"]}},[e("a",{class:"ant-dropdown-link",on:{click:function(t){return t.preventDefault()}}},["更多 ",e("a-icon",{attrs:{type:"down"}})]),e("a-menu",{slot:"overlay"},[t.rowActions(n).slice(a).map((function(r,o){return e("a-menu-item",{key:r.id},[e("a",{on:{click:function(){return t.handleRowAction(r,n)}}},[r.name])])}))])])]:t.rowActions(n).map((function(r,o){return[o?e("a-divider",{attrs:{type:"vertical"}}):"",e("a",{on:{click:function(){return t.handleRowAction(r,n)}}},[r.name])]})),{children:o}},actions:function(e){return t.rowActions(e)}}),o},configs:function(){return this.schema.configs&&this.schema.configs.length?Object.fromEntries(this.schema.configs.map((function(t){return[t.key,t.value]}))):null},filters:function(){var t=this;return this.model&&this.model.filters?this.model.filters.filter((function(e){return!t.hide.includes(e.name)&&!["tree-select"].includes(e.control)})).map((function(e){var r=t.model.attrs.find((function(t){return t.name===e.name}));return ne(ne({},r),e)})):[]},treeFilters:function(){var t=this;return this.model&&this.model.filters?this.model.filters.filter((function(e){return!t.hide.includes(e.name)&&["tree-select"].includes(e.control)})).map((function(e){var r=t.model.attrs.find((function(t){return t.name===e.name}));return ne(ne({},r),e)})):[]},filterValues:function(){var t=[].concat(Zt(this.filters),Zt(this.treeFilters)).filter((function(t){return!!t.value})).map((function(t){return[t.name,t.value]}));return ne(ne({},Object.fromEntries(t)),this.defaults)},dataSource:function(){return this.findAll},next:function(){var t=this,e=this.actionModel&&this.actionModel[this.idName],r=this.findAll.findIndex((function(r){return r[t.idName]===e}));return this.findAll[r+1]},previous:function(){var t=this,e=this.actionModel&&this.actionModel[this.idName],r=this.findAll.findIndex((function(r){return r[t.idName]===e}));return this.findAll[r-1]}},created:function(){var t=this;return Wt(Ht().mark((function e(){return Ht().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t.schema){e.next=3;break}return e.next=3,t.loadSchema();case 3:t.query=t.params.route&&t.params.route.query.close?ne(ne(ne({},t.query),t.params.filters),t.filterValues):ne(ne(ne(ne({},t.query),t.params.filters),t.filterValues),t.$route.query);case 4:case"end":return e.stop()}}),e)})))()},activated:function(){this.parentIds||"page"!==this.mode||j.a.stringify(this.query)!==j.a.stringify(this.$route.query)&&this.$router.push({query:this.query}),this.unwatchQuery=this.$watch("query",{handler:function(t,e){var r=Object.keys(t),n=Object.keys(e),o=r.some((function(e){return!n.includes(e)&&!t[e]}));o||(this.load(),this.clearSelection&&this.clearSelection(),!this.parentIds&&"page"===this.mode&&this.$router.push({query:this.query}))},deep:!0})},deactivated:function(){this.unwatchQuery&&this.unwatchQuery()},methods:{load:function(){var t=arguments,e=this;return Wt(Ht().mark((function r(){var n,o;return Ht().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return n=t.length>0&&void 0!==t[0]&&t[0],r.next=3,e.loadData({query:e.query,mute:n});case 3:return o=r.sent,r.abrupt("return",o);case 5:case"end":return r.stop()}}),r)})))()},handleNext:function(){this.actionModel=ne({},this.next)},handlePrevious:function(){this.actionModel=ne({},this.previous)},handleModelProfile:function(t){var e={name:this.titleName?String(this.formatter(t,t[this.titleName],this.titleSchema)):"详情",key:"_profile"};this.action=e,this.actionModel=ne({},t),this.actionParams={$parent:this.params.$parent},this.handleProfile(e)},handleProfile:function(t){var e=this.actionModel;this.parentIds||"page"!==this.mode?(this.actionViewMode="drawer",this.actionViewType="Profile",this.showActionView()):this.$router.push("".concat(this.$route.path,"/").concat(e[this.idName]))},handleFilterChange:function(t,e){this.query[t]?this.query[t]=e:this.$set(this.query,t,e)},listSeparateColor:function(t,e){var r=this.configs["list.separateKey"]||null,n=this.configs["list.separateValue"]||null;return r&&n&&t[r]===n?"list-separate-color":""}}},se={props:{paginationMode:{type:String,default:"auto",enum:["front","server","auto"]},paginationType:{type:String,default:"size",enum:["size","node","time"]}},data:function(){return{query:{$limit:1,$page:1,_size:15}}},methods:{handlePaginationPageChange:function(t){this.query.$limit=t,this.clearSelection&&this.clearSelection()},handleShowSizeChange:function(t,e){this.query._size=e,this.clearSelection&&this.clearSelection()}}};function ue(t){return pe(t)||he(t)||fe(t)||le()}function le(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function fe(t,e){if(t){if("string"===typeof t)return de(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?de(t,e):void 0}}function he(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function pe(t){if(Array.isArray(t))return de(t)}function de(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var ye={props:{pickerMode:{type:String,enum:["single","multiple"],default:"multiple"}},data:function(){return{selections:[]}},computed:{rowSelection:function(){var t=this;return this.pickerMode&&this.schema.handle?!this.bulkActions.length&&!this.pickerMode||this.actionRowEditing?null:{selectedRowKeys:this.selections.map((function(e){return e[t.idName]})),onChange:this.handleSelectionChange,type:"single"===this.pickerMode?"radio":"checkbox"}:null}},methods:{getSelection:function(){},addSelection:function(){},removeSelection:function(){},clearSelection:function(){"picker"===this.mode&&"multiple"===this.pickerMode||(this.selections=[])},handleSelectionChange:function(t){var e=this.idName,r=this.dataSource,n=function t(r,n){for(var o=0;o<r.length;o++){if(r[o][e]===n)return r[o];if(r[o]._childList){var i=t(r[o]._childList,n);if(i)return i}}return null};"picker"===this.mode&&"multiple"===this.pickerMode?(this.selections=[].concat(ue(this.selections),ue(t.map((function(t){return n(r,t)})).filter((function(t){return t})))),this.selections=Array.from(new Set(this.selections.map((function(t){return JSON.stringify(t)})))).map((function(t){return JSON.parse(t)})),this.selections=this.selections.filter((function(r){var n=t.findIndex((function(t){return t===r[e]}));return-1!==n}))):this.selections=t.map((function(t){return n(r,t)})),this.$emit("selected",this.selections)}}};function ve(t){return ve="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ve(t)}function me(t,e){return Object.keys(t).every((function(r){var n=t[r],o=r.split(".").reduce((function(t,e){return t&&t[e]||void 0}),e);if(o){if(Array.isArray(n))return n.includes(o);if("object"!==ve(n)||1!==Object.keys(n).length)return"object"===ve(n)&&Object.keys(n).length>1?me(n,e):n===o;if(n["!"]&&Array.isArray(n["!"]))return!n["!"].includes(o);if(n["!"])return n!==o;if(n[">"])return o>n[">"];if(n[">="])return o>=n[">="];if(n["<"])return o<n["<"];if(n["<="])return o<=n["<="]}}))}var ge=r("9f89");function be(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:/\${([\s\S]+?)}/g;return ge(t,{reInterpolate:r})(e)}function we(t){return we="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},we(t)}function _e(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_e=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(L){s=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var i=e&&e.prototype instanceof h?e:h,a=Object.create(i.prototype),c=new E(o||[]);return n(a,"_invoke",{value:_(t,r,c)}),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(L){return{type:"throw",arg:L}}}t.wrap=u;var f={};function h(){}function p(){}function d(){}var y={};s(y,i,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(S([])));m&&m!==e&&r.call(m,i)&&(y=m);var g=d.prototype=h.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,c){var s=l(t[n],t,i);if("throw"!==s.type){var u=s.arg,f=u.value;return f&&"object"==we(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return o("throw",t,a,c)}))}c(s.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function _(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=x(a,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=l(t,e,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=l(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function S(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return p.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:p,configurable:!0}),p.displayName=s(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,s(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),s(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),s(g,c,"Generator"),s(g,i,(function(){return this})),s(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=S,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:S(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function xe(t,e,r,n,o,i,a){try{var c=t[i](a),s=c.value}catch(u){return void r(u)}c.done?e(s):Promise.resolve(s).then(n,o)}function Oe(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){xe(i,n,o,a,c,"next",t)}function c(t){xe(i,n,o,a,c,"throw",t)}a(void 0)}))}}var ke=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;e?r&&r.viewMode&&"download"===r.viewMode?window.open("/file/getfile/".concat(e,"?_time=").concat((new Date).getTime(),"&viewMode=").concat(r.viewMode),"_blank"):window.open("/file/getfile/".concat(e,"?_time=").concat((new Date).getTime()),"_blank"):window.open("".concat(t,"/api/download?_time=").concat((new Date).getTime()),"_blank")},Ee={methods:{handleFile:function(t){var e=this;return Oe(_e().mark((function r(){var n,o,i,a;return _e().wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(n=t.list?t.list:"file",o=new FormData,i=e.idName,e.actionModel[n]){r.next=5;break}return r.abrupt("return");case 5:return o.append(n,e.actionModel[n][0]),e.actionModel[i]&&o.append(i,e.actionModel[i]),a=e.$message.loading("正在".concat(t.name,",请稍等..."),0),r.next=10,e.saveData({key:t.key,data:o});case 10:a();case 11:case"end":return r.stop()}}),r)})))()},handleFilesUpload:function(t){var e=this;return Oe(_e().mark((function t(){return _e().wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.actionViewWidget="upload-form",e.showActionView();case 2:case"end":return t.stop()}}),t)})))()},handleDownload:function(t){var e=this;return Oe(_e().mark((function r(){var n,o;return _e().wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(n=function(){var r=Oe(_e().mark((function r(){var n,o,i;return _e().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return n=e.$message.loading("正在".concat(t.name,",请稍等..."),0),r.next=3,e.executeData({key:t.key,data:e.actionModel||e.selections[0]});case 3:o=r.sent,n(),o instanceof Error||(i=o&&o.file_id?o.file_id:null,ke(e.apiBaseURL,i,{viewMode:"download"}));case 6:case"end":return r.stop()}}),r)})));return function(){return r.apply(this,arguments)}}(),!t.params||!t.params.confirm){r.next=6;break}o=t.params.confirm,e.$confirm({title:o.title||t.name,content:o.content||"您确认要执行【".concat(t.name,"】操作吗?"),onOk:function(){n()}}),r.next=8;break;case 6:return r.next=8,n();case 8:case"end":return r.stop()}}),r)})))()},handleExport:function(t){var e=arguments,r=this;return Oe(_e().mark((function n(){var o,i,a;return _e().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(o=e.length>1&&void 0!==e[1]&&e[1],i=function(){var e=Oe(_e().mark((function e(){var n,i,a;return _e().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=r.$message.loading("正在".concat(t.name,",请稍等..."),0),e.next=3,r.executeData({key:t.key,data:r.selections.length?o?r.selections[0]:r.selections:r.actionModel||{}});case 3:i=e.sent,n(),i instanceof Error||(a=i&&i.file_id?i.file_id:null,ke(r.apiBaseURL,a));case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),!t.params||!t.params.confirm){n.next=7;break}a=t.params.confirm,r.$confirm({title:a.title||t.name,content:a.content||"您确认要执行【".concat(t.name,"】操作吗?"),onOk:function(){i()}}),n.next=9;break;case 7:return n.next=9,i();case 9:case"end":return n.stop()}}),n)})))()},handleExportFilter:function(t){var e=this;return Oe(_e().mark((function r(){var n,o;return _e().wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(n=function(){var r=Oe(_e().mark((function r(){var n,o,i;return _e().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return n=e.$message.loading("正在".concat(t.name,",请稍等..."),0),r.next=3,e.executeData({key:t.key,data:e.selections.length?e.selections:{},query:e.query});case 3:o=r.sent,n(),o instanceof Error||(i=o&&o.file_id?o.file_id:null,ke(e.apiBaseURL,i));case 6:case"end":return r.stop()}}),r)})));return function(){return r.apply(this,arguments)}}(),!t.params||!t.params.confirm){r.next=6;break}o=t.params.confirm,e.$confirm({title:o.title||t.name,content:o.content||"您确认要执行【".concat(t.name,"】操作吗?"),onOk:function(){n()}}),r.next=8;break;case 6:return r.next=8,n();case 8:case"end":return r.stop()}}),r)})))()},handleExportOne:function(t){this.handleExport(t,!0)}}};function Se(t){return Se="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Se(t)}function je(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Le(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?je(Object(r),!0).forEach((function(e){Pe(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):je(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Pe(t,e,r){return e=Ne(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ne(t){var e=Ae(t,"string");return"symbol"===Se(e)?e:String(e)}function Ae(t,e){if("object"!==Se(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Se(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function Te(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Te=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(L){s=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var i=e&&e.prototype instanceof h?e:h,a=Object.create(i.prototype),c=new E(o||[]);return n(a,"_invoke",{value:_(t,r,c)}),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(L){return{type:"throw",arg:L}}}t.wrap=u;var f={};function h(){}function p(){}function d(){}var y={};s(y,i,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(S([])));m&&m!==e&&r.call(m,i)&&(y=m);var g=d.prototype=h.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,c){var s=l(t[n],t,i);if("throw"!==s.type){var u=s.arg,f=u.value;return f&&"object"==Se(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return o("throw",t,a,c)}))}c(s.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function _(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=x(a,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=l(t,e,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=l(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function S(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return p.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:p,configurable:!0}),p.displayName=s(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,s(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),s(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),s(g,c,"Generator"),s(g,i,(function(){return this})),s(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=S,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:S(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function Ce(t,e,r,n,o,i,a){try{var c=t[i](a),s=c.value}catch(u){return void r(u)}c.done?e(s):Promise.resolve(s).then(n,o)}function Ie(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){Ce(i,n,o,a,c,"next",t)}function c(t){Ce(i,n,o,a,c,"throw",t)}a(void 0)}))}}var Me=r("9f89"),De=/\${([\s\S]+?)}/g,qe={methods:{handleViewPicker:function(t){var e=this;return Ie(Te().mark((function t(){return Te().wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.actionViewWidget="picker-view-form",e.showActionView();case 2:case"end":return t.stop()}}),t)})))()},handleTreeSelect:function(t){var e=this;return Ie(Te().mark((function r(){var n,o,i,a,c,s,u,l,f,h;return Te().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return n=t.params,o=n.treeUrl,i=n.dataUrl,a=n.keyName,c=n.titleName,s=n.valueName,u=n.valuesName,e.actioning=!0,l=Le(Le({},e.actionModel),{},{$parent:e.actionParams.$parent}),r.next=5,e.$api.get(Me(o,{reInterpolate:De})(l));case 5:return f=r.sent,r.next=8,e.$api.get(Me(i,{reInterpolate:De})(l));case 8:h=r.sent,e.actioning=!1,e.actionParams=Le(Le({},e.actionParams),{},{treeData:f.data&&f.data.collection,data:h.data&&h.data.collection,keyName:a,titleName:c,valueName:s,valuesName:u}),e.actionViewWidget="picker-tree-form",e.showActionView();case 13:case"end":return r.stop()}}),r)})))()},handleTransferSelect:function(t){var e=this;return Ie(Te().mark((function r(){var n,o,i,a,c,s,u,l,f,h,p;return Te().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return n=t.params,o=n.treeUrl,i=n.dataUrl,a=n.keyName,c=n.titleName,s=n.valueName,u=n.valuesName,l=n.selected,e.actioning=!0,f=Le(Le({},e.actionModel),{},{$parent:e.actionParams.$parent}),r.next=5,e.$api.get(Me(o,{reInterpolate:De})(f));case 5:return h=r.sent,r.next=8,e.$api.get(Me(i,{reInterpolate:De})(f));case 8:p=r.sent,e.actioning=!1,e.actionParams=Le(Le({},e.actionParams),{},{treeData:h.data&&h.data.collection,data:p.data&&p.data.collection,keyName:a,titleName:c,valueName:s,valuesName:u,selected:l}),e.actionViewWidget="picker-transfer-form",e.showActionView();case 13:case"end":return r.stop()}}),r)})))()},handleAlgorithm:function(){var t=this;return Ie(Te().mark((function e(){return Te().wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.actionViewWidget="algorithm-form",t.actionViewMode="fullscreen",t.showActionView();case 3:case"end":return e.stop()}}),e)})))()},handleSelectViewPicker:function(t){var e=this;return Ie(Te().mark((function r(){var n,o,i,a,c;return Te().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return n=t.params,o=n.treeUrl,i=n.valuesName,e.actioning=!0,a=Le(Le({},e.actionModel),{},{$parent:e.actionParams.$parent}),r.next=5,e.$api.get(Me(o,{reInterpolate:De})(a));case 5:c=r.sent,e.actioning=!1,e.actionParams=Le(Le({},e.actionParams),{},{treeData:c.data&&c.data.collection,valuesName:i}),e.actionViewWidget="picker-select-view-form",e.showActionView();case 10:case"end":return r.stop()}}),r)})))()}}};function Re(t){return Re="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Re(t)}function Be(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Fe(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Be(Object(r),!0).forEach((function(e){Ge(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Be(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function $e(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */$e=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(L){s=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var i=e&&e.prototype instanceof h?e:h,a=Object.create(i.prototype),c=new E(o||[]);return n(a,"_invoke",{value:_(t,r,c)}),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(L){return{type:"throw",arg:L}}}t.wrap=u;var f={};function h(){}function p(){}function d(){}var y={};s(y,i,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(S([])));m&&m!==e&&r.call(m,i)&&(y=m);var g=d.prototype=h.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,c){var s=l(t[n],t,i);if("throw"!==s.type){var u=s.arg,f=u.value;return f&&"object"==Re(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return o("throw",t,a,c)}))}c(s.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function _(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=x(a,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=l(t,e,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=l(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function S(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return p.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:p,configurable:!0}),p.displayName=s(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,s(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),s(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),s(g,c,"Generator"),s(g,i,(function(){return this})),s(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=S,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:S(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function Ve(t,e,r,n,o,i,a){try{var c=t[i](a),s=c.value}catch(u){return void r(u)}c.done?e(s):Promise.resolve(s).then(n,o)}function Ue(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){Ve(i,n,o,a,c,"next",t)}function c(t){Ve(i,n,o,a,c,"throw",t)}a(void 0)}))}}function Ge(t,e,r){return e=ze(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ze(t){var e=Ke(t,"string");return"symbol"===Re(e)?e:String(e)}function Ke(t,e){if("object"!==Re(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Re(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var He={mixins:[Ee,qe],methods:{handleRowAction:function(){},handleFindAll:function(){},handleFindOne:function(){},handleCreate:function(t){this.formMode="create",this.parentIdName&&this.actionModel&&(this.actionModel=Ge({},this.parentIdName,this.actionModel[this.nodeName])),this.showActionView()},handleUpdate:function(t){this.formMode="update",this.showActionView()},handleDelete:function(t){var e=this;return Ue($e().mark((function r(){return $e().wrap((function(r){while(1)switch(r.prev=r.next){case 0:e.$confirm({title:t.name,content:"此操作将永久删除该数据, 是否继续?",okText:"确定",cancelText:"取消",onOk:function(){var r=Ue($e().mark((function r(){return $e().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return r.next=2,e.removeData({key:t.key,method:t.method||"delete",data:e.profile?[e.profile[e.idName]]:e.selections.length?e.selections.map((function(t){return t[e.idName]})):[e.actionModel[e.idName]]});case 2:e.selections=[],e.id?e.handleBack():e.findAll.length||e.load&&e.load();case 4:case"end":return r.stop()}}),r)})));function n(){return r.apply(this,arguments)}return n}()});case 1:case"end":return r.stop()}}),r)})))()},handleBulkEdit:function(){this.actionRowEditing=!0},handleCancelEdit:function(){var t=this;return Ue($e().mark((function e(){return $e().wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.editions.length?t.editions.length&&t.$confirm({title:"提示",content:"已编辑数据将无法保存, 是否继续?",okText:"确定",cancelText:"取消",onOk:function(){t.closeActionView()}}):t.closeActionView();case 1:case"end":return e.stop()}}),e)})))()},handleSaveEdit:function(){var t=arguments,e=this;return Ue($e().mark((function r(){return $e().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return t.length>0&&void 0!==t[0]?t[0]:e.formAction,e.actioning=!0,r.next=4,e.commitActionView(e.editions);case 4:e.actioning=!1;case 5:case"end":return r.stop()}}),r)})))()},handleOne:function(t){var e=this;return Ue($e().mark((function r(){return $e().wrap((function(r){while(1)switch(r.prev=r.next){case 0:e.handleBulk(t,1);case 1:case"end":return r.stop()}}),r)})))()},handleBulk:function(t){var e=arguments,r=this;return Ue($e().mark((function n(){var o,i,a;return $e().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(o=e.length>1&&void 0!==e[1]?e[1]:0,i=r.selections.length,!(o&&i>o)){n.next=4;break}return n.abrupt("return",r.$message.error("所选数据不允许超过 ".concat(o," 条")));case 4:a=i>1?" ".concat(i," 条"):"",r.$confirm({title:t.name,content:"确认对选定的".concat(a,"数据进行【").concat(t.name,"】操作?"),okText:"确定",cancelText:"取消",onOk:function(){var e=Ue($e().mark((function e(){return $e().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,r.saveData({method:t.method||"post",key:t.key,data:r.selections.length?r.selections:[r.actionModel],type:t.params&&t.params.commit?t.params.commit.type:""});case 2:t.params&&t.params.commit&&"remove"===t.params.commit.type&&(r.id?r.handleBack():r.findAll.length||r.load&&r.load());case 3:case"end":return e.stop()}}),e)})));function n(){return e.apply(this,arguments)}return n}()});case 6:case"end":return n.stop()}}),n)})))()},handleEver:function(t){var e=this;return Ue($e().mark((function r(){var n;return $e().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return n=e.$message.loading("正在".concat(t.name,",请稍等..."),0),r.next=3,e.executeData({key:t.key,data:{},query:e.query?e.query:{}});case 3:n();case 4:case"end":return r.stop()}}),r)})))()},handleRouter:function(t){var e=this;return Ue($e().mark((function r(){var n;return $e().wrap((function(r){while(1)switch(r.prev=r.next){case 0:n=t.legend,n=be(n,Fe({$parent:e.params.$parent,user:e.$store.state.user},e.actionModel)),e.$router.push(n);case 3:case"end":return r.stop()}}),r)})))()},handleLink:function(t){var e=this;return Ue($e().mark((function r(){var n;return $e().wrap((function(r){while(1)switch(r.prev=r.next){case 0:n=t.legend,n=be(n,Fe({$parent:e.params.$parent,user:e.$store.state.user},e.actionModel)),window.open(n,"_blank");case 3:case"end":return r.stop()}}),r)})))()},handleRefresh:function(){var t=this;return Ue($e().mark((function e(){var r,n;return $e().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!t.load){e.next=5;break}return e.next=3,t.load();case 3:r=e.sent,r instanceof Error&&(n=r.response.data.code,404===n&&t.handleBack());case 5:case"end":return e.stop()}}),e)})))()},handleBack:function(){this.parentIds||"page"!==this.mode?this.$emit("close"):this.$router.back()},handleAutoFill:function(t){this.defaultModel||(this.defaultModel=Fe({},this.actionModel));var e=this.schema.id,r=t.target.checked,n=JSON.parse(localStorage.getItem("form_".concat(e)));if(n)for(var o in n)r?this.$set(this.actionModel,o,n[o]):this.$set(this.actionModel,o,this.defaultModel[o])}}};function Ye(t){return Ye="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ye(t)}function We(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */We=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(L){s=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var i=e&&e.prototype instanceof h?e:h,a=Object.create(i.prototype),c=new E(o||[]);return n(a,"_invoke",{value:_(t,r,c)}),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(L){return{type:"throw",arg:L}}}t.wrap=u;var f={};function h(){}function p(){}function d(){}var y={};s(y,i,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(S([])));m&&m!==e&&r.call(m,i)&&(y=m);var g=d.prototype=h.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,c){var s=l(t[n],t,i);if("throw"!==s.type){var u=s.arg,f=u.value;return f&&"object"==Ye(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return o("throw",t,a,c)}))}c(s.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function _(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=x(a,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=l(t,e,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=l(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function S(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return p.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:p,configurable:!0}),p.displayName=s(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,s(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),s(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),s(g,c,"Generator"),s(g,i,(function(){return this})),s(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=S,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:S(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function Ze(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Xe(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Ze(Object(r),!0).forEach((function(e){Je(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ze(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Je(t,e,r){return e=Qe(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Qe(t){var e=tr(t,"string");return"symbol"===Ye(e)?e:String(e)}function tr(t,e){if("object"!==Ye(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Ye(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function er(t,e,r,n,o,i,a){try{var c=t[i](a),s=c.value}catch(u){return void r(u)}c.done?e(s):Promise.resolve(s).then(n,o)}function rr(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){er(i,n,o,a,c,"next",t)}function c(t){er(i,n,o,a,c,"throw",t)}a(void 0)}))}}var nr={methods:{handleFlowReport:function(t){var e=this;return rr(We().mark((function r(){var n,o;return We().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return n=e.actionModel,e.actionConfirmMode=e.actioning=!0,r.next=4,e.saveData({key:t.key,data:Xe({},n)});case 4:if(o=r.sent,e.actionConfirmMode=e.actioning=!1,o.data){r.next=8;break}return r.abrupt("return");case 8:e.actionModel=Xe(Xe({},n),{},{confirm:1,todo_actors:[]}),e.actionViewWidget=e.getActionWidget(t)||"workflow-report",e.actionParams.flow=o,e.actionViewVisible=!0;case 12:case"end":return r.stop()}}),r)})))()},handleFlowCheck:function(t){var e=this;return rr(We().mark((function r(){var n,o;return We().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return n=e.actionModel,e.actionConfirmMode=e.actioning=!0,r.next=4,e.saveData({key:t.key,data:Xe({},n)});case 4:if(o=r.sent,e.actionConfirmMode=e.actioning=!1,o.data){r.next=8;break}return r.abrupt("return");case 8:e.actionViewWidget=e.getActionWidget(t)||"workflow-report",e.actionModel=Xe(Xe({},n),{},{data:Xe({},o.data),confirm:1,deal_note:"",flow_action_name:"submit",form_param:[],todo_actors:[],todo_id:o.data.todo_id,back_step:""}),e.actionParams.flow=o,e.actionViewVisible=!0;case 12:case"end":return r.stop()}}),r)})))()},handleFlowReassign:function(t){var e=this;return rr(We().mark((function r(){var n,o;return We().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return n=e.actionModel,e.actionConfirmMode=e.actioning=!0,r.next=4,e.saveData({key:t.key,data:Xe({},n)});case 4:if(o=r.sent,e.actionConfirmMode=e.actioning=!1,o.data){r.next=8;break}return r.abrupt("return");case 8:e.actionViewWidget=e.getActionWidget(t)||"workflow-report",e.actionModel=Xe(Xe({},n),{},{data:Xe({},o.data),confirm:1,deal_note:"",flow_action_name:"reassign",form_param:[],todo_actors:[],todo_id:o.data.todo_id,back_step:""}),e.actionParams.flow=o,e.actionViewVisible=!0;case 12:case"end":return r.stop()}}),r)})))()},handleFlowQuery:function(t){var e=this;return rr(We().mark((function r(){var n,o;return We().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return n=e.actionModel,e.actionConfirmMode=e.actioning=!0,r.next=4,e.saveData({key:t.key,data:Xe({},n)});case 4:if(o=r.sent,e.actionConfirmMode=e.actioning=!1,o.data){r.next=8;break}return r.abrupt("return");case 8:e.actionViewWidget=e.getActionWidget(t)||"workflow-report",e.actionParams.flow=o,e.actionViewVisible=!0;case 11:case"end":return r.stop()}}),r)})))()},getActionWidget:function(t){var e=null;return t.configs.length&&(e=Object.fromEntries(t.configs.map((function(t){return[t.key,t.value]})))),e&&e["action.widget"]?e["action.widget"]:void 0}}};function or(t){return or="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},or(t)}function ir(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ir=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(L){s=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var i=e&&e.prototype instanceof h?e:h,a=Object.create(i.prototype),c=new E(o||[]);return n(a,"_invoke",{value:_(t,r,c)}),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(L){return{type:"throw",arg:L}}}t.wrap=u;var f={};function h(){}function p(){}function d(){}var y={};s(y,i,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(S([])));m&&m!==e&&r.call(m,i)&&(y=m);var g=d.prototype=h.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,c){var s=l(t[n],t,i);if("throw"!==s.type){var u=s.arg,f=u.value;return f&&"object"==or(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return o("throw",t,a,c)}))}c(s.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function _(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=x(a,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=l(t,e,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=l(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function S(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return p.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:p,configurable:!0}),p.displayName=s(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,s(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),s(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),s(g,c,"Generator"),s(g,i,(function(){return this})),s(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=S,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:S(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function ar(t,e,r,n,o,i,a){try{var c=t[i](a),s=c.value}catch(u){return void r(u)}c.done?e(s):Promise.resolve(s).then(n,o)}function cr(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){ar(i,n,o,a,c,"next",t)}function c(t){ar(i,n,o,a,c,"throw",t)}a(void 0)}))}}var sr={methods:{commit:function(){return cr(ir().mark((function t(){return ir().wrap((function(t){while(1)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)})))()}}};function ur(t){return ur="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ur(t)}function lr(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */lr=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(L){s=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var i=e&&e.prototype instanceof h?e:h,a=Object.create(i.prototype),c=new E(o||[]);return n(a,"_invoke",{value:_(t,r,c)}),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(L){return{type:"throw",arg:L}}}t.wrap=u;var f={};function h(){}function p(){}function d(){}var y={};s(y,i,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(S([])));m&&m!==e&&r.call(m,i)&&(y=m);var g=d.prototype=h.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,c){var s=l(t[n],t,i);if("throw"!==s.type){var u=s.arg,f=u.value;return f&&"object"==ur(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return o("throw",t,a,c)}))}c(s.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function _(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=x(a,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=l(t,e,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=l(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function S(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return p.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:p,configurable:!0}),p.displayName=s(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,s(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),s(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),s(g,c,"Generator"),s(g,i,(function(){return this})),s(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=S,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:S(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function fr(t,e,r,n,o,i,a){try{var c=t[i](a),s=c.value}catch(u){return void r(u)}c.done?e(s):Promise.resolve(s).then(n,o)}function hr(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){fr(i,n,o,a,c,"next",t)}function c(t){fr(i,n,o,a,c,"throw",t)}a(void 0)}))}}function pr(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function dr(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?pr(Object(r),!0).forEach((function(e){yr(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):pr(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function yr(t,e,r){return e=vr(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function vr(t){var e=mr(t,"string");return"symbol"===ur(e)?e:String(e)}function mr(t,e){if("object"!==ur(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==ur(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var gr={create:["createonly","write","deepwrite"],update:["updateonly","write","deepwrite"]},br={mixins:[He,nr,sr],data:function(){return{action:null,actioning:!1,submitting:!1,actionViewMode:"modal",actionViewType:"Form",actionViewWidget:"normal-form",actionViewVisible:!1,actionModel:null,actionParams:{},actionViewShowRules:[],actionSubmited:0,actionConfirmMode:!1,actionRowEditing:!1,actionCommitResult:{template:null,data:null},defaultModel:null,unwatchs:[],editions:[],preview:!1}},computed:{actions:function(){var t=this,e=this.model.actions?this.model.actions.filter((function(e){return("none"===e.selected&&!t.selections.length&&!t.profile||"single"===e.selected&&(1===t.selections.length||t.profile&&"profile"!==e.action)||"somewhat"===e.selected&&(t.selections.length||t.profile)||"mulpitle"===e.selected&&t.selections.length>1||!e.selected)&&t.showAction(e)&&!t.actionRowEditing})):[];return e},bulkActions:function(){var t=this.model.actions;return t?t.filter((function(t){return["somewhat","mulpitle"].includes(t.selected)})):[]},backActions:function(){return[{key:"_back",name:"返回",icon:"left",action:"back"}]},navActions:function(){return this.previous||this.next?[{key:"_previous",name:"",icon:"left",action:"previous",disabled:!this.previous},{key:"_next",name:"",icon:"right",action:"next",disabled:!this.next}]:[]},settingActions:function(){var t=[{key:"",name:"保存",icon:"save",method:"PUT",action:"saveEdit",primary:"1"},{key:"_cancle",name:"取消",icon:"stop",action:"cancelEdit",group:"1"}];return this.actionRowEditing?this.editions.length?t:t.filter((function(t){return["cancelEdit"].includes(t.action)})):[{key:"_refresh",name:"",icon:"reload",action:"refresh"}]},inlineActions:function(){return this.model.actions&&this.model.actions.filter((function(t){return["single","somewhat"].includes(t.selected)}))},sheetActions:function(){},firstAction:function(){},lastAction:function(){},actionOkButtonProps:function(){return{props:{loading:this.committing,icon:"check"}}},actionCancelButtonProps:function(){return{props:{disabled:this.committing,icon:"close"}}}},methods:{rowActions:function(t){var e=this;return this.inlineActions.filter((function(r){return e.showAction(r,t)}))},showAction:function(t,e){var r=t.params&&!!t.params.show,n=t.params&&(t.params.show||t.params.hide),o=this.params||this,i=o.$parent;if(!n)return!0;var a=this.profile?[this.profile]:e?[e]:this.selections||[],c=r;return a.length?c=a.every((function(t){return me(n,dr(dr({},t),{},{$parent:i}))})):i&&(c=me(n,{$parent:i})),r?c:!c},actionBeforeDriver:function(t){var e=this;return hr(lr().mark((function r(){var n,o,i,a,c,s,u;return lr().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,e.$api.get("/dataset/".concat(t,"?").concat(j.a.stringify(e.$store.state.user)));case 3:if(n=r.sent,o=n.data.data,i=void 0===o?[]:o,!i.length){r.next=14;break}if("500"!==i[0].code){r.next=12;break}return e.$message.error(i[0].content),r.abrupt("return",!1);case 12:if("200"!==i[0].code){r.next=14;break}return r.abrupt("return",!0);case 14:r.next=22;break;case 16:r.prev=16,r.t0=r["catch"](0),r.t0.response||e.$message.error("网络请求错误,请检查您的网络连接。"),a=r.t0.response,c=a.status,s=a.data,u=s&&s.content||"系统错误请与管理员联系。",e.$message.error("".concat(c,", ").concat(u));case 22:case"end":return r.stop()}}),r,null,[[0,16]])})))()},handleRowAction:function(t,e){return this.selections=[e],this.handleAction(t,e)},handleAction:function(t,e,r){var n=this;return hr(lr().mark((function o(){var i,a,c,s,u;return lr().wrap((function(o){while(1)switch(o.prev=o.next){case 0:if(n.action=t,i=n.action.params,a=void 0===i?{}:i,c=a.actionBeforeDriver,s=void 0===c?"":c,!s){o.next=8;break}return o.next=5,n.actionBeforeDriver(s);case 5:if(u=o.sent,u){o.next=8;break}return o.abrupt("return",!1);case 8:return e||(e=n.profile||n.selections[0]||{}),["modal","drawer","fullscreen"].includes(t.display)&&(n.actionViewMode=t.display),n.actionModel=dr(dr(dr({},e),r),n.defaults),n.actionParams=dr(dr({},t.params),{},{$parent:n.params.$parent}),"page"===t.display?n.routeAction(t):n.dispatchAction(t),o.abrupt("return",n);case 14:case"end":return o.stop()}}),o)})))()},handleCellChange:function(t,e,r){var n=this.idName,o=this.editions.find((function(t){return t[n]===r[n]}));o||(o=dr({},r),this.editions.push(o)),o[e]=t},trigger:function(t){var e=this.actions.find((function(e){return e.key===t}));return this.dispatchAction(e),this},dispatchAction:function(t){var e={POST:"handleCreate",PUT:"handleUpdate",DELETE:"handleDelete","e.send-email":"handleSendMail","e.flow-report":"handleFlowReport","e.flow-query":"handleFlowQuery","e.flow-submit":"handleFlowCheck","e.flow-check":"handleFlowCheck","e.flow-open":"handleFlowCheck","e.flow-reassign":"handleFlowReassign",viewSelect:"handleViewPicker",algorithm:"handleAlgorithm"};try{if(t.action&&e[t.action])this[e[t.action]](t);else if(t.action){var r=t.action.replace(/^\S/,(function(t){return t.toUpperCase()}));this["handle".concat(r)](t)}else this[e[t.method]](t)}catch(n){this.$message.error("前端事件异常【".concat(t.name,"】"))}return this},routeAction:function(t){return this.$router.push({path:t.key}),this},showActionView:function(){this.actionViewVisible=!0},submitActionView:function(){this.submitting=!0,this.actionSubmited=(new Date).getTime()},commitActionView:function(t){var e=arguments,r=this;return hr(lr().mark((function n(){var o,i,a,c,s,u,l,f,h,p,d,y,v,m,g,b,w,_,x,O,k,E,S;return lr().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return o=e.length>1&&void 0!==e[1]?e[1]:null,o&&(r.preview=o.preview),i=r.selections,a=r.actionModel,c=r.idName,s=r.editions,u=r.action,l=u.key,f=u.method,h=u.params,p=void 0===h?{}:h,d=p.commit,y=void 0===d?{}:d,v=y.type,m=y.redirectProfile,g=p.autofill,b=r.schema,i.length>1?(delete t[c],t=i.map((function(e){return dr(dr({},e),t)}))):a&&!s.length&&(t=dr(dr({},a),t)),w=Object.keys(t).every((function(e){return!(t[e]instanceof File)&&!(t[e]&&t[e]instanceof Array&&t[e].some((function(t){return t instanceof File})))})),_={},x=Object.keys(t).find((function(e){return t[e]&&t[e]instanceof Array&&t[e].some((function(t){return t instanceof File}))}))?"1":"0","1"===x&&(_.multiple=x),w||(t=r.transformData(t)),n.next=11,r.saveData({data:t,key:l,method:f,query:_,type:v,params:o});case 11:if(O=n.sent,O){if(g){for(S in k=dr({},O),E=r.filterColumns().map((function(t){return t.name})),k)E.includes(S)||delete k[S];localStorage.setItem("form_".concat(b.id),JSON.stringify(k))}r.actionCommitResult.data=function(){return{data:O}},m&&r.handleModelProfile&&r.handleModelProfile(O),r.id&&v&&"remove"===v&&r.handleBack()}case 13:case"end":return n.stop()}}),n)})))()},filterColumns:function(){var t=this.action,e=this.params,r=this.model,n=this.hide,o=this.formMode,i=t&&t.view?t.view.model.attrs:e&&e.attrs?e.attrs:r.attrs?r.attrs:[];if(t&&t.list){var a=this.action.list.split(",");return i.filter((function(t){return!n.includes(t.name)&&a.includes(t.name)}))}return i.filter((function(t){return gr[o].includes(t.access)&&!n.includes(t.name)&&"collection"!==t.metaType&&"model"!==t.metaType&&"link"!==t.type}))},transformData:function(t){var e=new FormData;for(var r in t)if("object"!==ur(t[r])||t[r]instanceof File)e.append("".concat(r),t[r]);else for(var n in t[r])Array.isArray(t[r])?e.append("".concat(r),t[r][n]instanceof File||"object"!==ur(t[r][n])?t[r][n]:JSON.stringify(t[r][n])):e.append("".concat(r,".").concat(n),t[r][n]instanceof File||"object"!==ur(t[r][n])?t[r][n]:JSON.stringify(t[r][n]));return e},closeActionView:function(t){return this.action=null,this.formModal=null,this.actionViewVisible=!1,this.submitting=!1,this.actionViewMode="modal",this.actionViewType="Form",this.actionViewWidget="normal-form",this.actionViewStoreNamespace=null,this.actionParams={},this.actionCommitResult={template:null,data:null},this.actionRowEditing=!1,this.editions=[],this.clearSelection&&this.clearSelection(),this.defaultModel=null,this},handleUpdateStatus:function(t){t>399&&this.message&&(this.$message.error(this.message),this.resetStatus())},handleUpdateMessage:function(t){var e=this.action&&this.action.configs,r=e&&e.find((function(t){return"result"===t.key}));200===this.status&&t&&(!this.actionConfirmMode&&this.$message.success(t),r?this.actionCommitResult.template=r.value:this.actionConfirmMode||!this.preview&&this.closeActionView()),this.resetStatus()}},activated:function(){this.unwatchs=[this.$watch("status",this.handleUpdateStatus),this.$watch("message",this.handleUpdateMessage)]},deactivated:function(){this.unwatchs.map((function(t){return t()})),this.unwatchs=[]}},wr=function(t,e){var r=t,n=e.list.split(",").map((function(t){return t.split(":")}));return r=n.find((function(e){return String(e[0])===String(t)})),r=r?r[1]?r[1]:r[0]:"-",r},_r=function(t,e){var r=t,n=e.typeObject.model.attrs.find((function(t){return"title"===t.display})),o=e.typeObject.model.idName;function i(t,e){for(var r=null,n=0;n<e.length;n++)if(String(e[n][o])===String(t)?r=e[n]:e[n]._childList&&(r=i(t,e[n]._childList)),r)return r;return r}return r=i(t,e.typeObject.data.collection),r=r?r[n?n.name:e.typeObject.model.idName]:t?"-":"",r},xr=function(t,e,r){var n;switch(e.dataType){case"year":n="YYYY";break;case"month":n="YYYY-MM";break;case"date":n="YYYY-MM-DD";break;case"datetime":n="YYYY-MM-DD HH:mm";break;default:n="YYYY-MM-DD HH:mm";break}return r(t).format(n)},Or={methods:{formatter:function(t,e,r){var n=e;r.list&&e&&(n=["checkbox","multiple","tree-suggests"].includes(r.control)?e&&e.split(",").map((function(t){return wr(t,r)})).join(","):wr(e,r)),"wordbook"===r.dataType&&r.typeObject&&e&&(n=["checkbox","multiple","tree-suggests"].includes(r.control)?e.split(",").map((function(t){return _r(t,r)})).join(","):_r(e,r));var o=["year","month","date","datetime","time"];return o.includes(r.dataType)&&(e||0===e)&&(n=xr(e,r,this.moment)),n}}},kr=function(){var t=this,e=t._self._c;return e("a-table",t._b({class:{"list-table-header-selection-checkbox":t.$attrs.rowSelection&&t.$attrs.rowSelection.type&&"checkbox"===t.$attrs.rowSelection.type&&t.showSelectionText},attrs:{pagination:!1,size:"middle"}},"a-table",t.$attrs,!1))},Er=[],Sr={computed:{showSelectionText:function(){if(this.$store.state.app.config.length){var t=Object.fromEntries(this.$store.state.app.config.map((function(t){return[t.config_key,t.config_value]})));return"1"===t["show-selection-text"]||!1}return!1}}},jr=Sr;function Lr(t,e,r,n,o,i,a,c){var s,u="function"===typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=r,u._compiled=!0),n&&(u.functional=!0),i&&(u._scopeId="data-v-"+i),a?(s=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},u._ssrRegister=s):o&&(s=c?function(){o.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:o),s)if(u.functional){u._injectStyles=s;var l=u.render;u.render=function(t,e){return s.call(e),l(t,e)}}else{var f=u.beforeCreate;u.beforeCreate=f?[].concat(f,s):[s]}return{exports:t,options:u}}var Pr=Lr(jr,kr,Er,!1,null,null,null),Nr=Pr.exports,Ar=function(){var t=this,e=t._self._c;return e("a-list",t._b({attrs:{itemLayout:"horizontal",pagination:!1,size:"default",split:!1},scopedSlots:t._u([{key:"renderItem",fn:function(r){var n=r.item;return[e("a-list-item",[e(t.component,{tag:"component",attrs:{item:n}})],1)]}}])},"a-list",t.$attrs,!1))},Tr=[],Cr={props:["item"],computed:{component:function(){return{props:["item"],template:this.item||"<div></div>"}}}},Ir=Cr,Mr=Lr(Ir,Ar,Tr,!1,null,null,null),Dr=Mr.exports,qr={ListTable:Nr,ListNormal:Dr},Rr=function(){var t=this,e=t._self._c;return e("a-form-model",{attrs:{layout:t.layout}},[t._l(t.attrs,(function(r,n){return e("Item",{key:"".concat(n,"-").concat(r.name),attrs:{formModel:t.actionModel,prop:r.name,schema:r,params:t.params,labelType:!1,isFilter:""},on:{change:function(e){return t.handleItemChange(e,r)},fill:function(e){return t.handleItemFill(e,r)}},model:{value:t.actionModel[r.name],callback:function(e){t.$set(t.actionModel,r.name,e)},expression:"actionModel[col.name]"}})})),t.view.configs["filters.collapse"]?e("a-form-model-item",[e("a-popover",{attrs:{trigger:"click",placement:"bottomRight"},scopedSlots:t._u([{key:"content",fn:function(){return t._l(t.columns.slice(t.view.configs["filters.collapse"]),(function(r,n){return e("Item",{key:"".concat(n,"-").concat(r.name),attrs:{formModel:t.actionModel,prop:r.name,schema:r,params:t.params,labelType:!1,isFilter:""},on:{change:function(e){return t.handleItemChange(e,r)},fill:function(e){return t.handleItemFill(e,r)}},model:{value:t.actionModel[r.name],callback:function(e){t.$set(t.actionModel,r.name,e)},expression:"actionModel[col.name]"}})}))},proxy:!0}],null,!1,2124004358),model:{value:t.collapse,callback:function(e){t.collapse=e},expression:"collapse"}},[e("a-button",{attrs:{type:"link",icon:"filter"}},[t._v(" 更多筛选")])],1)],1):t._e()],2)},Br=[];function Fr(t){return Fr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fr(t)}function $r(t){return zr(t)||Gr(t)||Ur(t)||Vr()}function Vr(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Ur(t,e){if(t){if("string"===typeof t)return Kr(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Kr(t,e):void 0}}function Gr(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function zr(t){if(Array.isArray(t))return Kr(t)}function Kr(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Hr(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Hr=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(L){s=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var i=e&&e.prototype instanceof h?e:h,a=Object.create(i.prototype),c=new E(o||[]);return n(a,"_invoke",{value:_(t,r,c)}),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(L){return{type:"throw",arg:L}}}t.wrap=u;var f={};function h(){}function p(){}function d(){}var y={};s(y,i,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(S([])));m&&m!==e&&r.call(m,i)&&(y=m);var g=d.prototype=h.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,c){var s=l(t[n],t,i);if("throw"!==s.type){var u=s.arg,f=u.value;return f&&"object"==Fr(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return o("throw",t,a,c)}))}c(s.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function _(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=x(a,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=l(t,e,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=l(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function S(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return p.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:p,configurable:!0}),p.displayName=s(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,s(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),s(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),s(g,c,"Generator"),s(g,i,(function(){return this})),s(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=S,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:S(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function Yr(t,e,r,n,o,i,a){try{var c=t[i](a),s=c.value}catch(u){return void r(u)}c.done?e(s):Promise.resolve(s).then(n,o)}function Wr(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){Yr(i,n,o,a,c,"next",t)}function c(t){Yr(i,n,o,a,c,"throw",t)}a(void 0)}))}}function Zr(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Xr(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Zr(Object(r),!0).forEach((function(e){Jr(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Zr(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Jr(t,e,r){return e=Qr(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Qr(t){var e=tn(t,"string");return"symbol"===Fr(e)?e:String(e)}function tn(t,e){if("object"!==Fr(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Fr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var en={model:{prop:"values",event:"change"},props:{action:{type:Object},columns:{type:Array},values:{type:Object},mode:{type:String,enum:["fully","normal","simple"],default:"normal"},layout:{type:String,enum:["horizontal","vertical","inline"],default:"horizontal"},params:{type:[Object],default:function(){return{}}},submited:{type:Number},continueText:{type:String},submitText:{type:String},resetText:{type:String},footer:{type:String},onContinue:{type:Function},onSubmit:{type:Function},onReset:{type:Function}},data:function(){return{actionModel:Xr({},this.values)||{},hasFile:!1}},created:function(){if(this.defaultValues)for(var t in this.defaultValues)void 0===this.actionModel[t]&&this.$set(this.actionModel,t,this.defaultValues[t])},computed:{defaultValues:function(){var t=this.columns?this.columns.filter((function(t){return!!t.value})).map((function(t){return[t.name,t.value]})):[];return t.length?Object.fromEntries(t):null},rules:function(){var t={};return this.columns.forEach((function(e){var r,n=["date","time","month","week","range","tree-suggest"].includes(e.control);(t[e.name]=[],e.required&&t[e.name].push({required:!0,message:"".concat(e.alias,"不能为空"),trigger:n?"change":"blur"}),e.maxLength&&e.minLength)&&(r=e.maxLength&&e.minLength?"长度在 ".concat(e.minLength," 到 ").concat(e.maxLength," 个字符"):e.maxLength?"长度不多于 ".concat(e.maxLength," 个字符"):"长度不少于 ".concat(e.minLength," 个字符"),t[e.name].push({min:e.minLength,max:e.maxLength,message:r,trigger:"blur"}))})),t},configs:function(){return Object.fromEntries(this.action.configs.map((function(t){return[t.key,t.value]})))}},provide:function(){return{form:this}},inject:["view"],methods:{setModel:function(t,e){this.actionModel[t]?this.actionModel[t]=e:this.$set(this.actionModel,t,e)},handleItemChange:function(t,e){var r=e.name;this.setModel(r,t)},handleItemFill:function(t){var e=this;t.forEach((function(t){return e.setModel(t.name,t.value)}))},handleSubmit:function(){var t=this;return Wr(Hr().mark((function e(){return Hr().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!t.$refs.form){e.next=3;break}return e.next=3,t.$refs.form.validate();case 3:t.handleCommit();case 4:case"end":return e.stop()}}),e)})))()},handleCommit:function(){var t=this;return Wr(Hr().mark((function e(){var r,n,o,i,a;return Hr().wrap((function(e){while(1)switch(e.prev=e.next){case 0:Array.isArray(t.actionModel)?r=t.actionModel:(n=t.params,o=void 0===n?{}:n,i=o.valuesName,a=i?[].concat($r(t.columns),[{name:i}]):t.columns,r=Object.fromEntries(a.map((function(e){var r=void 0===t.actionModel[e.name]?null:t.actionModel[e.name];return[e.name,r]})))),t.$emit("commit",r);case 2:case"end":return e.stop()}}),e)})))()}},watch:{submited:function(){this.handleSubmit()},actionModel:{handler:function(t){this.$emit("change",t)},deep:!0},values:{handler:function(t){for(var e in t)this.setModel(e,t[e])},deep:!0}}},rn=function(){var t=this,e=t._self._c;return(t.changeMode?t.multiConditionStatus:t.showModel)?e("a-form-model-item",{ref:"item",attrs:{label:t.label,help:t.help,extra:t.extra,"validate-status":t.validateStatus,colon:!1,"has-feedback":!1,prop:t.prop,rules:t.rules}},[["select","chosen"].includes(t.schema.control)?e("a-select",{staticStyle:{width:"100%","min-width":"199px"},attrs:{value:t.value,allowClear:"",showSearch:"chosen"===t.schema.control,optionFilterProp:"children",filterOption:t.filterOption,disabled:t.readonly,dropdownMatchSelectWidth:!1,placeholder:t.placeholder},on:{change:function(e){return t.$emit("change",e)}}},t._l(t.options,(function(r,n){return e("a-select-option",{key:n,attrs:{title:r.label,value:r.value}},[t._v(" "+t._s(r.label)+" ")])})),1):["multiple"].includes(t.schema.control)?e("a-select",{staticStyle:{width:"100%","min-width":"199px"},attrs:{mode:"multiple",allowClear:"",defaultValue:t.value&&t.value.split(","),disabled:t.readonly,dropdownMatchSelectWidth:!1,placeholder:t.placeholder},on:{change:function(e){return t.$emit("change",e.join(","))}}},t._l(t.options,(function(r,n){return e("a-select-option",{key:n,attrs:{title:r.label,value:r.value}},[t._v(" "+t._s(r.label)+" ")])})),1):"Boolean"===t.schema.metaType?e("a-switch",{attrs:{disabled:t.readonly,defaultChecked:t.value},on:{change:function(e){return t.$emit("change",e.target.value)}}}):"daterange"===t.schema.control?e("a-range-picker",{staticStyle:{width:"100%","min-width":"199px"},attrs:{disabled:t.readonly,valueFormat:"YYYY-MM-DD",placeholder:["开始".concat(t.placeholder),"结束".concat(t.placeholder)],defaultValue:t.value&&t.value.split(",").every((function(t){return t}))?t.value.split(",").map((function(e){return t.moment(Number(e)||e)})):null,disabledDate:function(e){return t.disableDateFn(e)},allowClear:""},on:{change:function(e,r){t.$emit("change",r.join(","))}}}):["date","datetime"].includes(t.schema.control)||"date"===t.schema.dataType?e("a-date-picker",{staticStyle:{width:"100%","min-width":"199px"},attrs:{disabled:t.readonly,format:"datetime"===t.schema.control?"YYYY-MM-DD HH:mm":"YYYY-MM-DD",valueFormat:"datetime"===t.schema.control?"YYYY-MM-DD HH:mm":"YYYY-MM-DD",value:t.value?t.moment(Number(t.value)||t.value):null,showTime:"datetime"===t.schema.control&&{format:"HH:mm"},allowClear:"",placeholder:t.placeholder,disabledDate:function(e){return t.disableDateFn(e)}},on:{change:function(e,r){t.$emit("change",r)}}}):"year"===t.schema.control?e("a-date-picker",{staticStyle:{width:"100%","min-width":"199px"},attrs:{disabled:t.readonly,format:"YYYY",mode:"year",value:t.value?t.moment(t.value):null,allowClear:"",placeholder:t.placeholder,open:t.yearPickerPanelOpen,disabledDate:function(e){return t.disableDateFn(e)}},on:{panelChange:function(e){t.$emit("change",t.moment(e).format("YYYY")),t.yearPickerPanelOpen=!1},openChange:function(e){return t.yearPickerPanelOpen=e}}}):["birthday"].includes(t.schema.control)?e("a-date-picker",{staticStyle:{width:"100%","min-width":"199px"},attrs:{disabled:t.readonly,format:"YYYY-MM-DD HH:mm",valueFormat:"YYYY-MM-DD HH:mm",defaultValue:t.value?t.moment(t.value):null,showTime:{format:"HH:mm"},allowClear:"",disabledDate:function(e){return t.disableDateFn(e)},placeholder:t.placeholder},on:{change:function(e,r){t.$emit("change",r)}}}):["month"].includes(t.schema.control)||"month"===t.schema.dataType?e("a-month-picker",{staticStyle:{width:"100%","min-width":"199px"},attrs:{disabled:t.readonly,defaultValue:t.value?t.moment(Number(t.value)||t.value):null,allowClear:"",placeholder:t.placeholder,disabledDate:function(e){return t.disableDateFn(e)}},on:{change:function(e,r){t.$emit("change",r)}}}):["week"].includes(t.schema.control)||"week"===t.schema.dataType?e("a-week-picker",{staticStyle:{width:"100%","min-width":"199px"},attrs:{disabled:t.readonly,defaultValue:t.value?t.moment(Number(t.value)||t.value,"YYYY-w"):null,format:"YYYY-w",allowClear:"",placeholder:t.placeholder,disabledDate:function(e){return t.disableDateFn(e)}},on:{change:function(e,r){t.$emit("change",r)}}}):["time"].includes(t.schema.control)?e("a-time-picker",{staticStyle:{width:"100%","min-width":"199px"},attrs:{allowClear:"",placeholder:t.placeholder,format:"HH:mm",disabled:t.readonly,defaultValue:t.value?t.moment(t.value,"HH:mm"):null,disabledDate:function(e){return t.disableDateFn(e)}},on:{change:function(e,r){t.$emit("change",r)}}}):"multiple"===t.schema.control?e("a-checkbox-group",{attrs:{options:t.options,defaultValue:t.value},on:{change:function(e){return t.$emit("change",e)}}}):"radio"===t.schema.control?e("a-radio-group",{attrs:{defaultValue:t.value},on:{change:function(e){return t.$emit("change",e.target.value)}}},[t._l(t.options,(function(r){return e("a-radio",{key:r.value,attrs:{disabled:t.readonly,value:["Number","Integer"].includes(t.schema.metaType)?Number(r.value):r.value}},[t._v(" "+t._s(r.label)+" ")])})),e("a-radio",{directives:[{name:"show",rawName:"v-show",value:0,expression:"0"}],key:"_empty",attrs:{value:""}},[t._v(" 全部 ")])],2):"radio-image"===t.schema.control?e("a-radio-group",{staticClass:"radio-image",attrs:{defaultValue:t.value},on:{change:function(e){return t.$emit("change",e.target.value)}}},t._l(t.options,(function(r){return e("a-radio-button",{key:r.value,attrs:{disabled:t.readonly,value:["Number","Integer"].includes(t.schema.metaType)?Number(r.value):r.value}},[e("a-avatar",{attrs:{size:48,src:r.label,shape:"square"}})],1)})),1):"button-group"===t.schema.control?e("a-radio-group",{attrs:{defaultValue:t.value},on:{change:function(e){return t.$emit("change",e.target.value)}}},[e("a-radio-button",{key:"_empty",attrs:{value:""}},[t._v(" 全部 ")]),t._l(t.options,(function(r){return e("a-radio-button",{key:r.value,attrs:{disabled:t.readonly,value:r.value}},[t._v(" "+t._s(r.label)+" ")])}))],2):"file"===t.schema.control?[t.value&&!t.reUpload?e("span",[e("a",{attrs:{href:"".concat(t.view.apiURL,"/").concat(t.formModel[t.view.idName],"?_file=").concat(t.schema.name,"&_mode=inline"),target:"_blank"}},[t._v(" 下载查看 ")]),t.readonly?t._e():e("span",[t._v(" - "),e("a",{attrs:{href:"javascript:void(0);"},on:{click:t.handleReupload}},[t._v(" 重新上传 ")])])]):e("a-input",{staticStyle:{margin:"4px 0"},attrs:{type:"file",accept:t.schema.params&&t.schema.params.fileType?t.schema.params.fileType:"*",disabled:t.readonly},on:{change:function(e){return t.handleFilesChange(e,t.schema.params&&t.schema.params.fileSize?t.schema.params.fileSize:null)}}})]:"files"===t.schema.control?e("div",[e("a-upload",{attrs:{beforeUpload:t.beforeFilesUpload,multiple:"",showUploadList:!1,accept:t.schema.params&&t.schema.params.fileType?t.schema.params.fileType:"*"}},[e("a-button",{on:{click:function(e){return t.setFileSize(t.schema.params&&t.schema.params.fileSize?t.schema.params.fileSize:null)}}},[e("a-icon",{attrs:{type:"upload"}}),t._v(" 批量上传 ")],1)],1),t.defaultFileList.length?e("a-list",{attrs:{"item-layout":"horizontal","data-source":t.defaultFileList,size:"small"},scopedSlots:t._u([{key:"renderItem",fn:function(r){return e("a-list-item",{},[e("a-list-item-meta",[e("span",{attrs:{slot:"title"},slot:"title"},[t._v(t._s(r.file_name||r.name))]),e("a-space",{attrs:{slot:"description",size:"middle"},slot:"description"},[e("span",{attrs:{slot:"description"},slot:"description"},[e("a-icon",{attrs:{type:"user"}}),t._v(" "+t._s(r.creator_name||t.$store.state.user.name)+" ")],1),e("span",{attrs:{slot:"description"},slot:"description"},[e("a-icon",{attrs:{type:"clock-circle"}}),t._v(" "+t._s(t.moment(r.create_time).format("YYYY-MM-DD HH:mm"))+" ")],1)])],1),t.schema.params&&t.schema.params.control&&t.schema.params.control.deleteActionRoles&&t.schema.params.control.deleteActionRoles.includes(t.$store.state.user.roleId)||!(t.schema.params&&t.schema.params.control&&t.schema.params.control.deleteActionRoles)?e("a-icon",{staticStyle:{color:"#f5222d"},attrs:{slot:"actions",type:"close-circle"},on:{click:function(e){return t.handleRemove(t.index)}},slot:"actions"}):t._e()],1)}}],null,!1,2665482914)}):t._e()],1):"image"===t.schema.control?e("a-upload",{staticClass:"avatar-uploader",attrs:{accept:"image/*","list-type":"picture-card","default-file-list":t.defaultFileList,"before-upload":t.beforeUpload,remove:function(){return t.$emit("change",null)}}},[t.formModel[t.schema.name]?t._e():e("div",[e("a-icon",{attrs:{type:"plus"}}),e("div",{staticClass:"ant-upload-text"},[t._v("上传")])],1)]):"view-select"!==t.schema.control||t.readonly?"textarea"===t.schema.control?e("a-textarea",{staticStyle:{width:"100%","min-width":"199px"},attrs:{placeholder:t.placeholder,defaultValue:t.value,disabled:t.readonly,maxLength:t.schema.maxLength?t.schema.maxLength:512,"auto-size":{minRows:t.schema.params&&t.schema.params.control&&t.schema.params.control.minRows||1,maxRows:t.schema.params&&t.schema.params.control&&t.schema.params.control.maxRows||10},allowClear:""},on:{blur:function(e){return t.$emit("change",e.target.value)},pressEnter:function(e){return t.$emit("change",e.target.value)}}}):"csv-json"===t.schema.control?e("span",[e("a-textarea",{staticStyle:{width:"100%","min-width":"199px"},attrs:{defaultValue:t.value,placeholder:t.placeholder,disabled:t.readonly,maxLength:t.schema.maxLength?t.schema.maxLength:512,"auto-size":{minRows:t.schema.params&&t.schema.params.control&&t.schema.params.control.minRows||1,maxRows:t.schema.params&&t.schema.params.control&&t.schema.params.control.maxRows||10},allowClear:""},on:{blur:function(e){return t.$emit("change",e.target.value)},pressEnter:function(e){return t.$emit("change",e.target.value)}}})],1):"tree-suggest"===t.schema.control?e("a-tree-select",{staticStyle:{width:"100%","min-width":"199px"},attrs:{placeholder:t.placeholder,dropdownStyle:{maxHeight:"300px",overflow:"auto"},treeData:t.async?t.asyncTreeData:t.treeData,loadData:t.async&&t.handleAsyncLoadData||null,allowClear:"",value:t.value},on:{change:function(e){return t.$emit("change",e)}}}):"tree-suggests"===t.schema.control?e("a-tree-select",{staticStyle:{width:"100%","min-width":"199px"},attrs:{placeholder:t.placeholder,dropdownStyle:{maxHeight:"300px",overflow:"auto"},treeData:t.async?t.asyncTreeData:t.treeData,loadData:t.async&&t.handleAsyncLoadData||null,allowClear:"",multiple:"",value:t.value?t.value.split(","):void 0},on:{change:function(e){return t.$emit("change",e?e.join(","):void 0)}}}):"tree-select"===t.schema.control?e("div",[t._e(),e("a-tree",{attrs:{replaceFields:{title:"label"},treeData:t.treeUrl?t.loadTreeData:t.async?t.asyncTreeData:t.treeData,selectedKeys:[t.defaultValue],loadData:t.async&&t.handleAsyncLoadData||null,defaultExpandedKeys:t.treeUrl?[t.loadTreeData[0]&&t.loadTreeData[0].key]:[t.treeData[0]&&t.treeData[0].key]},on:{select:t.handleTreeSelect}})],1):"password"===t.schema.control?e("a-input-password",{tag:"component",staticStyle:{width:"100%","min-width":"199px"},attrs:{name:t.schema.name,placeholder:t.placeholder,allowClear:""},on:{change:function(e){return t.$emit("change",e.target.value)}}}):"editor"===t.schema.control?e("Editor",{staticStyle:{width:"100%","min-width":"199px"},attrs:{value:t.formModel[t.schema.name],placeholder:t.placeholder,disabled:t.readonly,params:t.schema.params||void 0},on:{change:function(e){return t.$emit("change",e)}}}):"verify"===t.schema.control?e("VerificationCode",{staticStyle:{width:"100%","min-width":"199px"},attrs:{placeholder:t.placeholder,url:t.schema.params.url,time:t.schema.params.time,phone:t.formModel[t.schema.params.phoneName]},on:{change:function(e){return t.$emit("change",e)}}}):"map-marker"===t.schema.control?e("MapMarker",{staticStyle:{width:"100%","min-width":"199px"},attrs:{placeholder:t.placeholder,name:t.schema.name,mapCenter:t.schema.params&&(t.schema.params.mapCenter?JSON.parse(t.schema.params.mapCenter):t.schema.params.control.mapCenter)},on:{change:function(e){return t.$emit("change",e)},map:t.handleMapComplete},model:{value:t.formModel[t.schema.name],callback:function(e){t.$set(t.formModel,t.schema.name,e)},expression:"formModel[schema.name]"}}):"map-polygon"===t.schema.control?e("MapPolygon",{staticStyle:{width:"100%","min-width":"199px"},attrs:{placeholder:t.placeholder,name:t.schema.name,mapCenter:t.schema.params&&(t.schema.params.mapCenter?JSON.parse(t.schema.params.mapCenter):t.schema.params.control.mapCenter)},on:{change:function(e){return t.$emit("change",e)}},model:{value:t.formModel[t.schema.name],callback:function(e){t.$set(t.formModel,t.schema.name,e)},expression:"formModel[schema.name]"}}):"transfer"===t.schema.control?e("Transfer",{staticStyle:{width:"100%","min-width":"199px"},attrs:{placeholder:t.placeholder,treeUrl:t.schema.params.control.url,titleName:t.schema.params.control.displayValue,keyName:t.schema.params.control.realValue},on:{submit:t.handlePickerComplete,selected:t.handlePickerSelected},model:{value:t.formModel[t.schema.name],callback:function(e){t.$set(t.formModel,t.schema.name,e)},expression:"formModel[schema.name]"}}):e("a-".concat(t.type),{ref:"aInput",tag:"component",staticClass:"form-item",attrs:{defaultValue:t.value,name:t.schema.name,placeholder:t.placeholder,disabled:t.readonly,allowClear:""},on:{blur:function(e){return t.$emit("change",e.target.value)},pressEnter:function(e){return t.$emit("change",e.target.value)}}}):e("a-input",{staticStyle:{width:"100%","min-width":"199px"},attrs:{placeholder:t.placeholder,"read-only":"",value:t.valueLabel,allowClear:""}},[e("a-icon",{attrs:{slot:"addonAfter",type:"search"},on:{click:function(e){return t.handlePickerShow(t.schema)}},slot:"addonAfter"})],1),t.pickerViewShow?e("Popup",{attrs:{visible:t.pickerViewShow,title:t.schema.alias,type:"modal",okButtonProps:{props:{icon:"check"}},cancelButtonProps:{props:{icon:"close"}}},on:{ok:t.handlePickerComplete,close:t.handlePickerClose,cancel:t.handlePickerClose}},[t.pickerViewShow?e("Picker",t._b({ref:"picker",attrs:{viewKey:t.schema.name,params:{filters:t.pickerFilter,route:t.pickerRoute},mode:"picker"},on:{selected:t.handlePickerSelected}},"Picker",t.pickerViewOptions,!1)):t._e()],1):t._e()],2):t._e()},nn=[];function on(t){return on="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},on(t)}function an(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */an=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(L){s=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var i=e&&e.prototype instanceof h?e:h,a=Object.create(i.prototype),c=new E(o||[]);return n(a,"_invoke",{value:_(t,r,c)}),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(L){return{type:"throw",arg:L}}}t.wrap=u;var f={};function h(){}function p(){}function d(){}var y={};s(y,i,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(S([])));m&&m!==e&&r.call(m,i)&&(y=m);var g=d.prototype=h.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,c){var s=l(t[n],t,i);if("throw"!==s.type){var u=s.arg,f=u.value;return f&&"object"==on(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return o("throw",t,a,c)}))}c(s.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function _(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=x(a,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=l(t,e,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=l(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function S(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return p.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:p,configurable:!0}),p.displayName=s(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,s(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),s(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),s(g,c,"Generator"),s(g,i,(function(){return this})),s(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=S,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:S(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function cn(t){return fn(t)||ln(t)||un(t)||sn()}function sn(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function un(t,e){if(t){if("string"===typeof t)return hn(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?hn(t,e):void 0}}function ln(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function fn(t){if(Array.isArray(t))return hn(t)}function hn(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function pn(t,e,r,n,o,i,a){try{var c=t[i](a),s=c.value}catch(u){return void r(u)}c.done?e(s):Promise.resolve(s).then(n,o)}function dn(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){pn(i,n,o,a,c,"next",t)}function c(t){pn(i,n,o,a,c,"throw",t)}a(void 0)}))}}function yn(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function vn(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?yn(Object(r),!0).forEach((function(e){mn(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):yn(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function mn(t,e,r){return e=gn(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function gn(t){var e=bn(t,"string");return"symbol"===on(e)?e:String(e)}function bn(t,e){if("object"!==on(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==on(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var wn={props:{schema:{type:Object},formModel:{type:Object},type:{type:String,enum:["cell","divider","computed","text","number","checkbox","radio","switch","textarea","rate","select","slider","upload","cascader","transfer","color","search","date","time","month","week","range","signature","view","tree","box","html","markdown","code","location","mentions","face","photos","files","conditions","flow","array","matrix","table","sheet","nested"],default:"input"},prop:{type:String},labelType:{type:[String,Boolean],default:!0},value:{type:[String,Boolean,Array,Number,Object,FileList,File]},params:{type:[Object],default:function(){return{}}},required:{type:Boolean,default:!1},isFilter:{type:Boolean,default:!1}},model:{prop:"value",event:"change"},inject:["view"],data:function(){return{pickerViewOptions:{},pickerViewShow:!1,filterRules:[],showRules:[],hideRules:[],requireRules:[],swiftRules:[],showModel:!0,requireModel:this.required,reUpload:!1,selections:[],valueLabel:null,valueReal:null,defaultFileList:[],defaultValue:this.formModel[this.schema.name]||"",defaultFileSize:null,asyncTreeData:[],loadTreeData:[],multiConditionCheck:{},multiConditionStatus:!0,changeMode:"",yearPickerPanelOpen:!1}},computed:{placeholder:function(){return this.schema.alias||this.schema.name},label:function(){return!1===this.labelType?null:this.schema.alias||this.schema.name},help:function(){return""},extra:function(){return""},readonly:function(){return!!this.schema.params&&this.schema.params.readonly},validateStatus:function(){return null},options:function(){var t=this;if(this.schema.list){var e,r=this.swiftRules[0];return r&&this.formModel[r.key]&&(e=r.value.find((function(e){return e.value===t.formModel[r.key]}))),this.schema.list.split(",").filter((function(t){return!e||e.items.includes(t.split(":")[0])})).map((function(e){var r=e.split(":");return"radio-image"===t.schema.control?{label:r[1]?"".concat(r[1],":").concat(r[2]):r[0],value:r[0]}:{label:r[1]?r[1]:r[0],value:r[0]}}))}if("wordbook"===this.schema.dataType&&this.schema.typeObject){var n=this.schema.typeObject.model.attrs.find((function(t){return"title"===t.display})),o=this.schema.typeObject.model.idName;n=n.name||o;var i=this.filterRules.length?this.schema.typeObject.data.collection.filter((function(e){return t.filterRules.every((function(r){return me(Object.fromEntries([[r.key,e[r.value]]]),vn(vn({},t.formModel),{},{$parent:t.params.$parent}))}))})):this.schema.typeObject.data.collection;return i.map((function(t){return{label:t[n],value:t[o]}}))}return this.schema.params&&this.schema.params.control&&this.schema.params.control.options?this.formModel[this.schema.params.control.options].split(",").map((function(t){var e=t.split(":");return{label:"".concat(e[0]," (").concat(e[1],")"),value:e[1]}})):[]},treeData:function(){var t=this;if("wordbook"===this.schema.dataType&&this.schema.typeObject){var e=this.schema.typeObject.model.attrs.find((function(t){return"title"===t.display})),r=this.schema.typeObject.model.idName;e=e.name||r;var n=function n(o){return o.map((function(o){return{label:o[e],value:o[r],key:o[r],disabled:t.schema.params&&t.schema.params.control.leafCheck&&!!o._childList,children:o._childList?n(o._childList):null}}))},o=this.schema.typeObject.data,i=o.node,a=o.collection,c=this.async&&i?[{label:i[e],value:i[r],key:i[r],children:n(a)}]:n(a);return c}return[]},rules:function(){var t=["date","time","month","week","range","datetime"].includes(this.schema.control),e={required:!0,message:"".concat(this.schema.alias,"不能为空"),trigger:t?"change":"blur"};return!this.isFilter&&this.requireModel?[e]:null},configs:function(){return this.schema.configs&&this.schema.configs.length&&Object.fromEntries(this.schema.configs.map((function(t){return[t.key,t.value]})))},pickerFilter:function(){var t=this.schema.params,e=t&&t.control&&t.control.filters,r={};if(!e)return null;for(var n in e){var o=e[n].split(".").reduce((function(t,e){return t&&t[e]||void 0}),vn(vn(vn({},this.view.params),this.params),this.formModel));r[n]=void 0===o?e[n]:o}return r},pickerRoute:function(){var t=this.schema.params,e=t&&t.control&&t.control.route?t.control.route:null;return e},async:function(){var t=this.schema,e=t.dataType,r=t.typeObject;return"wordbook"===e&&r&&r.model.sync||!1},treeUrl:function(){if(!this.schema.params)return null;var t=this.schema.params.treeUrl;return t||null},defaultValueUrl:function(){var t=this.schema.params,e=void 0===t?{}:t,r=e.control,n=void 0===r?{}:r,o=n.defaultValueUrl,i=void 0===o?"":o;return i}},created:function(){this.init()},methods:{init:function(){var t=this.schema,e=t.control,r=t.metaType;this.defaultValueUrl&&!this.defaultValue&&this.getDefaultValueUrl(),this.watch(),"view-select"===e&&this.initPicker(),"Boolean"!==r&&"switch"!==e||this.initSwitch(),["image","file","files"].includes(e)&&this.initFile(),this.configs&&this.configs.required&&(this.requireModel=!0),this.async&&this.treeData&&(this.asyncTreeData=this.treeData),this.treeUrl&&this.handleLoadTreeData()},initPicker:function(){var t=this.schema,e=t.params,r=void 0===e?{}:e,n=r.control,o=void 0===n?{}:n,i=o.displayValue,a=o.realValue,c=o.labelValue,s=t.name,u=c||i||s,l=a;this.valueLabel=this.formModel[u],this.valueReal=this.formModel[l]},initSwitch:function(){void 0===this.formModel[this.schema.name]&&this.$emit("change",!1)},initFile:function(){var t=this.view,e=this.schema.name,r=this.formModel,n=r[e],o="".concat(t.apiURL,"/").concat(r[t.idName],"?_file=").concat(e,"&_mode=inline");if(n)try{var i=JSON.parse(n);Array.isArray(i)&&(this.defaultFileList=i)}catch(a){this.defaultFileList=[{uid:0,url:o,name:n}]}},initDate:function(){},reset:function(){},watch:function(){var t=this,e=this.schema.params,r=void 0===e?{}:e,n=r.control,o=void 0===n?{}:n,i=o.events,a=o.changeMode;if(a&&(this.changeMode=a),i){var c=function(){var e=s.split(":"),r=i[s].split(";");r.forEach((function(r){var n=r.split("|");"filter"===n[0]?t.filterRules.push({key:e[1],value:n[1]}):"show"===n[0]?t.showRules.push({key:e[1],value:n[1]}):"hide"===n[0]?t.hideRules.push({key:e[1],value:n[1]}):"require"===n[0]?t.requireRules.push({key:e[1],value:n[1]}):"swift"===n[0]&&t.swiftRules.push({key:e[1],value:n[1].split("/").map((function(t){var e=t.split(":");return{value:e[0],items:e[1].split(",")}}))})}))};for(var s in i)c()}this.showRules.forEach((function(e){t.$watch("formModel.".concat(e.key),(function(){t.show(e.key,e.value.split(","))})),t.show(e.key,e.value.split(","))})),this.hideRules.forEach((function(e){t.$watch("formModel.".concat(e.key),(function(){t.hide(e.key,e.value.split(","))})),t.hide(e.key,e.value.split(","))})),this.requireRules.forEach((function(e){t.$watch("formModel.".concat(e.key),(function(){t.require(e.key,e.value.split(","))})),t.require(e.key,e.value.split(","))})),this.filterRules.forEach((function(e){t.$watch("formModel.".concat(e.key),(function(){if(t.schema.required&&t.options.length){var e=t.options.find((function(e){return e.value===t.value}));t.$emit("change",e&&t.value||t.options[0].value)}else t.$emit("change","")}))})),this.swiftRules.forEach((function(e){t.$watch("formModel.".concat(e.key),(function(e){t.schema.required&&t.options.length&&e?t.$emit("change",t.options[0].value):t.$emit("change","")}))}))},require:function(t,e){var r=this.params.$parent;e.includes(vn(vn({},r),this.formModel)[t])?this.requireModel=!0:"filter"!==this.type&&(this.requireModel=!1)},show:function(t,e){var r=this.params.$parent;e.includes(vn(vn({},r),this.formModel)[t])?(this.showModel=!0,this.$emit("change",this.defaultValue)):"filter"!==this.type&&(this.showModel=!1,this.$emit("change","")),this.handleMultiConditionCheck(t,this.showModel,"show")},hide:function(t,e){var r=this.params.$parent;e.includes(vn(vn({},r),this.formModel)[t])?(this.showModel=!1,this.$emit("change","")):"filter"!==this.type&&(this.showModel=!0,this.$emit("change",this.defaultValue)),this.handleMultiConditionCheck(t,this.showModel,"hide")},handleMultiConditionCheck:function(t,e,r){t in this.multiConditionCheck?this.multiConditionCheck[t]=e:this.$set(this.multiConditionCheck,t,e),"every"===this.changeMode?this.multiConditionStatus=Object.values(this.multiConditionCheck).every((function(t){return t})):"some"===this.changeMode&&(this.multiConditionStatus=Object.values(this.multiConditionCheck).some((function(t){return t})))},fill:function(){},filterOption:function(t,e){return e.componentOptions.children[0].text.toLowerCase().indexOf(t.toLowerCase())>=0},expression:function(){},handlePickerShow:function(){var t=this.schema.params,e=void 0===t?{}:t,r=e.control,n=void 0===r?{}:r,o=n.multiple;this.pickerViewOptions={schema:this.schema,filters:this.pickerFilter,pickerMode:o?"multiple":"single"},this.pickerViewShow=!0},handlePickerSelected:function(t){this.selections=t},handlePickerClose:function(){this.pickerViewShow=!1,this.selections=[]},handlePickerComplete:function(){var t=this.schema,e=t.control,r=t.params,n=void 0===r?{}:r,o=n.control,i=void 0===o?{}:o,a=i.displayValue,c=i.realValue,s=i.multiple,u=i.fills,l=this.$refs.picker&&this.$refs.picker.$refs.view,f=c||l.idName,h=a||l.titleName||l.idName;if(!this.selections.length)return"transfer"===e&&this.$emit("change",""),this.$message.error("请选择数据");if(u){var p=this.selections[0],d=Object.keys(u).map((function(t){return{name:t,value:p[u[t]]}}));this.$emit("fill",d)}this.$emit("change",s?this.selections.map((function(t){return t[f]})).join(","):this.selections[0][f]),this.valueLabel=s?this.selections.map((function(t){return t[h]})).join(","):this.selections[0][h],this.valueReal=s?this.selections.map((function(t){return t[f]})).join(","):this.selections[0][f],this.$refs.item&&this.$refs.item.clearValidate(),this.handlePickerClose()},handleMapComplete:function(t){var e=this.schema.params,r=void 0===e?{}:e,n=r.control,o=void 0===n?{}:n,i=o.fills;if(i){var a=Object.keys(i).map((function(e){return{name:e,value:t[i[e]]}}));this.$emit("fill",a)}},handleChange:function(){},handleReupload:function(){this.reUpload=!0},handleAsyncLoadData:function(t){var e=this;return dn(an().mark((function r(){var n,o,i,a,c,s,u;return an().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return n=e.schema.typeObject.model,o=n.attrs,i=n.idName,a=e.view.apiURL,c=o.find((function(t){return"title"===t.display})),c=c.name||i,r.next=6,e.$api.get("".concat(a,"/").concat(e.schema.name,"?_node=").concat(t.eventKey),{baseURL:""});case 6:return s=r.sent,u=s.data.collection,t.dataRef.children=u.map((function(t){return{label:t[c],value:t[i],key:t[i]}})),e.asyncTreeData=cn(e.asyncTreeData),r.abrupt("return",new Promise((function(t){return t()})));case 11:case"end":return r.stop()}}),r)})))()},handleLoadTreeData:function(){var t=this;return dn(an().mark((function e(){var r,n,o,i,a,c,s;return an().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!t.treeUrl||!t.schema.typeObject){e.next=12;break}return e.next=3,t.$api.get("".concat(t.treeUrl,"?").concat(j.a.stringify(t.pickerFilter)));case 3:r=e.sent,n=r.data.collection,o=t.schema.typeObject.model.attrs.find((function(t){return"title"===t.display})),i=t.schema.typeObject.model.idName,o=o.name||i,a=function e(r){return r.map((function(r){return{label:r[o],value:r[i],key:r[i],disabled:t.schema.params&&t.schema.params.control.leafCheck&&!!r._childList,children:r._childList?e(r._childList):null}}))},c=t.schema.typeObject.data.node,s=t.async&&c?[{label:c[o],value:c[i],key:c[i],children:a(n)}]:a(n),t.loadTreeData=cn(s);case 12:case"end":return e.stop()}}),e)})))()},handleFilesChange:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=this.$el.getElementsByTagName("input")[0],n=r.files[0].size,o=e?this.unitConversion(e):0;e&&n>o?(this.$message.error("上传文件大小不能超过".concat(e)),this.reUpload=!1):this.$emit("change",r.files[0])},transformList:function(){},clearValidate:function(){},beforeUpload:function(t){return this.$emit("change",t),this.$refs.item.clearValidate(),!1},handleRemove:function(t){this.defaultFileList.splice(t,1),this.$emit("change",this.defaultFileList)},beforeFilesUpload:function(t){var e=t.size,r=t.name,n=this.defaultFileSize?this.unitConversion(this.defaultFileSize):0;return this.defaultFileSize&&e>n?this.$message.error("上传 ".concat(r," 文件大小不能超过").concat(this.defaultFileSize),5):this.defaultFileList.push(t),this.$emit("change",this.defaultFileList),this.$refs.item.clearValidate(),!1},setFileSize:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.defaultFileSize=t},unitConversion:function(t){var e=0;return e=-1!==t.indexOf("KB")?1024*Number(t.split("KB")[0]):-1!==t.indexOf("MB")?1024*Number(t.split("MB")[0])*1024:Number(t),e},handleTreeSelect:function(t){this.schema.required&&!t.length||(this.defaultValue=t[0],this.$emit("change",t[0]))},getDefaultValueUrl:function(){var t=this;return dn(an().mark((function e(){var r,n,o,i,a,c,s;return an().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.$api.get("/dataset/".concat(t.defaultValueUrl,"?").concat(j.a.stringify(t.$store.state.user)));case 3:r=e.sent,n=r.data.data,o=void 0===n?[]:n,o.length&&t.$emit("change",o[0].start_time),e.next=15;break;case 9:e.prev=9,e.t0=e["catch"](0),e.t0.response||t.$message.error("网络请求错误,请检查您的网络连接。"),i=e.t0.response,a=i.status,c=i.data,s=c&&c.content||"系统错误请与管理员联系。",t.$message.error("".concat(a,", ").concat(s));case 15:case"end":return e.stop()}}),e,null,[[0,9]])})))()},disableDateFn:function(t){var e=this.schema.params&&this.schema.params.control?this.schema.params.control:null;if(e&&e.disableDateValidate){var r=e.disableDateValidate,n=new Function("current","moment","return ".concat(r));return n(t,this.moment)}return null}}},_n=function(){var t=this,e=t._self._c;return e("div",{staticClass:"form-quill-editor"},[e("quill-editor",{ref:"quillEditor",attrs:{options:t.editorOption},on:{change:function(e){return t.onEditorChange(e)},ready:function(e){return t.onEditorReady(e)}}}),e("a-input",{staticStyle:{display:"none"},attrs:{type:"file",multiple:""},on:{change:t.handleUploadChange}})],1)},xn=[],On=(r("690b"),r("521b"),r("55ab"),r("37eb"));function kn(t){return kn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},kn(t)}function En(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */En=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(L){s=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var i=e&&e.prototype instanceof h?e:h,a=Object.create(i.prototype),c=new E(o||[]);return n(a,"_invoke",{value:_(t,r,c)}),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(L){return{type:"throw",arg:L}}}t.wrap=u;var f={};function h(){}function p(){}function d(){}var y={};s(y,i,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(S([])));m&&m!==e&&r.call(m,i)&&(y=m);var g=d.prototype=h.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,c){var s=l(t[n],t,i);if("throw"!==s.type){var u=s.arg,f=u.value;return f&&"object"==kn(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return o("throw",t,a,c)}))}c(s.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function _(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=x(a,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=l(t,e,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=l(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function S(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return p.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:p,configurable:!0}),p.displayName=s(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,s(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),s(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),s(g,c,"Generator"),s(g,i,(function(){return this})),s(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=S,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:S(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function Sn(t,e,r,n,o,i,a){try{var c=t[i](a),s=c.value}catch(u){return void r(u)}c.done?e(s):Promise.resolve(s).then(n,o)}function jn(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){Sn(i,n,o,a,c,"next",t)}function c(t){Sn(i,n,o,a,c,"throw",t)}a(void 0)}))}}function Ln(t,e){var r="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=Pn(t))||e&&t&&"number"===typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){c=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(c)throw i}}}}function Pn(t,e){if(t){if("string"===typeof t)return Nn(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Nn(t,e):void 0}}function Nn(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var An={props:{value:{type:String,default:""},placeholder:{type:String,default:"请编辑内容"},disabled:{type:Boolean},params:{type:Object}},components:{quillEditor:On["quillEditor"]},computed:{editorParams:function(){return this.params&&this.params.control&&this.params.control.toolbar?JSON.parse(this.params.control.toolbar):null}},data:function(){return{content:this.value,editorOption:{placeholder:this.disabled?"当前为不可编辑状态":this.placeholder,modules:{toolbar:[["bold","italic","underline","strike"],["blockquote","code-block"],[{header:1},{header:2}],[{list:"ordered"},{list:"bullet"}],[{script:"sub"},{script:"super"}],[{indent:"-1"},{indent:"+1"}],[{direction:"rtl"}],[{size:["small",!1,"large","huge"]}],[{header:[1,2,3,4,5,6,!1]}],[{color:[]},{background:[]}],[{font:[]}],[{align:[]}],["clean"],["image","video"]]}},baseUrl:window.location.origin,quill:null,pos:0}},created:function(){this.editorParams&&(this.editorOption.modules.toolbar=this.editorParams)},mounted:function(){this.$refs.quillEditor.quill.getModule("toolbar").addHandler("image",this.handleImage),this.quill=this.$refs.quillEditor.quill,this.disabled&&this.$refs.quillEditor.quill.enable(!1)},methods:{onEditorChange:function(t){t.editor;var e=t.html;t.text;this.$emit("change",e)},onEditorReady:function(t){t.container.querySelector(".ql-blank").innerHTML=this.content},handleImage:function(){var t=document.querySelector('.form-quill-editor input[type="file"]')||null;t&&t.click()},handleUploadChange:function(t){var e=new FormData,r=t.target.files;if(r&&r.length){var n,o=Ln(r);try{for(o.s();!(n=o.n()).done;){var i=n.value;e.append(i.lastModified+i.size,i)}}catch(a){o.e(a)}finally{o.f()}}this.getfileurl(e)},getfileurl:function(t){var e=this;return jn(En().mark((function r(){var n,o,i;return En().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return r.next=2,e.$api.post("".concat(e.baseUrl,"/file/getfileurl"),t);case 2:n=r.sent,o=n.data,i=n.status,200===i&&o.forEach((function(t){e.insertEmbedImage("".concat(e.baseUrl).concat(t))}));case 6:case"end":return r.stop()}}),r)})))()},insertEmbedImage:function(t){this.pos=this.quill.getSelection().index,this.quill.insertEmbed(this.pos,"image",t),this.quill.setSelection(this.pos+1)}}},Tn=An,Cn=(r("2f24"),Lr(Tn,_n,xn,!1,null,null,null)),In=Cn.exports,Mn=function(){var t=this,e=t._self._c;return e("a-input-group",{attrs:{compact:""}},[e("a-input",{staticStyle:{width:"60%"},attrs:{placeholder:t.placeholder,allowClear:""},on:{change:function(e){return t.$emit("change",e.target.value)}}}),e("a-button",{staticStyle:{width:"40%"},attrs:{disabled:t.disabled},on:{click:t.getVerification}},[t._v(" "+t._s(t.text)+" ")])],1)},Dn=[];function qn(t){return qn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qn(t)}function Rn(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Rn=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(L){s=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var i=e&&e.prototype instanceof h?e:h,a=Object.create(i.prototype),c=new E(o||[]);return n(a,"_invoke",{value:_(t,r,c)}),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(L){return{type:"throw",arg:L}}}t.wrap=u;var f={};function h(){}function p(){}function d(){}var y={};s(y,i,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(S([])));m&&m!==e&&r.call(m,i)&&(y=m);var g=d.prototype=h.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,c){var s=l(t[n],t,i);if("throw"!==s.type){var u=s.arg,f=u.value;return f&&"object"==qn(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return o("throw",t,a,c)}))}c(s.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function _(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=x(a,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=l(t,e,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=l(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function S(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return p.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:p,configurable:!0}),p.displayName=s(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,s(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),s(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),s(g,c,"Generator"),s(g,i,(function(){return this})),s(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=S,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:S(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function Bn(t,e,r,n,o,i,a){try{var c=t[i](a),s=c.value}catch(u){return void r(u)}c.done?e(s):Promise.resolve(s).then(n,o)}function Fn(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){Bn(i,n,o,a,c,"next",t)}function c(t){Bn(i,n,o,a,c,"throw",t)}a(void 0)}))}}var $n={mixins:[en],props:{phone:{type:String,default:""},url:{type:String},time:{type:String,default:"60"},placeholder:{type:String}},data:function(){return{disabled:!1,timer:this.time}},computed:{text:function(){return this.disabled?"".concat(this.timer,"秒后重新获取"):"获取短信验证码"}},methods:{getVerification:function(){var t=this;return Fn(Rn().mark((function e(){var r,n,o,i,a;return Rn().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(""!==t.phone){e.next=3;break}return t.$message.error("手机号码不能为空"),e.abrupt("return");case 3:return t.disabled=!0,r=setInterval((function(){t.timer--,t.timer<=0&&t.reset(r)}),1e3),e.prev=5,e.next=8,t.$api.post(t.url,{phone:t.phone});case 8:n=e.sent,o=n.data,i=n.status,200===i&&t.$message.success(o.content),e.next=22;break;case 14:if(e.prev=14,e.t0=e["catch"](5),e.t0.response){e.next=19;break}return t.$message.error("网络请求错误,请检查您的网络连接。"),e.abrupt("return");case 19:a=e.t0.response.data,t.$message.error(a.content),t.reset(r);case 22:case"end":return e.stop()}}),e,null,[[5,14]])})))()},reset:function(t){this.disabled=!1,this.timer=this.time,clearInterval(t)}}},Vn=$n,Un=Lr(Vn,Mn,Dn,!1,null,null,null),Gn=Un.exports;function zn(t){return zn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zn(t)}function Kn(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Hn(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Kn(Object(r),!0).forEach((function(e){Yn(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Kn(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Yn(t,e,r){return e=Wn(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Wn(t){var e=Zn(t,"string");return"symbol"===zn(e)?e:String(e)}function Zn(t,e){if("object"!==zn(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==zn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var Xn=function(){var t=this,e=t._self._c;return e("div",[e("a-input",{attrs:{placeholder:t.placeholder,allowClear:""},on:{change:t.handleChange},model:{value:t.markerVal,callback:function(e){t.markerVal=e},expression:"markerVal"}},[e("a-icon",{attrs:{slot:"addonAfter",type:"environment"},on:{click:t.showModal},slot:"addonAfter"})],1),e("a-modal",t._b({attrs:{title:t.placeholder},on:{ok:t.submit,cancel:t.cancel},model:{value:t.visible,callback:function(e){t.visible=e},expression:"visible"}},"a-modal",Hn({},t.fullscreenOptions),!1),[e("el-amap-search-box",{staticClass:"amap-search-box",attrs:{"search-option":t.searchOption,"on-search-result":t.handleSearch}}),e("el-amap",{staticClass:"amap-box",attrs:{vid:"amap-vue-marker".concat(t._uid),center:t.center,plugin:t.plugin,zoom:t.zoom,"amap-manager":t.amapManager,events:t.events}},t._l(t.markers,(function(t){return e("el-amap-marker",{key:t.id,attrs:{position:t.path,title:t.title}})})),1)],1)],1)},Jn=[],Qn=r("5aeb"),to={model:{prop:"value",event:"change"},props:{placeholder:{type:String,default:""},name:{type:String,default:""},value:{type:String,default:""},mapCenter:{type:Array,default:function(){return[116.405285,39.904989]}},mapZoom:{type:Number,default:18}},data:function(){var t=this;return{visible:!1,markerVal:this.value,fullscreenOptions:{width:"100%",bodyStyle:{height:"".concat(document.body.clientHeight-108,"px"),overflowY:"auto",padding:"0"},dialogStyle:{padding:0},centered:!0},mapInstance:null,center:this.mapCenter,zoom:this.mapZoom,amapManager:null,markers:[],mouseTool:null,geocoder:null,geolocation:null,plugin:[{pName:"Scale"},{pName:"ToolBar",position:"RB"}],events:{init:function(e){t.mapInstance=e,t.initMap()},zoomend:function(){t.zoom=t.mapInstance.getZoom()}},searchOption:{citylimit:!1,autoFitView:!0},position:{lng:0,lat:0,name:""}}},mounted:function(){this.amapManager=new Qn["AMapManager"]},methods:{handleChange:function(t){var e=t.target.value;this.markerVal=e,this.markerVal||this.initDefault(),this.$emit("change",this.markerVal)},initMap:function(){var t=this;Qn["lazyAMapApiLoaderInstance"]&&Qn["lazyAMapApiLoaderInstance"].load().then((function(){t.markerVal&&t.initMarkers(),AMap.plugin(["AMap.MouseTool"],(function(){t.mouseTool=new AMap.MouseTool(t.mapInstance),t.drawMarker()})),t.geocoder=new AMap.Geocoder}))},drawMarker:function(){var t=this;this.mouseTool.marker({visible:!1}),this.mouseTool.on("draw",(function(e){var r=e.obj.w.position,n=r.lng,o=r.lat;t.position.lat=o,t.position.lng=n,t.getAddress(n,o),t.markers.length&&(t.markers=[]),t.markers.push({id:t._uid,path:[n,o],title:"[".concat(n,",").concat(o,"]")})}))},initMarkers:function(){var t=this.markerVal.split("/");this.zoom=t.length&&t[1]?t[1]:18;var e=t.length&&t[0]&&t[0].split(",");e.length&&(this.center=[Number(e[0]),Number(e[1])],this.markers=[{id:this._uid,path:[Number(e[0]),Number(e[1])],title:"[".concat(Number(e[0]),",").concat(Number(e[1]),"]")}])},showModal:function(){this.visible=!0,this.markerVal&&this.initMarkers()},submit:function(t){if(this.markers.length){var e=this.markers[0]&&this.markers[0].path[0],r=this.markers[0]&&this.markers[0].path[1],n="".concat(e,", ").concat(r,"/").concat(this.zoom);this.markerVal=n,this.$emit("change",this.markerVal);var o=Object.assign({zoom:this.zoom},this.position);this.$emit("map",o)}else this.initDefault();this.visible=!1},cancel:function(){this.markers.length&&!this.markerVal&&this.initDefault(),this.visible=!1},initDefault:function(){this.markers=[],this.center=this.mapCenter,this.zoom=this.mapZoom},handleSearch:function(t){if(this.markers=[],t&&t.length){var e=t[0],r=e.lat,n=e.lng;this.position.lat=r,this.position.lng=n,this.getAddress(n,r),this.center=[n,r],this.markers.push({id:this._uid,path:[n,r],title:"[".concat(n,",").concat(r,"]")})}},getAddress:function(t,e){var r=this;this.geocoder.getAddress([t,e],(function(t,e){"complete"===t&&e.regeocode?r.position.name=e.regeocode.formattedAddress:r.$message.error("根据经纬度查询地址失败")}))}}},eo=to,ro=(r("cf3f"),Lr(eo,Xn,Jn,!1,null,"09b502b8",null)),no=ro.exports;function oo(t){return oo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},oo(t)}function io(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function ao(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?io(Object(r),!0).forEach((function(e){co(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):io(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function co(t,e,r){return e=so(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function so(t){var e=uo(t,"string");return"symbol"===oo(e)?e:String(e)}function uo(t,e){if("object"!==oo(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==oo(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var lo=function(){var t=this,e=t._self._c;return e("div",[e("a-input",{attrs:{placeholder:t.placeholder,allowClear:""},on:{change:t.handleChange},model:{value:t.markers,callback:function(e){t.markers=e},expression:"markers"}},[e("a-icon",{attrs:{slot:"addonAfter",type:"environment"},on:{click:t.showModal},slot:"addonAfter"})],1),e("a-modal",t._b({attrs:{title:t.placeholder},on:{ok:t.submit,cancel:t.cancel},model:{value:t.visible,callback:function(e){t.visible=e},expression:"visible"}},"a-modal",ao({},t.fullscreenOptions),!1),[e("el-amap-search-box",{staticClass:"amap-search-box",attrs:{"search-option":t.searchOption,"on-search-result":t.handleSearch}}),e("el-amap",{staticClass:"amap-box",attrs:{vid:"amap-vue-polygon".concat(t._uid),center:t.center,plugin:t.plugin,zoom:t.zoom,"amap-manager":t.amapManager,events:t.events}})],1)],1)},fo=[];function ho(t){return ho="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ho(t)}function po(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function yo(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?po(Object(r),!0).forEach((function(e){vo(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):po(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function vo(t,e,r){return e=mo(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function mo(t){var e=go(t,"string");return"symbol"===ho(e)?e:String(e)}function go(t,e){if("object"!==ho(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==ho(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var bo={model:{prop:"value",event:"change"},props:{placeholder:{type:String,default:""},name:{type:String,default:""},value:{type:String,default:""},mapCenter:{type:Array,default:function(){return[116.405285,39.904989]}},mapZoom:{type:Number,default:18}},data:function(){var t=this;return{visible:!1,fullscreenOptions:{width:"100%",bodyStyle:{height:"".concat(document.body.clientHeight-108,"px"),overflowY:"auto",padding:"0"},dialogStyle:{padding:0},centered:!0},mapInstance:null,center:this.mapCenter,zoom:this.mapZoom,markers:this.value,polygonInstance:null,polygons:null,amapManager:null,mouseTool:null,polygonOption:{fillColor:"#2B6CDD",fillOpacity:.5,strokeColor:"#2B6CDD",strokeWeight:1},plugin:[{pName:"Scale"},{pName:"ToolBar",position:"RB"}],events:{init:function(e){t.mapInstance=e,t.initMap()},zoomend:function(){t.zoom=t.mapInstance.getZoom()}},searchOption:{citylimit:!1,autoFitView:!0}}},mounted:function(){this.amapManager=new Qn["AMapManager"]},methods:{initMap:function(){var t=this;Qn["lazyAMapApiLoaderInstance"].load().then((function(){AMap.plugin(["AMap.MouseTool"],(function(){t.mouseTool=new AMap.MouseTool(t.mapInstance),t.drawPolygon()}))}))},handleChange:function(t){var e=t.target.value;this.markers=e,this.markers||this.initDefault(),this.$emit("change",this.markers)},drawPolygon:function(){var t=this;this.mouseTool.polygon(),this.mouseTool.on("draw",(function(e){var r=e.obj.w.path,n=r.map((function(t){return[t.lng,t.lat]}));t.initPolygon(n),t.mouseTool.close(!0)}))},initPolygon:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];setTimeout((function(){t.mapInstance&&(t.polygonInstance&&t.mapInstance.remove(t.polygonInstance),t.polygonEditor&&t.polygonEditor.close(),t.polygonInstance=new AMap.Polygon(yo({map:t.mapInstance,path:e},t.polygonOption)),t.polygons=e,t.polygonEditor=new AMap.PolyEditor(t.mapInstance,t.polygonInstance),t.polygonEditor.open(),t.polygonEditor.on("adjust",(function(e){var r=e.target.w.path;t.polygons=r})),t.polygonEditor.on("end",(function(e){e.type,e.target;t.drawPolygon()})))}),500)},showModal:function(){if(this.visible=!0,this.markers){var t=this.markers.split("/"),e=t.length&&t[0];this.zoom=t.length&&t[1]?t[1]:18;var r=JSON.parse(e);this.center=r[0]?[Number(r[0][0]),Number(r[0][1])]:[98.5868,24.434008],this.initPolygon(r)}},submit:function(t){if(this.polygons){var e=this.polygons.map((function(t){return[t.lng,t.lat]}));this.markers=JSON.stringify(e)+"/".concat(this.zoom),this.polygonEditor&&this.polygonEditor.close()}else this.initDefault();this.$emit("change",this.markers),this.visible=!1},cancel:function(){this.markers||this.initDefault(),this.polygonEditor&&this.polygonEditor.close(),this.visible=!1},initDefault:function(){this.polygonInstance&&this.mapInstance&&this.mapInstance.remove(this.polygonInstance),this.polygonEditor&&this.polygonEditor.close(),this.polygons=null,this.center=this.mapCenter,this.zoom=this.mapZoom},handleSearch:function(t){if(t&&t.length){var e=t[0],r=e.lat,n=e.lng;this.center=[n,r]}}}},wo=bo,_o=(r("fa93"),Lr(wo,lo,fo,!1,null,"03415b3c",null)),xo=_o.exports;function Oo(t){return jo(t)||So(t)||Eo(t)||ko()}function ko(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Eo(t,e){if(t){if("string"===typeof t)return Lo(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Lo(t,e):void 0}}function So(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function jo(t){if(Array.isArray(t))return Lo(t)}function Lo(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Po=function(){var t=this,e=t._self._c;return e("div",[e("a-input",{attrs:{placeholder:t.placeholder,"read-only":""},model:{value:t.checkedValues,callback:function(e){t.checkedValues=e},expression:"checkedValues"}},[e("a-icon",{attrs:{slot:"addonAfter",type:"search"},on:{click:function(e){t.visible=!0}},slot:"addonAfter"})],1),e("a-modal",{attrs:{title:t.placeholder},on:{ok:t.handleSubmit,cancel:t.handleCancel},model:{value:t.visible,callback:function(e){t.visible=e},expression:"visible"}},[e("a-transfer",{staticClass:"tree-transfer",attrs:{"data-source":t.dataSource,"target-keys":t.checkedKeys,render:function(t){return t.title},"show-select-all":!1,"list-style":{maxHeight:"450px",overflowY:"auto"},"show-search":""},on:{change:t.onChange,search:t.handleSearch},scopedSlots:t._u([{key:"children",fn:function(r){var n=r.props,o=n.direction,i=n.selectedKeys,a=r.on.itemSelect;return["left"===o?e("a-spin",{attrs:{spinning:t.leftLoding}},[e("a-tree",{attrs:{blockNode:"",checkable:"",checkStrictly:"",checkedKeys:[].concat(Oo(i),Oo(t.checkedKeys)),treeData:t.filterTreeNodes},on:{check:function(e,r){t.onChecked(e,r,[].concat(Oo(i),Oo(t.checkedKeys)),a)},select:function(e,r){t.onChecked(e,r,[].concat(Oo(i),Oo(t.checkedKeys)),a)}}})],1):t._e()]}}])})],1)],1)},No=[];function Ao(t){return Ao="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ao(t)}function To(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */To=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(L){s=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var i=e&&e.prototype instanceof h?e:h,a=Object.create(i.prototype),c=new E(o||[]);return n(a,"_invoke",{value:_(t,r,c)}),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(L){return{type:"throw",arg:L}}}t.wrap=u;var f={};function h(){}function p(){}function d(){}var y={};s(y,i,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(S([])));m&&m!==e&&r.call(m,i)&&(y=m);var g=d.prototype=h.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,c){var s=l(t[n],t,i);if("throw"!==s.type){var u=s.arg,f=u.value;return f&&"object"==Ao(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return o("throw",t,a,c)}))}c(s.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function _(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=x(a,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=l(t,e,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=l(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function S(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return p.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:p,configurable:!0}),p.displayName=s(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,s(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),s(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),s(g,c,"Generator"),s(g,i,(function(){return this})),s(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=S,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:S(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function Co(t,e,r,n,o,i,a){try{var c=t[i](a),s=c.value}catch(u){return void r(u)}c.done?e(s):Promise.resolve(s).then(n,o)}function Io(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){Co(i,n,o,a,c,"next",t)}function c(t){Co(i,n,o,a,c,"throw",t)}a(void 0)}))}}var Mo=r("9f89"),Do=/\${([\s\S]+?)}/g,qo={model:{prop:"value",event:"change"},props:{placeholder:{type:String,default:"请选择数据"},treeUrl:{type:String,default:""},value:{type:String,default:""},titleName:{type:String,default:""},keyName:{type:String,default:""},selected:{type:Object,default:function(){return{}}}},data:function(){return{visible:!1,dataSource:[],checkedKeys:[],treeData:[],inputValue:"",leftLoding:!1,checkedValues:""}},computed:{treeNodes:function(){var t=this.treeData,e=this.titleName,r=this.keyName,n=this.checkedKeys,o=this.selected,i=function t(i){return i.map((function(i){var a;return i._childList&&(a=t(i._childList)),{title:i[e],key:i[r],children:a,disabled:n.includes(i[r])||o&&!me(o,i)}}))};return i(t)},filterTreeNodes:function(){var t=this;return this.inputValue?this.treeNodes.filter((function(e){return-1!==e.title.indexOf(t.inputValue)})):this.treeNodes},flattenTreeData:function(){var t=this,e=[];return this.treeData.forEach((function(r){e.push(r),r.children&&t.flatten(r.children)})),e}},created:function(){this.load()},methods:{load:function(){var t=this;return Io(To().mark((function e(){var r,n;return To().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(r=t.treeUrl,n=null,!r){e.next=6;break}return e.next=5,t.$api.get(Mo(r,{reInterpolate:Do})());case 5:n=e.sent;case 6:n&&n.data&&(t.treeData=n.data.collection,t.treeNodes&&t.flatten(JSON.parse(JSON.stringify(t.treeNodes)))),t.value&&(t.checkedKeys=t.value.split(","),t.setCheckValues());case 8:case"end":return e.stop()}}),e)})))()},getSelections:function(){var t=this;return this.flattenTreeData.filter((function(e){return t.checkedKeys.includes(e[t.keyName])}))},setCheckValues:function(){var t=this;this.checkedValues=this.treeNodes&&this.treeNodes.filter((function(e){return t.checkedKeys.includes(e.key)})).map((function(t){return t.title})).join(",")},onChange:function(t){this.checkedKeys=t,this.$emit("selected",this.getSelections())},isChecked:function(t,e){return-1!==t.indexOf(e)},onChecked:function(t,e,r,n){var o=e.node.eventKey;n(o,!this.isChecked(r,o))},flatten:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];e.forEach((function(e){t.dataSource.push({title:e.title,key:e.key}),e.children&&t.flatten(e.children)}))},handleSubmit:function(){this.setCheckValues(),this.$emit("submit",this.getSelections()),this.visible=!1},handleCancel:function(){this.$emit("selected",this.getSelections()),this.value?(this.checkedKeys=this.value.split(","),this.setCheckValues()):this.checkedKeys=[],this.visible=!1},handleSearch:function(t,e){var r=this,n=null;"left"===t&&(this.leftLoding=!0,n=setTimeout((function(){n&&clearTimeout(n),r.inputValue=e,r.leftLoding=!1}),1e3))}}},Ro=qo,Bo=(r("014f"),Lr(Ro,Po,No,!1,null,"d5aa2650",null)),Fo=Bo.exports,$o=function(){var t=this,e=t._self._c;return e("layout-view-blank",{tag:"component"},[e("a-spin",{staticStyle:{width:"100%"},attrs:{spinning:t.loading,delay:100}},["multiple"===t.pickerMode?t._l(t.selections,(function(r){return e("a-tag",{key:r[t.idName],attrs:{closable:""},on:{close:function(e){return t.handleRemove(r)}}},[t._v(" "+t._s(r[t.titleName||t.idName])+" ")])})):t._e(),e("keep-alive",[t.loading?t._e():e(t.createView,t._g(t._b({ref:"view",tag:"component",attrs:{pageKey:t.pageKey,viewKey:t.viewKey,pickerMode:t.pickerMode,mode:t.mode,layout:"layout-view-model-list-embed"},on:{selected:t.handleSelected}},"component",t.$attrs,!1),t.$listeners))],1)],2)],1)},Vo=[],Uo={props:{schema:{type:Object},pickerMode:{type:String,enum:["single","multiple"],default:"single"},mode:{type:String,default:"picker"}}};function Go(t){return Go="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Go(t)}function zo(t){return Wo(t)||Yo(t)||Ho(t)||Ko()}function Ko(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Ho(t,e){if(t){if("string"===typeof t)return Zo(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Zo(t,e):void 0}}function Yo(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function Wo(t){if(Array.isArray(t))return Zo(t)}function Zo(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Xo(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Xo=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(L){s=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var i=e&&e.prototype instanceof h?e:h,a=Object.create(i.prototype),c=new E(o||[]);return n(a,"_invoke",{value:_(t,r,c)}),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(L){return{type:"throw",arg:L}}}t.wrap=u;var f={};function h(){}function p(){}function d(){}var y={};s(y,i,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(S([])));m&&m!==e&&r.call(m,i)&&(y=m);var g=d.prototype=h.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,c){var s=l(t[n],t,i);if("throw"!==s.type){var u=s.arg,f=u.value;return f&&"object"==Go(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return o("throw",t,a,c)}))}c(s.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function _(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=x(a,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=l(t,e,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=l(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function S(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return p.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:p,configurable:!0}),p.displayName=s(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,s(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),s(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),s(g,c,"Generator"),s(g,i,(function(){return this})),s(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=S,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:S(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function Jo(t,e,r,n,o,i,a){try{var c=t[i](a),s=c.value}catch(u){return void r(u)}c.done?e(s):Promise.resolve(s).then(n,o)}function Qo(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){Jo(i,n,o,a,c,"next",t)}function c(t){Jo(i,n,o,a,c,"throw",t)}a(void 0)}))}}function ti(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function ei(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ti(Object(r),!0).forEach((function(e){ri(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ti(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function ri(t,e,r){return e=ni(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ni(t){var e=oi(t,"string");return"symbol"===Go(e)?e:String(e)}function oi(t,e){if("object"!==Go(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Go(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var ii={mixins:[Uo],components:ei({},bh),data:function(){return{pageKey:null,viewKey:null,storeNamespace:null,loading:!0,selections:[],idName:"",titleName:""}},created:function(){this.initView()},computed:{createView:function(){return{extends:$t(bh.ModelList)("".concat(this.storeNamespace))}}},methods:{create:$t,initView:function(){var t=this;return Qo(Xo().mark((function e(){var r,n,o;return Xo().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(r=t.schema.configs.find((function(t){return"picker.view"===t.key})),n=r?r.value:"",o="p-".concat(n),t.$store.hasModule(o)){e.next=7;break}return X(t.$store,o,!0),e.next=7,t.$store.dispatch("".concat(o,"/loadSchema"));case 7:t.pageKey=n,t.viewKey=n,t.storeNamespace="v-".concat(n),t.loading=!1;case 11:case"end":return e.stop()}}),e)})))()},handleSelected:function(t){this.idName=this.$refs.view.idName,this.titleName=this.$refs.view.titleName,this.selections="multiple"===this.pickerMode&&"picker"!==this.$refs.view.mode?Array.from(new Set([].concat(zo(this.selections),zo(t)).map((function(t){return JSON.stringify(t)})))).map((function(t){return JSON.parse(t)})):t,this.$emit("selected",this.selections)},handleRemove:function(t){var e=this.idName,r=this.selections,n=r.findIndex((function(r){return r[e]===t[e]}));-1!==n&&r.splice(n,1),this.$emit("selected",r)}}},ai=ii,ci=Lr(ai,$o,Vo,!1,null,null,null),si=ci.exports;function ui(t){return ui="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ui(t)}function li(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function fi(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?li(Object(r),!0).forEach((function(e){hi(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):li(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function hi(t,e,r){return e=pi(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function pi(t){var e=di(t,"string");return"symbol"===ui(e)?e:String(e)}function di(t,e){if("object"!==ui(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==ui(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var yi=function(){var t=this,e=t._self._c;return e(t.options.component,t._g(t._b({tag:"component",scopedSlots:t._u([{key:"title",fn:function(){return[t._t("title",(function(){return[t._v(t._s(t.title))]}))]},proxy:!0},t.$slots.footer?{key:"footer",fn:function(){return[t._t("footer")]},proxy:!0}:null],null,!0)},"component",fi(fi({},t.options),t.$attrs),!1),t.$listeners),[t._t("default")],2)},vi=[],mi={props:{type:{type:String,enum:["modal","drawer","fullscreen"],default:"modal"},title:{type:String},committing:{type:Boolean,default:!1},width:{type:String},footer:{type:String}},data:function(){return{modalOptions:{component:"a-modal",width:"750px",bodyStyle:{maxHeight:this.width||"500px",overflowY:"auto"},centered:!0,footer:this.footer,maskClosable:!1},fullscreenOptions:{component:"a-modal",width:"100%",bodyStyle:{height:this.footer&&"hide"===this.footer?"".concat(document.body.clientHeight-53,"px"):"".concat(document.body.clientHeight-108,"px"),overflowY:"auto"},dialogStyle:{padding:0},centered:!0,footer:this.footer},drawerOptions:{component:"a-drawer",width:this.width||"750px",destroyOnClose:!0,bodyStyle:{padding:0},footer:this.footer},viewOptions:{component:"div"}}},computed:{options:function(){return this["".concat(this.type,"Options")]}}},gi=mi,bi=Lr(gi,yi,vi,!1,null,null,null),wi=bi.exports,_i={mixins:[wn],components:{Editor:In,Picker:si,Popup:wi,VerificationCode:Gn,MapMarker:no,MapPolygon:xo,Transfer:Fo},watch:{value:function(t,e){var r=this.$refs.aInput;r&&(r.setValue(t),this.$refs.item.clearValidate())}}},xi=_i,Oi=(r("fa0b"),Lr(xi,rn,nn,!1,null,null,null)),ki=Oi.exports,Ei={mixins:[en],components:{Item:ki},props:{columns:{type:Array},layout:{type:String,default:"inline"}},computed:{attrs:function(){return this.view.configs["filters.collapse"]?this.columns.slice(0,this.view.configs["filters.collapse"]):this.columns}},data:function(){return{collapse:!1}}},Si=Ei,ji=Lr(Si,Rr,Br,!1,null,null,null),Li=ji.exports,Pi=function(){var t=this,e=t._self._c;return e("div",{staticStyle:{display:"inline-block"}},t._l(t.groups,(function(r,n){return e("a-button-group",{key:"group-".concat(n),staticStyle:{"margin-right":"16px"}},t._l(r.actions,(function(r){return e("a-button",{key:r.id,attrs:{type:r.primary?"primary":"default",icon:r.icon,disabled:r.disabled},on:{click:function(e){return t.handleClick(r,e)}}},[t._v(" "+t._s(r.name)+" "),"file"===r.action?e("input",{staticStyle:{display:"none"},attrs:{type:"file",name:"file"},on:{change:function(e){t.onFileChange(r,e.target.files),e.target.value=""}}}):t._e()])})),1)})),1)},Ni=[];function Ai(t){return Ai="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ai(t)}function Ti(t,e,r){return e=Ci(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ci(t){var e=Ii(t,"string");return"symbol"===Ai(e)?e:String(e)}function Ii(t,e){if("object"!==Ai(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Ai(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var Mi={props:{actions:{type:Array,default:function(){return[]}},type:{type:String,default:"button"}},computed:{groups:function(){var t=[];return this.actions.forEach((function(e,r){var n=t.length-1;e.group||!r?t.push({actions:[e]}):t[n].actions.push(e)})),t}},methods:{handleClick:function(t,e){var r=e.target.getElementsByTagName("input");"file"===t.action?(e.stopPropagation(),r[0]&&void 0===r[0].click()||e.path[1].getElementsByTagName("input")[0].click()):this.$emit("action",t)},onFileChange:function(t,e){var r=t.list?t.list:"file";this.$emit("action",t,null,Ti({},r,e))}}},Di=Mi,qi=Lr(Di,Pi,Ni,!1,null,null,null),Ri=qi.exports,Bi=function(){var t=this,e=t._self._c;return e("div",[t.$attrs.params.actionViewTip?e("a-alert",{staticStyle:{margin:"0 -24px 8px"},attrs:{message:t.$attrs.params.actionViewTip,"show-icon":"",banner:""}}):t._e(),e(t.createView,t._g(t._b({tag:"component",attrs:{pageKey:t.page.pageKey,viewKey:t.action.key||t.action.method.toLowerCase(),delay:!0,action:t.action}},"component",t.$attrs,!1),t.$listeners))],1)},Fi=[],$i={inject:["page","view"],props:{action:{type:Object},modelViewType:{type:String}},computed:{createView:function(){return{extends:$t(bh["Model".concat(this.modelViewType)])("".concat(this.view.storeNamespace))}}}},Vi=$i,Ui=Lr(Vi,Bi,Fi,!1,null,null,null),Gi=Ui.exports,zi=function(){var t=this,e=t._self._c;return e("a-pagination",t._g(t._b({attrs:{"show-quick-jumper":""}},"a-pagination",t.$attrs,!1),t.$listeners))},Ki=[],Hi={},Yi=Lr(Hi,zi,Ki,!1,null,null,null),Wi=Yi.exports,Zi=function(){var t=this,e=t._self._c;return e("span",[t.editable&&["write","updateonly"].includes(t.schema.access)?e("Item",{attrs:{formModel:t.editRow,prop:t.schema.name,schema:t.schema,params:{},labelType:!1},on:{change:function(e){return t.$emit("change",e)},fill:function(e){return t.$emit("fill",e)}},model:{value:t.editValue,callback:function(e){t.editValue=e},expression:"editValue"}}):t.component?e(t.component,t._b({tag:"component",attrs:{text:t.text}},"component",t.$props,!1)):t.script?e("span",{domProps:{innerHTML:t._s(t.text)}}):"title"===t.schema.display?e("a",{on:{click:function(e){return t.$emit("profile")}}},[t._v(" "+t._s(t.text)+" ")]):e("span",[t._v(t._s(t.text))])],1)},Xi=[];function Ji(t){return Ji="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ji(t)}function Qi(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function ta(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Qi(Object(r),!0).forEach((function(e){ea(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Qi(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function ea(t,e,r){return e=ra(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ra(t){var e=na(t,"string");return"symbol"===Ji(e)?e:String(e)}function na(t,e){if("object"!==Ji(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Ji(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var oa={mixins:[Or],components:{Item:ki},props:["editable","value","row","schema","mode","viewURL","idName","vid","rowIndex"],data:function(){return{component:null,script:null,editValue:this.value}},computed:{text:function(){return this.formatter(this.row,this.value,this.schema)},editRow:function(){return ta({},this.row)}},created:function(){var t=this;if(this.schema&&this.schema.format){var e=this.schema.format.slice(0,8);"function"===e?this.script=this.schema.format:this.component={props:["editable","value","row","schema","mode","viewURL","idName","text","vid","rowIndex"],data:function(){return{model:{}}},methods:{profile:function(){t.$emit("profile")}},template:"title"===this.schema.display?'<a @click="profile">'.concat(this.schema.format,"</a> "):this.schema.format}}},watch:{value:function(t,e){t!==e&&(this.editValue=t)},editable:function(t){t&&this.editValue!==this.editRow[this.schema.name]&&(this.editValue=this.editRow[this.schema.name])}}},ia=oa,aa=Lr(ia,Zi,Xi,!1,null,null,null),ca=aa.exports;function sa(t){return sa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sa(t)}function ua(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function la(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ua(Object(r),!0).forEach((function(e){fa(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ua(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function fa(t,e,r){return e=ha(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ha(t){var e=pa(t,"string");return"symbol"===sa(e)?e:String(e)}function pa(t,e){if("object"!==sa(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==sa(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var da={mixins:[Gt,zt,ye,br,Or,ce,se],components:la(la(la({},qr),bh),{},{FilterForm:Li,ActionGroup:Ri,ActionView:Gi,PaginationSize:Wi,Popup:wi,Cell:ca})},ya=da,va=(r("ca3b"),Lr(ya,Vt,Ut,!1,null,null,null)),ma=va.exports,ga=function(){var t=this,e=t._self._c;return e("a-spin",{attrs:{spinning:t.actioning}},[e(t.layout,{tag:"component",scopedSlots:t._u([{key:"actions-none",fn:function(){return[t.routeId?e("ActionGroup",{attrs:{actions:t.backActions},on:{action:t.handleAction}}):t._e(),t.navActions.length?e("ActionGroup",{attrs:{actions:t.navActions},on:{action:t.handleAction}}):t._e()]},proxy:!0},t.actions.length?{key:"actions-single",fn:function(){return[e("ActionGroup",{attrs:{actions:t.actions},on:{action:t.handleAction}})]},proxy:!0}:null,{key:"actions-setting",fn:function(){return[e("ActionGroup",{attrs:{actions:t.settingActions},on:{action:t.handleAction}})]},proxy:!0}],null,!0)},[e("a-spin",{staticStyle:{width:"100%"},attrs:{spinning:!t.profile}},[t.profile?e("profile-".concat(t.configs["profile.widget"]||"normal"),{tag:"component",attrs:{groups:t.groups,columns:t.columns,subviews:t.subviews,loading:t.loading,profile:t.profile,column:t.parentIds?1:2,configs:t.configs},scopedSlots:t._u([{key:"cell",fn:function(r){var n=r.value,o=r.column;return[e("Cell",{attrs:{row:t.profile,schema:o,value:n}})]}},{key:"action",fn:function(){return[e("ActionGroup",{attrs:{actions:t.actions},on:{action:t.handleAction}})]},proxy:!0}],null,!1,1366521354)}):t._e()],1),t.actionViewVisible?e("Popup",{class:{"ant-modal-tip":t.actionParams.actionViewTip},attrs:{visible:t.actionViewVisible,title:t.action.name,type:t.actionViewMode,okButtonProps:t.actionOkButtonProps,cancelButtonProps:t.actionCancelButtonProps,footer:"hide"===t.actionParams.footer?null:void 0},on:{ok:t.submitActionView,close:t.closeActionView,cancel:t.closeActionView}},[t.actionViewVisible?e("ActionView",{attrs:{action:t.action,submited:t.actionSubmited,values:t.actionModel,modelViewType:t.actionViewType,widget:t.actionViewWidget,parentIds:t.parentIds,params:t.actionParams,selections:t.profile,schema:t.schema,commitResult:t.actionCommitResult},on:{commit:t.commitActionView}}):t._e(),t.action.params&&t.action.params.autofill?e("a-row",{attrs:{slot:"footer",type:"flex",justify:"space-between",align:"middle"},slot:"footer"},[e("a-col",[e("a-checkbox",{on:{change:t.handleAutoFill}},[t._v(" 自动填充表单 ")])],1),e("a-col",[e("a-space",[e("a-button",{attrs:{icon:"close",disabled:t.committing},on:{click:t.closeActionView}},[t._v(" 取消 ")]),e("a-button",{attrs:{type:"primary",icon:"check",loading:t.committing},on:{click:t.submitActionView}},[t._v(" 确认 ")])],1)],1)],1):t._e()],1):t._e()],1)],1)},ba=[];function wa(t){return wa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wa(t)}function _a(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_a=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(L){s=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var i=e&&e.prototype instanceof h?e:h,a=Object.create(i.prototype),c=new E(o||[]);return n(a,"_invoke",{value:_(t,r,c)}),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(L){return{type:"throw",arg:L}}}t.wrap=u;var f={};function h(){}function p(){}function d(){}var y={};s(y,i,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(S([])));m&&m!==e&&r.call(m,i)&&(y=m);var g=d.prototype=h.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,c){var s=l(t[n],t,i);if("throw"!==s.type){var u=s.arg,f=u.value;return f&&"object"==wa(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return o("throw",t,a,c)}))}c(s.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function _(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=x(a,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=l(t,e,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=l(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function S(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return p.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:p,configurable:!0}),p.displayName=s(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,s(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),s(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),s(g,c,"Generator"),s(g,i,(function(){return this})),s(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=S,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:S(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function xa(t,e,r,n,o,i,a){try{var c=t[i](a),s=c.value}catch(u){return void r(u)}c.done?e(s):Promise.resolve(s).then(n,o)}function Oa(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){xa(i,n,o,a,c,"next",t)}function c(t){xa(i,n,o,a,c,"throw",t)}a(void 0)}))}}var ka={props:{profileId:{type:String},values:{type:Object},hasList:{type:Boolean,default:!0},editMode:{type:String,default:"none",enum:["none","item","action","default"]},tileMode:{type:String,enum:["normal","portal","navigation"]},groupMode:{type:String,enum:["layout","tabs","steps"]},groupLayout:{type:String,enum:["horizontal","vertical"]},detailGroupName:{type:String,default:"详情"},detailLayout:{type:String,enum:["header","first-group","mix"]},layout:{type:String,default:"layout-view-model-list"}},data:function(){return{setProfileID:null,routeId:null,unwatchRoute:null}},computed:{columns:function(){var t=this.model.attrs.filter((function(t){return!["all"].includes(t.hidden)&&"model"!==t.metaType&&"link"!==t.type}));return t},subviews:function(){var t=this;return this.model.attrs.filter((function(e){var r=e.params,n=void 0===r?{}:r,o=n.show;return!["all"].includes(e.hidden)&&["collection","link"].includes(e.type)&&(!o||me(o,t.profile))}))},groups:function(){var t=[];return this.columns.forEach((function(e,r){var n=t.length-1;e.group||!r?t.push({name:e.group,columns:[e]}):t[n].columns.push(e)})),t},layouts:function(){},id:function(){var t=this.values,e=this.idName,r=this.profileId,n=this.routeId,o=this.findAll;return t?t[e]:r||n||o[0]&&o[0][e]},profile:function(){var t=this.values||this.findOne(this.id)||null;return this.params.$parent&&(t.$parent=this.params.$parent),t},next:function(){var t=this,e=this.findAll.findIndex((function(e){return e[t.idName]===t.id}));return this.findAll[e+1]},previous:function(){var t=this,e=this.findAll.findIndex((function(e){return e[t.idName]===t.id}));return this.findAll[e-1]},backActions:function(){return[{key:"_back",name:"返回",icon:"left",action:"list"}]}},methods:{showColumn:function(){},navigationTo:function(t){this.parentIds||"page"!==this.mode?this.$emit("profile",t):this.$router.replace({params:{id:t[this.idName]}})},handleNext:function(){this.next&&this.navigationTo(this.next)},handlePrevious:function(){this.previous&&this.navigationTo(this.previous)},handleList:function(){this.parentIds||"page"!==this.mode?this.$emit("close"):this.$router.replace(this.$route.meta.key)},load:function(){var t=arguments,e=this;return Oa(_a().mark((function r(){var n,o,i;return _a().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return n=t.length>0&&void 0!==t[0]&&t[0],r.next=3,e.loadData({key:e.id,mute:n});case 3:if(o=r.sent,!(o instanceof Error)){r.next=8;break}return i=o.response.data.code,404===i&&e.handleBack(),r.abrupt("return");case 8:return r.abrupt("return",o);case 9:case"end":return r.stop()}}),r)})))()}},created:function(){this.routeId=this.$route.params.id},activated:function(){var t=this;this.routeId=this.$route.params.id,!this.profile&&this.id&&this.load(),this.unwatchRoute=this.$watch("$route.params.id",(function(e){t.routeId=e}))},deactivated:function(){this.unwatchRoute&&this.unwatchRoute()}};function Ea(t){return Pa(t)||La(t)||ja(t)||Sa()}function Sa(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function ja(t,e){if(t){if("string"===typeof t)return Na(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Na(t,e):void 0}}function La(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function Pa(t){if(Array.isArray(t))return Na(t)}function Na(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Aa=function(){var t=this,e=t._self._c;return e("div",[e("a-spin",{attrs:{spinning:t.loading}},t._l(t.groups,(function(r,n){return e("Descriptions",{key:"g-".concat(n),staticClass:"profile-normal-descriptions",staticStyle:{"margin-bottom":"16px"},attrs:{column:t.column,size:"small",bordered:"",profile:""}},[r.name?e("div",{attrs:{slot:"title"},slot:"title"},[e("strong",[t._v(t._s(r.name))])]):t._e(),t._l(r.columns,(function(r,o){return[!t.collapse||t.showDescItems["showDescItem".concat(n)]||o<t.collapse?e("DescriptionsItem",{key:r.name,attrs:{span:r.column?r.column/12:1,label:r.alias||r.name,tooltip:r.legend}},[t._t("cell",null,{value:t.profile[r.name],column:r})],2):t._e()]})),t.collapse?e("div",{staticStyle:{"text-align":"center"},attrs:{slot:"footer"},slot:"footer"},[e("a",{staticClass:"showdesc-btn",on:{click:function(e){t.showDescItems["showDescItem".concat(n)]=!t.showDescItems["showDescItem".concat(n)]}}},[e("a-icon",{attrs:{type:t.showDescItems["showDescItem".concat(n)]?"double-left":"double-right"}})],1)]):t._e()],2)})),1),t.tabs.length?e("a-card",{attrs:{size:"small",type:"inner"}},[e("a-tabs",{attrs:{animated:!1,"default-active-key":t.activeTabKey,size:"small"},on:{change:t.handleChange}},t._l(t.tabs,(function(r,n){return e("a-tab-pane",{key:String(n),attrs:{tab:r.tab}},["link"===r.type?e("Frame",{attrs:{url:t.templateURL(r.value,t.profile),height:t.iframeHeight(r.value)}}):e("keep-alive",[e(t.Views[n],{tag:"component",attrs:{layout:"layout-view-model-list-embed",parentIds:[].concat(Ea(t.parentIds||[]),[t.id]),pageKey:t.pageKey,viewKey:r.name,params:{$parent:t.profile}}})],1)],1)})),1)],1):t._e()],1)},Ta=[],Ca={DESCRIPTIONS_ITEM:!0,props:{label:String,span:{type:Number,default:1},align:{type:String,default:"left"},tooltip:{type:String,default:""}},render:function(){return this.$slots.default},renderError:function(){}},Ia=function(){var t=this,e=t._self._c;return e("tr",{staticClass:"ant-descriptions-row"},[t._t("default")],2)},Ma=[],Da={},qa=Da,Ra=Lr(qa,Ia,Ma,!1,null,null,null),Ba=Ra.exports;function Fa(t){return Fa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fa(t)}function $a(t,e,r){return e=Va(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Va(t){var e=Ua(t,"string");return"symbol"===Fa(e)?e:String(e)}function Ua(t,e){if("object"!==Fa(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Fa(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var Ga=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=[],n=[],o=e,i=t.filter((function(t){var e=t.componentOptions||{Ctor:{}},r=e.Ctor.options;return!!r&&r.DESCRIPTIONS_ITEM}));return i.forEach((function(t,a){var c=t.componentOptions.propsData.span||1;if(a===i.length-1)return n.push(t),void r.push(n);c<o?(o-=c,n.push(t)):(n.push(t),r.push(n),o=e,n=[])})),r},za={DescriptionsItem:Ca,components:{Row:Ba},props:{title:String,bordered:{type:Boolean,default:!1},column:{type:[Number,Object],default:3},size:{type:[Boolean,String],default:!1,enum:["default","middle","small"]},layout:{type:String,default:"horizontal",enum:["horizontal","vertical"]},inline:{type:Boolean,default:!0},colon:{type:Boolean,default:!0},profile:{type:Boolean,default:!1}},render:function(t){var e,r=this.title,n=this.bordered,o=this.size,i=this.colon,a=this.layout,c=this.inline,s=this.column,u=this.$slots,l=this.profile,f=Ga(u.default,s);return t("div",{class:(e={"ant-descriptions":!0},$a(e,"ant-descriptions-".concat(o),!0),$a(e,"ant-descriptions-bordered",!!n),$a(e,"ant-descriptions-profile",!!l),e)},[r&&t("div",{class:"ant-descriptions-title"},[r]),!r&&u.title&&t("div",{class:"ant-descriptions-title"},[u.title]),t("div",{class:"ant-descriptions-view"},[t("table",[t("tbody",[f.map((function(e){return"vertical"===a?[t(Ba,[" ",e.map((function(e){var r=e.componentOptions.propsData,n=r.span,o=r.label,i=r.align,a=r.tooltip;return t("th",{class:"ant-descriptions-item-label",style:{"text-align":i},attrs:{colSpan:n}},a?[o,t("a-tooltip",{attrs:{placement:"right"}},[t("template",{slot:"title"},[t("span",[a])]),t("a-icon",{attrs:{theme:"filled",type:"question-circle"},style:"margin-left:8px;color:#d8d8d8;"})])]:[o])}))," "]),t(Ba,[" ",e.map((function(e){var r=e.componentOptions.propsData,n=r.span,o=r.align;return t("td",{class:"ant-descriptions-item-content",style:{"text-align":o,"white-space":"pre-wrap"},attrs:{colSpan:n}},[e])}))," "])]:t(Ba,[" ",e.map((function(e){var r=e.componentOptions.propsData,o=r.label,a=r.span,s=r.align,u=r.tooltip;return n||!c?[t("th",{class:"ant-descriptions-item-label"},u?[o,t("a-tooltip",{attrs:{placement:"right"}},[t("template",{slot:"title"},[t("span",[u])]),t("a-icon",{attrs:{theme:"filled",type:"question-circle"},style:"margin-left:8px;color:#d8d8d8;"})])]:[o]),t("td",{class:"ant-descriptions-item-content",style:{"text-align":s,"white-space":"pre-wrap"},attrs:{colSpan:a?2*a-1:""}},[e])]:t("td",{class:"ant-descriptions-item",attrs:{colSpan:a},style:{"text-align":s}},u?[t("span",{class:{"ant-descriptions-item-label":!0,"ant-descriptions-item-colon":i}},[o,t("a-tooltip",{attrs:{placement:"right"}},[t("template",{slot:"title"},[t("span",[u])]),t("a-icon",{attrs:{theme:"filled",type:"question-circle"},style:"margin-left:8px;color:#d8d8d8;"})])]),t("span",{class:"ant-descriptions-item-content",style:"white-space:pre-wrap"},[e])]:[t("span",{class:{"ant-descriptions-item-label":!0,"ant-descriptions-item-colon":i}},[o]),t("span",{class:"ant-descriptions-item-content",style:"white-space:pre-wrap"},[e])])}))," "])}))])])]),u.footer&&t("div",[u.footer])])},renderError:function(){}},Ka=function(){var t=this,e=t._self._c;return e("a-spin",{attrs:{spinning:t.loading,delay:50}},[e("iframe",{style:{height:t.height},attrs:{frameborder:"0",src:"".concat(t.url),width:"100%"},on:{load:t.handleLoad}})])},Ha=[],Ya={props:{url:String,query:Object,height:{type:[Number,String],default:"100vh"}},data:function(){return{loading:!0}},methods:{handleLoad:function(){this.loading=!1,this.$emit("load")}}},Wa=Ya,Za=Lr(Wa,Ka,Ha,!1,null,null,null),Xa=Za.exports;function Ja(t){return Ja="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ja(t)}function Qa(t){return nc(t)||rc(t)||ec(t)||tc()}function tc(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function ec(t,e){if(t){if("string"===typeof t)return oc(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?oc(t,e):void 0}}function rc(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function nc(t){if(Array.isArray(t))return oc(t)}function oc(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function ic(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function ac(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ic(Object(r),!0).forEach((function(e){cc(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ic(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function cc(t,e,r){return e=sc(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function sc(t){var e=uc(t,"string");return"symbol"===Ja(e)?e:String(e)}function uc(t,e){if("object"!==Ja(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Ja(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var lc,fc,hc=za.DescriptionsItem,pc={components:ac({Descriptions:za,DescriptionsItem:hc,Frame:Xa},bh),inject:["page","view"],props:{groups:{type:Array},columns:{type:Array},subviews:{type:Array},profile:{type:Object},column:{type:[Number,Object],default:2},loading:{type:Boolean,default:!1}},data:function(){return{activeTabKey:"0",views:Qa(this.subviews),id:this.view.id,parentIds:this.view.parentIds&&Qa(this.view.parentIds),storeNamespace:this.view.storeNamespace,pageKey:this.page.pageKey,showDescItems:{}}},methods:{handleChange:function(t){this.activeTabKey=t},templateURL:function(t,e){return be(t,e)},iframeHeight:function(t){var e;if(t&&t.split("?")[1]){var r=t.split("?")[1].split("&").find((function(t){return t.includes("height")}))||void 0;r&&(e=r.split("=")[1])}return e}},created:function(){var t=this;if(this.groups.length&&this.collapse&&this.groups.forEach((function(e,r){t.$set(t.showDescItems,"showDescItem".concat(r),!1)})),this.$route.query&&this.$route.query.activeTabKey){var e=this.tabs.find((function(e){return e.name===t.$route.query.activeTabKey}));e&&(this.activeTabKey=e.key)}},computed:{tabs:function(){return this.views.map((function(t,e){return ac(ac({},t),{},{key:String(e),tab:t.alias||t.name})}))},Views:function(){var t=this;return this.views.map((function(e){return{extends:$t(bh.ModelList)("".concat(t.storeNamespace,"/:id/").concat(e.name))}}))},collapse:function(){return this.view.configs["profile.collapse"]?Number(this.view.configs["profile.collapse"]):null}},watch:{profile:function(){this.views=Qa(this.subviews),this.id=this.view.id}}},dc=pc,yc=(r("5dd0"),Lr(dc,Aa,Ta,!1,null,null,null)),vc=yc.exports,mc={},gc=Lr(mc,lc,fc,!1,null,null,null),bc=gc.exports;function wc(t){return kc(t)||Oc(t)||xc(t)||_c()}function _c(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function xc(t,e){if(t){if("string"===typeof t)return Ec(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ec(t,e):void 0}}function Oc(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function kc(t){if(Array.isArray(t))return Ec(t)}function Ec(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Sc=function(){var t=this,e=t._self._c;return e("a-row",[t.view.configs["profile.tile.hideAnchor"]?t._e():e("a-col",{attrs:{span:3}},[e("a-anchor",{attrs:{affix:t.affix,getContainer:t.getContainer,offsetTop:t.view.configs["profile.tile.offsetTop"]&&Number(t.view.configs["profile.tile.offsetTop"])||0},on:{change:t.handleChange,click:t.handleClick}},[t._l(t.groups,(function(t,r){return e("a-anchor-link",{key:"anchor-g-".concat(r),attrs:{href:"#profile-tile-group-".concat(r),title:t.name}})})),t._l(t.tabs,(function(t,r){return e("a-anchor-link",{key:"anchor-t-".concat(r),attrs:{href:"#profile-tile-tab-".concat(r),title:t.tab}})}))],2)],1),e("a-col",{attrs:{span:t.view.configs["profile.tile.hideAnchor"]?24:21}},[e("a-spin",{attrs:{spinning:t.loading}},t._l(t.groups,(function(r,n){return e("a-card",{key:"g-".concat(n),staticClass:"gs-card",attrs:{size:"small",id:"profile-tile-group-".concat(n),title:r.name,bordered:!1,headStyle:{borderBottom:0}}},[t._e(),e("Descriptions",{staticStyle:{"margin-bottom":"16px"},attrs:{column:t.column,size:"small",bordered:"",profile:""}},[t._l(r.columns,(function(r,o){return[!t.collapse||t.showDescItems["showDescItem".concat(n)]||o<t.collapse?e("DescriptionsItem",{key:r.name,attrs:{span:r.column?r.column/12:1,label:r.alias||r.name,tooltip:r.legend}},[t._t("cell",null,{value:t.profile[r.name],column:r})],2):t._e()]})),t.collapse?e("div",{staticStyle:{"text-align":"center"},attrs:{slot:"footer"},slot:"footer"},[e("a",{staticClass:"showdesc-btn",on:{click:function(e){t.showDescItems["showDescItem".concat(n)]=!t.showDescItems["showDescItem".concat(n)]}}},[e("a-icon",{attrs:{type:t.showDescItems["showDescItem".concat(n)]?"double-left":"double-right"}})],1)]):t._e()],2)],1)})),1),t._l(t.tabs,(function(r,n){return e("a-card",{key:String(n),staticClass:"gs-card",attrs:{tab:r.tab,size:"small",id:"profile-tile-tab-".concat(n),title:r.tab,bordered:!1,headStyle:{borderBottom:0}}},["link"===r.type?e("Frame",{attrs:{url:t.templateURL(r.value,t.profile),height:t.iframeHeight(r.value)}}):e("keep-alive",[e(t.Views[n],{tag:"component",attrs:{layout:"layout-view-model-list-embed",parentIds:[].concat(wc(t.parentIds||[]),[t.id]),pageKey:t.pageKey,viewKey:r.name,params:{$parent:t.profile}}})],1)],1)}))],2)],1)},jc=[];function Lc(t){return Lc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Lc(t)}function Pc(t){return Cc(t)||Tc(t)||Ac(t)||Nc()}function Nc(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Ac(t,e){if(t){if("string"===typeof t)return Ic(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ic(t,e):void 0}}function Tc(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function Cc(t){if(Array.isArray(t))return Ic(t)}function Ic(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Mc(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Dc(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Mc(Object(r),!0).forEach((function(e){qc(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Mc(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function qc(t,e,r){return e=Rc(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Rc(t){var e=Bc(t,"string");return"symbol"===Lc(e)?e:String(e)}function Bc(t,e){if("object"!==Lc(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Lc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var Fc=za.DescriptionsItem,$c={components:Dc({Descriptions:za,DescriptionsItem:Fc,Frame:Xa},bh),inject:["page","view","container"],props:{groups:{type:Array},columns:{type:Array},subviews:{type:Array},profile:{type:Object},column:{type:[Number,Object],default:2},loading:{type:Boolean,default:!1}},data:function(){return{activeTabKey:"0",views:Pc(this.subviews),id:this.view.id,parentIds:this.view.parentIds&&Pc(this.view.parentIds),storeNamespace:this.view.storeNamespace,pageKey:this.page.pageKey,affix:!0,showDescItems:{}}},created:function(){var t=this;this.groups.length&&this.collapse&&this.groups.forEach((function(e,r){t.$set(t.showDescItems,"showDescItem".concat(r),!1)}))},methods:{handleChange:function(t){},templateURL:function(t,e){return be(t,e)},handleClick:function(t,e){t.preventDefault()},getContainer:function(){var t=this.container&&this.container.$refs.container;return t&&t.$el||t||window},iframeHeight:function(t){var e;if(t&&t.split("?")[1]){var r=t.split("?")[1].split("&").find((function(t){return t.includes("height")}))||void 0;r&&(e=r.split("=")[1])}return e}},computed:{tabs:function(){return this.views.map((function(t,e){return Dc(Dc({},t),{},{key:String(e),tab:t.alias||t.name})}))},Views:function(){var t=this;return this.views.map((function(e){return{extends:$t(bh.ModelList)("".concat(t.storeNamespace,"/:id/").concat(e.name))}}))},collapse:function(){return this.view.configs["profile.collapse"]?Number(this.view.configs["profile.collapse"]):null}},watch:{profile:function(){this.views=Pc(this.subviews),this.id=this.view.id}},activated:function(){this.affix=!0},deactivated:function(){this.affix=!1}},Vc=$c,Uc=(r("e41e"),Lr(Vc,Sc,jc,!1,null,null,null)),Gc=Uc.exports;function zc(t){return Wc(t)||Yc(t)||Hc(t)||Kc()}function Kc(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Hc(t,e){if(t){if("string"===typeof t)return Zc(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Zc(t,e):void 0}}function Yc(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function Wc(t){if(Array.isArray(t))return Zc(t)}function Zc(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Xc=function(){var t=this,e=t._self._c;return t.tabs.length?e("div",[t.basicAttrsColumns.length?e("Descriptions",{staticStyle:{"margin-bottom":"16px"},attrs:{column:t.column,size:"small",bordered:"",profile:""}},[t._l(t.basicAttrsColumns,(function(r){return[e("DescriptionsItem",{key:r.name,attrs:{span:r.column?r.column/12:1,label:r.alias||r.name,tooltip:r.legend}},[t._t("cell",null,{value:t.profile[r.name],column:r})],2)]}))],2):t._e(),e("a-tabs",{attrs:{animated:!1,"default-active-key":t.activeTabKey},on:{change:t.handleChange}},t._l(t.tabs,(function(r,n){return e("a-tab-pane",{key:String(n),attrs:{tab:r.tab}},["profile"===r.type?e("a-spin",{attrs:{spinning:t.loading}},t._l(t.groups,(function(r,n){return e("Descriptions",{key:"g-".concat(n),staticStyle:{"margin-bottom":"16px"},attrs:{column:t.column,size:"small",bordered:"",profile:""}},[r.name?e("div",{attrs:{slot:"title"},slot:"title"},[e("strong",[t._v(t._s(r.name))])]):t._e(),t._l(t.subAttrsColumns(r.columns),(function(r,o){return[!t.collapse||t.showDescItems["showDescItem".concat(n)]||o<t.collapse?e("DescriptionsItem",{key:r.name,attrs:{span:r.column?r.column/12:1,label:r.alias||r.name,tooltip:r.legend}},[t._t("cell",null,{value:t.profile[r.name],column:r})],2):t._e()]})),t.collapse?e("div",{staticStyle:{"text-align":"center"},attrs:{slot:"footer"},slot:"footer"},[e("a",{staticClass:"showdesc-btn",on:{click:function(e){t.showDescItems["showDescItem".concat(n)]=!t.showDescItems["showDescItem".concat(n)]}}},[e("a-icon",{attrs:{type:t.showDescItems["showDescItem".concat(n)]?"double-left":"double-right"}})],1)]):t._e()],2)})),1):"link"===r.type?e("Frame",{attrs:{url:t.templateURL(r.value,t.profile),height:t.iframeHeight(r.value)}}):e("keep-alive",[e(t.Views[n],{tag:"component",attrs:{layout:"layout-view-model-list-embed",parentIds:[].concat(zc(t.parentIds||[]),[t.id]),pageKey:t.pageKey,viewKey:r.name,params:{$parent:t.profile}}})],1)],1)})),1)],1):t._e()},Jc=[];function Qc(t){return Qc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qc(t)}function ts(t){return os(t)||ns(t)||rs(t)||es()}function es(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function rs(t,e){if(t){if("string"===typeof t)return is(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?is(t,e):void 0}}function ns(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function os(t){if(Array.isArray(t))return is(t)}function is(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function as(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function cs(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?as(Object(r),!0).forEach((function(e){ss(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):as(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function ss(t,e,r){return e=us(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function us(t){var e=ls(t,"string");return"symbol"===Qc(e)?e:String(e)}function ls(t,e){if("object"!==Qc(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Qc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var fs=za.DescriptionsItem,hs={components:cs({Descriptions:za,DescriptionsItem:fs,Frame:Xa},bh),inject:["page","view"],props:{groups:{type:Array},columns:{type:Array},subviews:{type:Array},profile:{type:Object},column:{type:[Number,Object],default:2},loading:{type:Boolean,default:!1},configs:{type:Object}},data:function(){return{activeTabKey:"0",views:[{name:"详情",type:"profile"}].concat(ts(this.subviews)),id:this.view.id,parentIds:this.view.parentIds&&ts(this.view.parentIds),storeNamespace:this.view.storeNamespace,pageKey:this.page.pageKey,showDescItems:{}}},methods:{handleChange:function(t){this.activeTabKey=t},templateURL:function(t,e){return be(t,e)},iframeHeight:function(t){var e;if(t&&t.split("?")[1]){var r=t.split("?")[1].split("&").find((function(t){return t.includes("height")}))||void 0;r&&(e=r.split("=")[1])}return e},subAttrsColumns:function(t){var e=this;return this.basicAttrs.length?t.filter((function(t){return!e.basicAttrs.includes(t.name)})):t}},created:function(){var t=this;if(this.groups.length&&this.collapse&&this.groups.forEach((function(e,r){t.$set(t.showDescItems,"showDescItem".concat(r),!1)})),this.$route.query&&this.$route.query.activeTabKey){var e=this.tabs.find((function(e){return e.name===t.$route.query.activeTabKey}));e&&(this.activeTabKey=e.key)}},computed:{tabs:function(){return this.views.map((function(t,e){return cs(cs({},t),{},{key:String(e),tab:t.alias||t.name})}))},Views:function(){var t=this;return this.views.map((function(e){return{extends:$t(bh.ModelList)("".concat(t.storeNamespace,"/:id/").concat(e.name))}}))},collapse:function(){return this.view.configs["profile.collapse"]?Number(this.view.configs["profile.collapse"]):null},basicAttrs:function(){var t=[];return this.view.configs&&this.view.configs["profile.tabs.basicAttrs"]&&(t=this.view.configs["profile.tabs.basicAttrs"].split(",")),t},basicAttrsColumns:function(){var t=this;return this.basicAttrs.length?this.columns.filter((function(e){return t.basicAttrs.includes(e.name)})):[]}},watch:{profile:function(){this.views=[{name:"详情",type:"profile"}].concat(ts(this.subviews)),this.id=this.view.id}}},ps=hs,ds=(r("540a"),Lr(ps,Xc,Jc,!1,null,null,null)),ys=ds.exports,vs={ProfileNormal:vc,ProfilePortal:bc,ProfileTile:Gc,ProfileTabs:ys};function ms(t){return ms="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ms(t)}function gs(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function bs(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?gs(Object(r),!0).forEach((function(e){ws(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):gs(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function ws(t,e,r){return e=_s(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function _s(t){var e=xs(t,"string");return"symbol"===ms(e)?e:String(e)}function xs(t,e){if("object"!==ms(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==ms(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var Os={mixins:[Gt,zt,ye,br,Or,ka],components:bs({ActionGroup:Ri,ActionView:Gi,Popup:wi,Cell:ca},vs)},ks=Os,Es=(r("a613"),Lr(ks,ga,ba,!1,null,null,null)),Ss=Es.exports,js=function(){var t=this,e=t._self._c;return e("layout-view-blank",{tag:"component"},[t.commitResult.template&&t.commitResult.data?e("a-result",{attrs:{status:"success",title:t.message}},[e(t.commitResult,{tag:"component"})],1):e(t.formWidget||t.widget,t._g(t._b({tag:"component",attrs:{action:t.action,columns:t.columns,params:t.params}},"component",t.$attrs,!1),t.$listeners))],1)},Ls=[],Ps={create:["createonly","updateonly","write","deepwrite"],update:["updateonly","write","deepwrite"]},Ns={model:{event:"change"},props:{value:{type:[Object,Array]},action:{type:Object},layout:{type:String,enum:["horizontal","vertical","inline","group"]},editType:{type:String,default:"create",enum:["create","update","bulk","save"]},submitType:{type:String,default:"submit",enum:["change","submit"]},allowUnsubmittedCache:{type:Boolean,default:!0},allowPreviousCache:{type:Boolean,default:!1},displayReadonly:{type:String,default:"none",enum:["none","readonly","all"]},isGroup:{type:Boolean,default:!1},commitResult:{type:Object},submitActions:{type:Array,default:function(){return[{name:"确定",icon:"",handle:"submit"},{name:"取消",icon:"",handle:"cancel"}]}}},created:function(){"create"===this.editType&&this.allowUnsubmittedCache&&this.getLocalStore()},computed:{columns:function(){var t=this.action,e=this.params,r=this.model,n=this.editType,o=this.hide,i=t&&t.view?t.view.model.attrs:e&&e.attrs?e.attrs:r.attrs?r.attrs:[];if(t&&t.list){var a=this.action.list.split(",");return i.filter((function(t){return!o.includes(t.name)&&a.includes(t.name)}))}return i.filter((function(t){return Ps[n].includes(t.access)&&!o.includes(t.name)&&"collection"!==t.metaType&&"model"!==t.metaType&&"link"!==t.type}))},rules:function(){},formWidget:function(){var t=Object.fromEntries(this.action.configs.map((function(t){return[t.key,t.value]})))||[],e=t["form.widget"]||this.configs["form.widget"]||null;return e}},methods:{setLocalStore:function(){},getLocalStore:function(){},reset:function(){},validate:function(){},handleChange:function(){this.$emit("change")},handleSubmit:function(){this.$emit("submited")},handleCommit:function(){this.$emit("commited")}}},As=function(){var t=this,e=t._self._c;return e("a-form-model",{ref:"form",attrs:{rules:t.rules,model:t.actionModel}},[e("a-row",{attrs:{gutter:24}},t._l(t.columns,(function(r){return e("a-col",{key:r.name,staticStyle:{"min-height":"0"},attrs:{span:r.column||12}},[e("Item",{attrs:{formModel:t.actionModel,prop:r.name,schema:r,params:t.params},on:{change:function(e){return t.handleItemChange(e,r)},fill:function(e){return t.handleItemFill(e,r)}},model:{value:t.actionModel[r.name],callback:function(e){t.$set(t.actionModel,r.name,e)},expression:"actionModel[col.name]"}})],1)})),1)],1)},Ts=[],Cs={mixins:[en],components:{Item:ki}},Is=Cs,Ms=Lr(Is,As,Ts,!1,null,null,null),Ds=Ms.exports,qs=function(){var t=this,e=t._self._c;return e("div",[e("a-upload",{attrs:{multiple:"",beforeUpload:t.beforeUpload,showUploadList:!1}},[e("a-button",[e("a-icon",{attrs:{type:"upload"}}),t._v(" 批量上传 ")],1)],1),t._l(t.fileList,(function(r,n){return e("div",{key:n,staticClass:"form-file-upload"},[e("a-row",{attrs:{type:"flex",justify:"space-between",align:"middle"}},[e("a-col",["uploading"===r.status?e("a-icon",{attrs:{type:"loading"}}):"done"===r.status?e("a-icon",{attrs:{type:"paper-clip"}}):t._e(),t._v(" "+t._s(r.file.name)+" ")],1),e("a-col",[r.status?t._e():e("a-icon",{attrs:{type:"close"},on:{click:function(e){return t.handleRemove(n)}}})],1)],1)],1)}))],2)},Rs=[];function Bs(t){return Bs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bs(t)}function Fs(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Fs=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(L){s=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var i=e&&e.prototype instanceof h?e:h,a=Object.create(i.prototype),c=new E(o||[]);return n(a,"_invoke",{value:_(t,r,c)}),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(L){return{type:"throw",arg:L}}}t.wrap=u;var f={};function h(){}function p(){}function d(){}var y={};s(y,i,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(S([])));m&&m!==e&&r.call(m,i)&&(y=m);var g=d.prototype=h.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,c){var s=l(t[n],t,i);if("throw"!==s.type){var u=s.arg,f=u.value;return f&&"object"==Bs(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return o("throw",t,a,c)}))}c(s.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function _(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=x(a,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=l(t,e,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=l(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function S(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return p.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:p,configurable:!0}),p.displayName=s(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,s(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),s(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),s(g,c,"Generator"),s(g,i,(function(){return this})),s(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=S,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:S(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function $s(t,e,r,n,o,i,a){try{var c=t[i](a),s=c.value}catch(u){return void r(u)}c.done?e(s):Promise.resolve(s).then(n,o)}function Vs(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){$s(i,n,o,a,c,"next",t)}function c(t){$s(i,n,o,a,c,"throw",t)}a(void 0)}))}}var Us={mixins:[en],data:function(){return{fileList:[]}},methods:{handleRemove:function(t){var e=this.fileList.slice();e.splice(t,1),this.fileList=e},beforeUpload:function(t){return this.fileList.push({file:t,status:""}),!1},handleSubmit:function(){var t=this;return Vs(Fs().mark((function e(){var r;return Fs().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(r=t.view.view.selections,0!==t.fileList.length){e.next=3;break}return e.abrupt("return",t.$message.error("请选择文件"));case 3:if(!(r&&r.length>1)){e.next=5;break}return e.abrupt("return",t.$message.error("请选择一条文件进行上传"));case 5:t.handleCommit();case 6:case"end":return e.stop()}}),e)})))()},handleCommit:function(){var t=this;return Vs(Fs().mark((function e(){var r,n,o,i,a,c,s,u,l,f,h,p;return Fs().wrap((function(e){while(1)switch(e.prev=e.next){case 0:p=function(){return p=Vs(Fs().mark((function t(e){var r,p,d;return Fs().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.status="uploading",r=o.key,p=o.method,d=new FormData,d.append("file",e.file),a&&d.append("data[".concat(i,"]"),a[i]),t.next=7,n({data:d,key:r,method:p,mute:!0});case 7:f++,e.status="done",f>=l.length?(c(),s(),u.success("上传完成")):h(l[f]);case 10:case"end":return t.stop()}}),t)}))),p.apply(this,arguments)},h=function(t){return p.apply(this,arguments)},r=t.view.view,n=r.saveData,o=r.action,i=r.idName,a=r.actionModel,c=r.closeActionView,s=r.load,u=r.$message,l=t.fileList,f=0,h(l[f]);case 6:case"end":return e.stop()}}),e)})))()}}},Gs=Us,zs=Lr(Gs,qs,Rs,!1,null,null,null),Ks=zs.exports,Hs=function(){var t=this,e=t._self._c;return e("Picker",t._g(t._b({attrs:{viewKey:t.action.key||t.action.method.toLowerCase(),schema:t.action,params:{filters:t.pickerFilter},pickerMode:t.pickerMode},on:{selected:t.handleViewPickerSelected}},"Picker",t.$attrs,!1),t.$listeners))},Ys=[];function Ws(t){return Ws="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ws(t)}function Zs(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Xs(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Zs(Object(r),!0).forEach((function(e){Js(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Zs(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Js(t,e,r){return e=Qs(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Qs(t){var e=tu(t,"string");return"symbol"===Ws(e)?e:String(e)}function tu(t,e){if("object"!==Ws(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Ws(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var eu={mixins:[en],components:{Picker:si},computed:{pickerFilter:function(){var t=this.action.params,e=t&&t.filters,r={};if(!e)return null;for(var n in e){var o=e[n].split(".").reduce((function(t,e){return t&&t[e]||void 0}),Xs(Xs({},this.params),this.actionModel));r[n]=void 0===o?e[n]:o}return r},pickerMode:function(){var t=this.action.params,e=void 0===t?{}:t,r=e.multiple,n=e.pickerMode;return"none"===n?null:r?"multiple":"single"}},methods:{handleSubmit:function(){if(!this.actionModel||!this.actionModel.length)return this.$message.error("请选择数据");this.handleCommit()},handleViewPickerSelected:function(t){var e=this.configs["picker.view.value"],r=e;this.actionModel=r?t.map((function(t){return Js({},r,t[e])})):t}}},ru=eu,nu=Lr(ru,Hs,Ys,!1,null,null,null),ou=nu.exports,iu=function(){var t=this,e=t._self._c;return e("div",[e("a-steps",{attrs:{current:t.current}},t._l(t.steps,(function(r){return e("a-step",{key:r.title,attrs:{title:r.title}},["核心解读"===r.title?e("a-badge",{attrs:{slot:"subTitle","number-style":t.badgeStyle,count:t.algorithmCount.coreAlgorithmCount},slot:"subTitle"}):t._e(),"描述解读"===r.title?e("a-badge",{attrs:{slot:"subTitle","number-style":t.badgeStyle,count:t.algorithmCount.describeAlgorithmCount},slot:"subTitle"}):t._e(),"排盘数据"===r.title?e("a-badge",{attrs:{slot:"subTitle","number-style":t.badgeStyle,count:t.algorithmCount.paipanDataCount},slot:"subTitle"}):t._e(),"术数分析"===r.title?e("a-badge",{attrs:{slot:"subTitle","number-style":t.badgeStyle,count:t.algorithmCount.surgeryAnalysisCount},slot:"subTitle"}):t._e()],1)})),1),Object.keys(t.algorithmList).length&&t.current<t.steps.length-1?e("div",{staticClass:"algorithm-preview"},[e("strong",[t._v("算法集合预览:")]),t._v(t._s(t.algorithmList)+" ")]):t._e(),e("a-spin",{attrs:{spinning:t.loading}},[0===t.current?e("div",{staticClass:"steps-content"},[e("a-input",{staticStyle:{margin:"0 16px 16px 0",width:"200px"},attrs:{placeholder:"输入算法标题搜索",allowClear:""},model:{value:t.nameKeyword,callback:function(e){t.nameKeyword="string"===typeof e?e.trim():e},expression:"nameKeyword"}}),e("a-input",{staticStyle:{margin:"0 16px 16px 0",width:"200px"},attrs:{placeholder:"输入算法编号算法",allowClear:""},model:{value:t.codeKeyword,callback:function(e){t.codeKeyword="string"===typeof e?e.trim():e},expression:"codeKeyword"}}),e("a-button",{attrs:{type:"primary"},on:{click:t.onSearch}},[t._v(" 搜索 ")]),t.algorithmData.length?[e("a-tabs",{attrs:{defaultActiveKey:"".concat(t.algorithmData[0].children[0].name,"0"),"tab-position":"left"}},t._l(t.algorithmData[0].children,(function(r,n){return e("a-tab-pane",{key:r.name+n.toString()},[e("span",{attrs:{slot:"tab"},slot:"tab"},[t._v(" "+t._s(r.name)+" "),e("a-badge",{staticStyle:{"margin-left":"4px"},attrs:{"number-style":t.badgeStyle,count:t.algorithmTotal(r.children)}})],1),e("CheckboxGroup",{attrs:{title:r.name,data:r.children,defaultCheckedList:t.defaultCheckedList},on:{change:function(e){return t.handleChange(e,t.steps[t.current].title,r.name,n)}}})],1)})),1)]:e("a-empty")],2):t._e(),1===t.current?e("div",{staticClass:"steps-content"},[e("a-input",{staticStyle:{margin:"0 16px 16px 0",width:"200px"},attrs:{placeholder:"输入算法标题搜索",allowClear:""},model:{value:t.nameKeyword,callback:function(e){t.nameKeyword="string"===typeof e?e.trim():e},expression:"nameKeyword"}}),e("a-input",{staticStyle:{margin:"0 16px 16px 0",width:"200px"},attrs:{placeholder:"输入算法编号算法",allowClear:""},model:{value:t.codeKeyword,callback:function(e){t.codeKeyword="string"===typeof e?e.trim():e},expression:"codeKeyword"}}),e("a-button",{attrs:{type:"primary"},on:{click:t.onSearch}},[t._v(" 搜索 ")]),t.algorithmData.length?[e("a-tabs",{attrs:{defaultActiveKey:"".concat(t.algorithmData[0].children[0].name,"0"),"tab-position":"left"}},t._l(t.algorithmData[0].children,(function(r,n){return e("a-tab-pane",{key:r.name+n.toString()},[e("span",{attrs:{slot:"tab"},slot:"tab"},[t._v(" "+t._s(r.name)+" "),e("a-badge",{staticStyle:{"margin-left":"4px"},attrs:{"number-style":t.badgeStyle,count:t.algorithmTotal(r.children)}})],1),e("CheckboxGroup",{attrs:{title:r.name,data:r.children,defaultCheckedList:t.defaultCheckedList},on:{change:function(e){return t.handleChange(e,t.steps[t.current].title,r.name,n)}}})],1)})),1)]:e("a-empty")],2):t._e(),2===t.current?e("div",{staticClass:"steps-content"},[e("a-input",{staticStyle:{margin:"0 16px 16px 0",width:"200px"},attrs:{placeholder:"输入算法标题搜索",allowClear:""},model:{value:t.nameKeyword,callback:function(e){t.nameKeyword="string"===typeof e?e.trim():e},expression:"nameKeyword"}}),e("a-input",{staticStyle:{margin:"0 16px 16px 0",width:"200px"},attrs:{placeholder:"输入算法编号算法",allowClear:""},model:{value:t.codeKeyword,callback:function(e){t.codeKeyword="string"===typeof e?e.trim():e},expression:"codeKeyword"}}),e("a-button",{attrs:{type:"primary"},on:{click:t.onSearch}},[t._v(" 搜索 ")]),t.algorithmData.length?[e("a-tabs",{attrs:{defaultActiveKey:"".concat(t.algorithmData[0].children[0].name,"0"),"tab-position":"left"}},t._l(t.algorithmData[0].children,(function(r,n){return e("a-tab-pane",{key:r.name+n.toString()},[e("span",{attrs:{slot:"tab"},slot:"tab"},[t._v(" "+t._s(r.name)+" "),e("a-badge",{staticStyle:{"margin-left":"4px"},attrs:{"number-style":t.badgeStyle,count:t.algorithmTotal(r.children)}})],1),e("CheckboxGroup",{attrs:{title:r.name,data:r.children,defaultCheckedList:t.defaultCheckedList},on:{change:function(e){return t.handleChange(e,t.steps[t.current].title,r.name,n)}}})],1)})),1)]:e("a-empty")],2):t._e(),3===t.current?e("div",{staticClass:"steps-content"},[e("a-input",{staticStyle:{margin:"0 16px 16px 0",width:"200px"},attrs:{placeholder:"输入算法标题搜索",allowClear:""},model:{value:t.nameKeyword,callback:function(e){t.nameKeyword="string"===typeof e?e.trim():e},expression:"nameKeyword"}}),e("a-input",{staticStyle:{margin:"0 16px 16px 0",width:"200px"},attrs:{placeholder:"输入算法编号算法",allowClear:""},model:{value:t.codeKeyword,callback:function(e){t.codeKeyword="string"===typeof e?e.trim():e},expression:"codeKeyword"}}),e("a-button",{attrs:{type:"primary"},on:{click:t.onSearch}},[t._v(" 搜索 ")]),t.algorithmData.length?[e("a-tabs",{attrs:{defaultActiveKey:"".concat(t.algorithmData[0].children[0].name,"0"),"tab-position":"left"}},t._l(t.algorithmData[0].children,(function(r,n){return e("a-tab-pane",{key:r.name+n.toString()},[e("span",{attrs:{slot:"tab"},slot:"tab"},[t._v(" "+t._s(r.name)+" "),e("a-badge",{staticStyle:{"margin-left":"4px"},attrs:{"number-style":t.badgeStyle,count:t.algorithmTotal(r.children)}})],1),e("CheckboxGroup",{attrs:{title:r.name,data:r.children,defaultCheckedList:t.defaultCheckedList},on:{change:function(e){return t.handleChange(e,t.steps[t.current].title,r.name,n)}}})],1)})),1)]:e("a-empty")],2):t._e(),4===t.current?e("div",{staticClass:"steps-content"},[e("AlgorithmForm",{attrs:{algorithmList:t.algorithmList},on:{close:function(e){return t.$emit("close")}}})],1):t._e()]),e("div",{staticClass:"steps-action"},[t.current>0?e("a-button",{staticStyle:{"margin-right":"8px"},on:{click:t.prev}},[t._v(" 上一步 ")]):t._e(),t.current<t.steps.length-1?e("a-button",{attrs:{type:"primary"},on:{click:t.next}},[t._v(" 下一步 ")]):t._e()],1)],1)},au=[];function cu(t){return cu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},cu(t)}function su(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */su=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(L){s=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var i=e&&e.prototype instanceof h?e:h,a=Object.create(i.prototype),c=new E(o||[]);return n(a,"_invoke",{value:_(t,r,c)}),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(L){return{type:"throw",arg:L}}}t.wrap=u;var f={};function h(){}function p(){}function d(){}var y={};s(y,i,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(S([])));m&&m!==e&&r.call(m,i)&&(y=m);var g=d.prototype=h.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,c){var s=l(t[n],t,i);if("throw"!==s.type){var u=s.arg,f=u.value;return f&&"object"==cu(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return o("throw",t,a,c)}))}c(s.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function _(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=x(a,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=l(t,e,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=l(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function S(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return p.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:p,configurable:!0}),p.displayName=s(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,s(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),s(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),s(g,c,"Generator"),s(g,i,(function(){return this})),s(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=S,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:S(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function uu(t,e,r,n,o,i,a){try{var c=t[i](a),s=c.value}catch(u){return void r(u)}c.done?e(s):Promise.resolve(s).then(n,o)}function lu(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){uu(i,n,o,a,c,"next",t)}function c(t){uu(i,n,o,a,c,"throw",t)}a(void 0)}))}}var fu={namespaced:!0,state:{loading:!1,data:{},district:[],status:200,message:""},mutations:{setLoading:function(t,e){t.loading=e},setData:function(t,e){var r=e.key,n=e.rows;t.data[r]?t.data[r]=n:P.a.set(t.data,r,n)},setDistrict:function(t,e){t.district=e},setStatus:function(t,e){var r=e.status,n=e.message;t.status=r,t.message=n}},actions:{loadData:function(t){var e=arguments;return lu(su().mark((function r(){var n,o,i,a,c,s,u,l;return su().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return n=t.commit,o=t.dispatch,i=e.length>1&&void 0!==e[1]?e[1]:{},a=i.methods,c=void 0===a?"get":a,s=i.key,u=i.query,n("setLoading",!0),r.prev=4,r.next=7,E[c](u?"/api/".concat(s?"".concat(s):"","?").concat(j.a.stringify(u)):"/api/".concat(s?"".concat(s):""));case 7:l=r.sent,l.data&&s&&n("setData",{rows:l.data,key:s}),r.next=14;break;case 11:r.prev=11,r.t0=r["catch"](4),o("handleError",r.t0);case 14:return r.prev=14,n("setLoading",!1),r.finish(14);case 17:case"end":return r.stop()}}),r,null,[[4,11,14,17]])})))()},loadDistrict:function(t){return lu(su().mark((function e(){var r,n,o,i;return su().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=t.commit,n=t.dispatch,r("setLoading",!0),e.prev=2,e.next=5,E.get("/dataset/%E8%A1%8C%E6%94%BF%E5%8C%BA%E5%88%92");case 5:o=e.sent,i=o.data,i&&r("setDistrict",i.data),e.next=13;break;case 10:e.prev=10,e.t0=e["catch"](2),n("handleError",e.t0);case 13:return e.prev=13,r("setLoading",!1),e.finish(13);case 16:case"end":return e.stop()}}),e,null,[[2,10,13,16]])})))()},getResult:function(t){var e=arguments;return lu(su().mark((function r(){var n,o,i,a,c,s;return su().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return n=t.commit,o=t.dispatch,i=e.length>1&&void 0!==e[1]?e[1]:{},a=i.key,c=i.params,n("setLoading",!0),r.prev=4,r.next=7,E.post(a,c,{});case 7:if(s=r.sent,!s||!s.data){r.next=10;break}return r.abrupt("return",s.data);case 10:r.next=15;break;case 12:r.prev=12,r.t0=r["catch"](4),o("handleError",r.t0);case 15:return r.prev=15,n("setLoading",!1),r.finish(15);case 18:case"end":return r.stop()}}),r,null,[[4,12,15,18]])})))()},handleError:function(t,e){var r=t.commit;if(!e.response)return r("setStatus",{status:0,message:"网络请求错误,请检查您的网络连接。"});var n=e.response,o=n.status,i=n.data,a=i&&i.content||"系统错误请与管理员联系。";r("setStatus",{status:o,message:a})}}};function hu(t){return hu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hu(t)}function pu(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function du(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?pu(Object(r),!0).forEach((function(e){yu(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):pu(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function yu(t,e,r){return e=vu(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function vu(t){var e=mu(t,"string");return"symbol"===hu(e)?e:String(e)}function mu(t,e){if("object"!==hu(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==hu(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}for(var gu=Object(l["createNamespacedHelpers"])("m-algorithm"),bu=gu.mapState,wu=gu.mapActions,_u=["loading","data","message"],xu=["loadData","loadDistrict","getResult"],Ou={computed:du({},bu(_u)),methods:du({},wu(xu)),beforeCreate:function(){this.$store.state["m-algorithm"]||this.$store.registerModule("m-algorithm",fu)}},ku=function(){var t=this,e=t._self._c;return e("div",{staticClass:"algorithm-checkbox"},[e("a-row",{staticStyle:{width:"100%",padding:"0 32px"},attrs:{gutter:24}},t._l(t.data,(function(r){return e("a-col",{key:r.id,staticClass:"algorithm-item",class:{"algorithm-item-actived":r.checked},attrs:{span:6}},[e("a-row",{attrs:{gutter:24}},[e("a-col",{attrs:{span:20}},[e("a-checkbox",{staticClass:"text-ellipsis",attrs:{checked:r.checked},on:{change:function(e){return t.onCheckChange(e,r)}}},[e("a-tooltip",[e("template",{slot:"title"},[t._v(" "+t._s(r.name)+" ")]),t._v(" "+t._s(r.name)+" ")],2)],1)],1),e("a-col",{staticClass:"params-setting",attrs:{span:4},on:{click:function(e){return t.showDrawer(r.read_id)}}},[r.checked?e("a-icon",{staticClass:"algorithm-item-action",attrs:{type:"setting"}}):t._e()],1)],1)],1)})),1),e("a-drawer",{attrs:{title:"高级配置",placement:"right",visible:t.visible,width:"512",bodyStyle:{overflow:"auto"}},on:{close:function(e){t.visible=!1}}},[e("h3",{staticStyle:{"margin-bottom":"16px"}},[t._v("解读详情")]),e("Descriptions",{staticStyle:{"margin-bottom":"16px"},attrs:{size:"small",column:1,bordered:""}},[e("DescriptionsItem",{attrs:{label:"编码"}},[t._v(t._s(t.algorithmDetail.code))]),e("DescriptionsItem",{attrs:{label:"名称"}},[t._v(t._s(t.algorithmDetail.name))]),e("DescriptionsItem",{attrs:{label:"解读分类"}},[t._v(t._s(t.algorithmDetail.classify))]),e("DescriptionsItem",{attrs:{label:"算法类别"}},[t._v(t._s(t.algorithmDetail.type))]),e("DescriptionsItem",{attrs:{label:"作者"}},[t._v(t._s(t.algorithmDetail.author))]),e("DescriptionsItem",{attrs:{label:"标签"}},[t._v(t._s(t.algorithmDetail.core_basis))]),e("DescriptionsItem",{attrs:{label:"解读维度"}},[t._v(t._s(t.algorithmDetail.latitude))]),e("DescriptionsItem",{attrs:{label:"解读赋值"}},[t._v(t._s(t.algorithmDetail.app_product))])],1),e("h3",{staticStyle:{"margin-bottom":"16px"}},[t._v("参数配置")]),e("a-tabs",{attrs:{type:"editable-card"},on:{edit:t.onEdit},model:{value:t.activeKey,callback:function(e){t.activeKey=e},expression:"activeKey"}},t._l(t.panes,(function(r,n){return e("a-tab-pane",{key:r.key,attrs:{tab:"".concat(r.title,"_").concat(n+1),closable:0!==n}},[e("AlgorithmParams",{attrs:{algorithmParams:r.algorithmParams,algorithmParamsKey:r.key},on:{submit:t.submitForm}})],1)})),1),e("div",{style:{position:"absolute",right:0,bottom:0,width:"100%",borderTop:"1px solid #e9e9e9",padding:"10px 16px",background:"#fff",textAlign:"right",zIndex:1}},[e("a-button",{style:{marginRight:"8px"},on:{click:function(e){t.visible=!1}}},[t._v(" 取消 ")]),e("a-button",{attrs:{type:"primary",loading:t.btnLoading},on:{click:function(e){return t.submitParams(t.copyPaneParams)}}},[t._v(" 确定 ")])],1)],1)],1)},Eu=[],Su=function(){var t=this,e=t._self._c;return e("a-form-model",{ref:"dynamicValidateForm",attrs:{model:t.dynamicValidateForm}},[t._l(t.dynamicValidateForm.algorithms,(function(r,n){return e("a-form-model-item",{key:r.key,attrs:{prop:"algorithms."+n+".value",rules:{required:!0,message:"请输入算法参数",trigger:"blur"}}},[e("a-input",{staticStyle:{width:"60%","margin-right":"8px"},attrs:{placeholder:"请输入算法参数"},on:{blur:function(e){return t.submitForm("dynamicValidateForm")}},model:{value:r.value,callback:function(e){t.$set(r,"value",e)},expression:"domain.value"}}),e("a-icon",{staticClass:"dynamic-delete-button",attrs:{type:"minus-circle-o",disabled:1===t.dynamicValidateForm.algorithms.length},on:{click:function(e){return t.removeDomain(r)}}})],1)})),e("a-form-model-item",[e("a-button",{staticStyle:{width:"60%"},attrs:{type:"dashed"},on:{click:t.addDomain}},[e("a-icon",{attrs:{type:"plus"}}),t._v(" 增加 ")],1)],1),e("a-form-model-item",[e("a-button",{on:{click:function(e){return t.resetForm("dynamicValidateForm")}}},[t._v(" 重置 ")])],1)],2)},ju=[],Lu={props:{algorithmParams:{type:Array,default:function(){return[]}},algorithmParamsKey:{type:[String,Number]}},data:function(){return{dynamicValidateForm:{algorithms:this.algorithmParams}}},methods:{submitForm:function(t){var e=this;this.$refs[t].validate((function(t){if(!t)return!1;e.setParams()}))},setParams:function(){var t=this.dynamicValidateForm.algorithms.map((function(t){return t.value})),e={key:this.algorithmParamsKey,algorithmParams:t};this.$emit("submit",e)},resetForm:function(t){this.$refs[t].resetFields(),this.dynamicValidateForm.algorithms=[],this.setParams()},removeDomain:function(t){var e=this.dynamicValidateForm.algorithms.indexOf(t);-1!==e&&this.dynamicValidateForm.algorithms.splice(e,1),this.setParams()},addDomain:function(){this.dynamicValidateForm.algorithms.push({value:"",key:Date.now()})}},watch:{algorithmParams:function(t){this.dynamicValidateForm.algorithms=t}}},Pu=Lu,Nu=Lr(Pu,Su,ju,!1,null,null,null),Au=Nu.exports,Tu=za.DescriptionsItem,Cu={props:{title:{type:String},data:{type:Array,require:!0},defaultCheckedList:{type:Array}},components:{Descriptions:za,DescriptionsItem:Tu,AlgorithmParams:Au},data:function(){return{checkedList:this.defaultCheckedList||[],visible:!1,btnLoading:!1,algorithmId:null,algorithmParams:[],activeKey:0,panes:[],paneParams:{},copyPaneParams:{}}},computed:{algorithmDetail:function(){var t=this;return this.data.find((function(e){return e.read_id===t.algorithmId}))||{}}},methods:{onCheckChange:function(t,e){if(e.checked=t.target.checked,e.checked)this.checkedList.push(e);else{var r=this.checkedList.findIndex((function(t){return e.read_id===t.read_id}));this.checkedList.splice(r,1)}this.$emit("change",this.checkedList)},showDrawer:function(t){var e=this;this.algorithmId=t;var r=this.checkedList.find((function(e){return e.read_id===t})).values;if(r.length)this.panes=r.map((function(t,r){var n={key:"".concat(e.algorithmId).concat(r),title:"参数",algorithmParams:t.map((function(t,e){return{key:e,value:t}}))};return n}));else{var n={key:"".concat(this.algorithmId,"0"),title:"参数",algorithmParams:[]};this.submitForm(n),this.panes=[n]}this.activeKey=this.panes[0].key,this.visible=!0},submitForm:function(t){var e=t.key;this.paneParams[e]?this.paneParams[e]=t.algorithmParams:this.$set(this.paneParams,e,t.algorithmParams),this.setParams()},setParams:function(){for(var t in this.copyPaneParams=Object.assign({},this.paneParams),this.copyPaneParams)-1===t.indexOf(this.algorithmId)&&delete this.copyPaneParams[t]},submitParams:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.btnLoading=!0;var r=this.checkedList.find((function(e){return e.read_id===t.algorithmId}));e&&(r.values=Object.values(e)),this.$emit("change",this.checkedList),this.visible=this.btnLoading=!1},onEdit:function(t,e){this[e](t)},add:function(){var t=this.panes,e=t.length?t.length:0,r="".concat(this.algorithmId).concat(e),n={title:"参数",algorithmParams:[],key:r};this.submitForm(n),this.panes.push(n),this.panes=t,this.activeKey=r},remove:function(t){delete this.paneParams[t],this.setParams();var e,r=this.activeKey;this.panes.forEach((function(r,n){r.key===t&&(e=n-1)}));var n=this.panes.filter((function(e){return e.key!==t}));n.length&&r===t&&(r=e>=0?n[e].key:n[0].key),this.panes=n,this.activeKey=r}},watch:{}},Iu=Cu,Mu=(r("a59b"),Lr(Iu,ku,Eu,!1,null,null,null)),Du=Mu.exports,qu=function(){var t=this,e=t._self._c;return e("div",[e("a-row",{attrs:{type:"flex"}},[e("a-col",{staticStyle:{padding:"24px","background-color":"#fafafa"},attrs:{span:12}},[e("div",{staticStyle:{"text-align":"center","margin-bottom":"24px"}},[t._v(" 可 "),e("a",{on:{click:function(e){t.pickerVisible=!0}}},[t._v(" 选择系统中现有命例 ")]),t._v(" ,快速填充命例信息。 ")]),e("a-form-model",{ref:"profileForm",attrs:{layout:t.formLayout,model:t.profile,rules:t.profileRules}},[e("a-form-model-item",{attrs:{label:"昵称",prop:"nick_name","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[e("a-input",{attrs:{placeholder:"请输入昵称",allowClear:""},model:{value:t.profile.nick_name,callback:function(e){t.$set(t.profile,"nick_name",e)},expression:"profile.nick_name"}})],1),e("a-form-model-item",{attrs:{label:"性别","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[e("a-radio-group",{model:{value:t.profile.gender,callback:function(e){t.$set(t.profile,"gender",e)},expression:"profile.gender"}},[e("a-radio",{attrs:{value:"male"}},[t._v("男")]),e("a-radio",{attrs:{value:"female"}},[t._v("女")])],1)],1),e("a-form-model-item",{attrs:{label:"公历","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[e("a-radio-group",{on:{change:t.handleLunarChange},model:{value:t.profile.is_lunar,callback:function(e){t.$set(t.profile,"is_lunar",e)},expression:"profile.is_lunar"}},[e("a-radio",{attrs:{value:!1}},[t._v("公历")]),e("a-radio",{attrs:{value:!0}},[t._v("农历")])],1)],1),t.hasDaylight?e("a-form-model-item",{attrs:{label:"夏令时","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[e("a-radio-group",{model:{value:t.profile.is_day_light,callback:function(e){t.$set(t.profile,"is_day_light",e)},expression:"profile.is_day_light"}},[e("a-radio",{attrs:{value:!0}},[t._v("是")]),e("a-radio",{attrs:{value:!1}},[t._v("否")])],1)],1):t._e(),e("a-form-model-item",{attrs:{label:"出生日期",prop:"birthday","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[e("a-popover",{attrs:{trigger:"click",overlayClassName:"custom-popover"},model:{value:t.visible,callback:function(e){t.visible=e},expression:"visible"}},[e("a-input",{attrs:{placeholder:"请选择出生日期",allowClear:""},model:{value:t.profile.birthday,callback:function(e){t.$set(t.profile,"birthday",e)},expression:"profile.birthday"}}),e("DateTimePicker",{attrs:{slot:"content",isLunar:t.profile.is_lunar},on:{change:t.handleDateTimeChange},slot:"content"})],1)],1),t.hasLeap?e("a-form-model-item",{attrs:{label:"是否为闰月","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[e("a-radio-group",{model:{value:t.profile.is_leap,callback:function(e){t.$set(t.profile,"is_leap",e)},expression:"profile.is_leap"}},[e("a-radio",{attrs:{value:!0}},[t._v("是")]),e("a-radio",{attrs:{value:!1}},[t._v("否")])],1)],1):t._e(),e("a-form-model-item",{attrs:{label:"是否为双胞胎","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[e("a-radio-group",{model:{value:t.profile.is_twins,callback:function(e){t.$set(t.profile,"is_twins",e)},expression:"profile.is_twins"}},[e("a-radio",{attrs:{value:!0}},[t._v("是")]),e("a-radio",{attrs:{value:!1}},[t._v("否")])],1),t.profile.is_twins?e("a-input",{attrs:{addonBefore:"第",addonAfter:"胎"},model:{value:t.profile.birth_num,callback:function(e){t.$set(t.profile,"birth_num",e)},expression:"profile.birth_num"}}):t._e()],1),e("a-form-model-item",{attrs:{label:"出生地",prop:"place","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[e("a-cascader",{attrs:{options:t.districts,allowClear:"",placeholder:"请选择出生地"},on:{change:t.handleDistrictChange},model:{value:t.profile.place,callback:function(e){t.$set(t.profile,"place",e)},expression:"profile.place"}})],1),e("a-form-model-item",{attrs:{label:"算法","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[t._v(" "+t._s(t.profile.code)+" ")]),e("a-form-model-item",{attrs:{label:"产品编码",prop:"productCode","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[e("a-input",{attrs:{placeholder:"请输入产品编码",allowClear:""},model:{value:t.profile.productCode,callback:function(e){t.$set(t.profile,"productCode",e)},expression:"profile.productCode"}})],1),e("a-form-model-item",{attrs:{label:"产品名称",prop:"productName","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[e("a-input",{attrs:{placeholder:"请输入产品名称",allowClear:""},model:{value:t.profile.productName,callback:function(e){t.$set(t.profile,"productName",e)},expression:"profile.productName"}})],1),t.showMore?t._e():e("p",{staticStyle:{"text-align":"center"}},[e("a-button",{attrs:{type:"link"},on:{click:function(e){t.showMore=!0}}},[t._v("更多设置")])],1),t.showMore?[e("a-form-model-item",{attrs:{label:"姓",prop:"first_name","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[e("a-input",{attrs:{placeholder:"请输入真实姓",allowClear:""},model:{value:t.profile.first_name,callback:function(e){t.$set(t.profile,"first_name",e)},expression:"profile.first_name"}})],1),e("a-form-model-item",{attrs:{label:"名",prop:"last_name","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[e("a-input",{attrs:{placeholder:"请输入真实名",allowClear:""},model:{value:t.profile.last_name,callback:function(e){t.$set(t.profile,"last_name",e)},expression:"profile.last_name"}})],1),e("a-form-model-item",{attrs:{label:"开始时间",prop:"begin_input_time","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[e("a-popover",{attrs:{trigger:"click",overlayClassName:"custom-popover"},model:{value:t.beginTimeVisible,callback:function(e){t.beginTimeVisible=e},expression:"beginTimeVisible"}},[e("a-input",{attrs:{placeholder:"请选择开始时间",allowClear:""},model:{value:t.profile.begin_input_time,callback:function(e){t.$set(t.profile,"begin_input_time",e)},expression:"profile.begin_input_time"}}),e("DateTimePicker",{attrs:{slot:"content"},on:{change:function(e){return t.profile.begin_input_time=e}},slot:"content"})],1)],1),e("a-form-model-item",{attrs:{label:"结束时间",prop:"end_input_time","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[e("a-popover",{attrs:{trigger:"click",overlayClassName:"custom-popover"},model:{value:t.endTimeVisible,callback:function(e){t.endTimeVisible=e},expression:"endTimeVisible"}},[e("a-input",{attrs:{placeholder:"请选择结束时间",allowClear:""},model:{value:t.profile.end_input_time,callback:function(e){t.$set(t.profile,"end_input_time",e)},expression:"profile.end_input_time"}}),e("DateTimePicker",{attrs:{slot:"content"},on:{change:function(e){return t.profile.end_input_time=e}},slot:"content"})],1)],1),e("a-form-model-item",{attrs:{label:"数字占卜",prop:"yicuojin","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[e("a-input",{attrs:{placeholder:"请输入三个数字,以英文逗号分隔(例如:1, 2, 3)",allowClear:""},model:{value:t.profile.yicuojin,callback:function(e){t.$set(t.profile,"yicuojin",e)},expression:"profile.yicuojin"}})],1),e("a-form-model-item",{attrs:{label:"文王卦",prop:"wenwanggua","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[e("a-input",{attrs:{placeholder:"请输入六个字符,以英文逗号分隔(例如:断, 连, 断, 断, 连, 断)",allowClear:""},model:{value:t.profile.wenwanggua,callback:function(e){t.$set(t.profile,"wenwanggua",e)},expression:"profile.wenwanggua"}})],1),e("a-form-model-item",{attrs:{label:"文王卦类型",prop:"wenwanggualeixing","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[e("a-select",{attrs:{placeholder:"请选择文王卦类型"},on:{change:function(e){return t.profile.wenwanggualeixing=e}}},t._l(t.wenwangguaType,(function(r){return e("a-select-option",{key:r,attrs:{value:r}},[t._v(" "+t._s(r)+" ")])})),1)],1),e("a-form-model-item",{attrs:{label:"大六壬占时",prop:"daliurenzhanshi","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[e("a-input",{attrs:{placeholder:"请输入时辰(例如:子)",allowClear:""},model:{value:t.profile.daliurenzhanshi,callback:function(e){t.$set(t.profile,"daliurenzhanshi",e)},expression:"profile.daliurenzhanshi"}})],1),e("a-form-model-item",{attrs:{label:"当前时间",prop:"now_time","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[e("a-popover",{attrs:{trigger:"click",overlayClassName:"custom-popover"},model:{value:t.nowTimeVisible,callback:function(e){t.nowTimeVisible=e},expression:"nowTimeVisible"}},[e("a-input",{attrs:{placeholder:"请选择当前时间",allowClear:""},model:{value:t.profile.now_time,callback:function(e){t.$set(t.profile,"now_time",e)},expression:"profile.now_time"}}),e("DateTimePicker",{attrs:{slot:"content"},on:{change:function(e){return t.profile.now_time=e}},slot:"content"})],1)],1),e("a-form-model-item",{attrs:{label:"答题测试结果",prop:"test_result","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[e("a-input",{attrs:{placeholder:"请输入测试结果(例如:分数或者 A、B、C、D)",allowClear:""},model:{value:t.profile.test_result,callback:function(e){t.$set(t.profile,"test_result",e)},expression:"profile.test_result"}})],1),e("a-form-model-item",{attrs:{label:"DISC 测试结果",prop:"disc_result","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[e("a-input",{attrs:{placeholder:"请输入测试结果(例如:1,2,3,4)",allowClear:""},model:{value:t.profile.disc_result,callback:function(e){t.$set(t.profile,"disc_result",e)},expression:"profile.disc_result"}})],1)]:t._e()],2),e("div",{staticStyle:{"text-align":"center"}},[e("a-button",{attrs:{type:"primary"},on:{click:function(e){return t.submit("0")}}},[t._v("立即测算")])],1)],1),e("a-col",{attrs:{span:12}},[t.codeValue?e("CodeEditor",{attrs:{width:"100%",value:t.codeValue}}):e("div",{staticStyle:{border:"1px solid #eee",height:"100%",position:"relative"}},[e("a-empty",{staticStyle:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%,-50%)"},attrs:{description:"暂无测试结果"}})],1)],1)],1),e("a-modal",{attrs:{title:"选择命例",width:720,bodyStyle:{maxHeight:"480px",overflow:"auto"}},on:{ok:t.confirm},model:{value:t.pickerVisible,callback:function(e){t.pickerVisible=e},expression:"pickerVisible"}},[e("ProfileSelect",{on:{select:t.handleProfileSelect}})],1),e("a-button",{staticStyle:{position:"fixed",bottom:"10px",left:"106px"},attrs:{type:"primary"},on:{click:function(e){return t.submit("1")}}},[t._v(" 发布产品 ")])],1)},Ru=[],Bu={computed:{districts:function(){var t=this.$store.state["m-algorithm"].district,e=t&&t.filter((function(t){return"1"===t.level})),r=t&&t.filter((function(t){return"2"===t.level})),n=t&&t.filter((function(t){return"3"===t.level}));return e.map((function(t){return{value:t.district_id,label:t.district_name,children:r.filter((function(e){return e.parent===t.district_id})).map((function(t){return{value:t.district_id,label:t.district_name,children:n.filter((function(e){return e.parent===t.district_id})).map((function(t){return{value:t.district_id,label:t.district_name,time_zone:t.time_zone}}))}}))}}))||[]}}},Fu=function(){var t=this,e=t._self._c;return e("div",{ref:"monaco",staticStyle:{border:"1px solid #e8e8e8"},style:{width:t.width,height:t.height}})},$u=[],Vu=r("2364"),Uu=null,Gu={props:{width:{type:String,default:"800px"},height:{type:String,default:"600px"},value:{type:[Array,String],default:function(){return["function x() {",'\tconsole.log("Hello world!");',"}"]}}},mounted:function(){this.getResult(this.value)},methods:{getResult:function(t){Uu&&Uu.dispose();var e=Vu["Uri"].parse("json://grid/settings.json");Uu=Vu["editor"].create(this.$refs.monaco,{value:JSON.stringify(t,null,"\t"),language:"json",Uri:e})}},watch:{value:function(t){this.getResult(t)}}},zu=Gu,Ku=Lr(zu,Fu,$u,!1,null,null,null),Hu=Ku.exports,Yu=function(){var t=this,e=t._self._c;return e("a-row",{staticClass:"custom-datepicker",attrs:{type:"flex"}},[e("a-col",[e("ul",t._l(t.years,(function(r,n){return e("li",{key:n,class:{active:t.value.yearIndex===n},on:{click:function(e){return t.change("year",n)}}},[t._v(" "+t._s(r)+"年 ")])})),0)]),e("a-col",[e("ul",t._l(t.months,(function(r,n){return e("li",{key:r,class:{active:t.value.monthIndex===n},on:{click:function(e){return t.change("month",n)}}},[t._v(" "+t._s(r)+"月 ")])})),0)]),e("a-col",[e("ul",t._l(t.days,(function(r,n){return e("li",{key:r,class:{active:t.value.dayIndex===n},on:{click:function(e){return t.change("day",n)}}},[t._v(" "+t._s(r)+"日 ")])})),0)]),e("a-col",[e("ul",t._l(t.hours,(function(r,n){return e("li",{key:r,class:{active:t.value.hourIndex===n},on:{click:function(e){return t.change("hour",n)}}},[t._v(" "+t._s(r)+"时 ")])})),0)]),e("a-col",[e("ul",t._l(t.minutes,(function(r,n){return e("li",{key:r,class:{active:t.value.minuteIndex===n},on:{click:function(e){return t.change("minute",n)}}},[t._v(" "+t._s(r)+"分 ")])})),0)])],1)},Wu=[],Zu=[],Xu=[],Ju=[],Qu=[],tl=1901;tl<=2030;tl++)Zu.push("".concat(tl));for(var el=1;el<=12;el++)Xu.push(el<10?"0".concat(el):"".concat(el));for(var rl=0;rl<=23;rl++)Ju.push(rl<10?"0".concat(rl):"".concat(rl));for(var nl=0;nl<=59;nl++)Qu.push(nl<10?"0".concat(nl):"".concat(nl));var ol={props:{isLunar:{type:Boolean,default:!1}},data:function(){return{years:Zu,year:"1901",months:Xu,month:"01",day:"01",hours:Ju,hour:"00",minutes:Qu,minute:"00"}},computed:{days:function(){var t=[];if(this.isLunar)for(var e=1;e<=30;e++)t.push(e<10?"0".concat(e):"".concat(e));else if(["01","03","05","07","08","10","12"].includes(this.month))for(var r=1;r<=31;r++)t.push(r<10?"0".concat(r):"".concat(r));else if(["04","06","09","11"].includes(this.month))for(var n=1;n<=30;n++)t.push(n<10?"0".concat(n):"".concat(n));else if("02"===this.month)if(parseInt(this.year)%4===0&&parseInt(this.year)%100!==0||parseInt(this.year)%400===0)for(var o=1;o<=29;o++)t.push(o<10?"0".concat(o):"".concat(o));else for(var i=1;i<=28;i++)t.push(i<10?"0".concat(i):"".concat(i));return t},value:function(){var t=this.years.indexOf(this.year),e=this.months.indexOf(this.month),r=this.days.indexOf(this.day),n=this.hours.indexOf(this.hour),o=this.minutes.indexOf(this.minute);return{yearIndex:t,monthIndex:e,dayIndex:r,hourIndex:n,minuteIndex:o}}},created:function(){},methods:{change:function(t,e){"year"===t?this.year=this.years[e]:"month"===t?this.month=this.months[e]:"day"===t?this.day=this.days[e]:"hour"===t?this.hour=this.hours[e]:"minute"===t&&(this.minute=this.minutes[e]);var r="".concat(this.year,"-").concat(this.month,"-").concat(this.day," ").concat(this.hour,":").concat(this.minute);this.$emit("change",r)}}},il=ol,al=(r("e558"),Lr(il,Yu,Wu,!1,null,null,null)),cl=al.exports,sl=function(){var t=this,e=t._self._c;return e("div",[e("a-input",{staticStyle:{width:"200px","margin-bottom":"24px"},attrs:{placeholder:"昵称",allowClear:""},on:{change:t.handleNameChange},model:{value:t.nickName,callback:function(e){t.nickName=e},expression:"nickName"}}),e("a-table",{attrs:{columns:t.columns,loading:t.loading,"data-source":t.userCase(),rowSelection:t.rowSelection,pagination:{current:t.getPagination?parseInt(t.getPagination.current):1,total:t.getPagination?parseFloat(t.getPagination.count):0,defaultPageSize:15},rowKey:"profile_id"},on:{change:t.handleChange},scopedSlots:t._u([{key:"gender",fn:function(r){return e("span",{},[t._v(" "+t._s("female"===r?"女":"男")+" ")])}}])})],1)},ul=[],ll=[{title:"昵称",dataIndex:"nick_name",key:"nick_name"},{title:"姓氏",dataIndex:"first_name",key:"first_name"},{title:"名字",dataIndex:"last_name",key:"last_name"},{title:"性别",dataIndex:"gender",key:"gender",scopedSlots:{customRender:"gender"}},{title:"生日",dataIndex:"birthday",key:"birthday"}],fl={mixins:[Ou],data:function(){return{columns:ll,rowSelection:{type:"radio",onSelect:this.onSelect},nickName:"",currentPage:1}},created:function(){this.loadData({key:"user-case",query:{$page:1,$limit:this.currentPage}})},computed:{getPagination:function(){return this.data["user-case"]?this.data["user-case"].pagination:null}},methods:{userCase:function(){return this.data["user-case"]?this.data["user-case"].collection:[]},onSelect:function(t){this.$emit("select",t)},handleChange:function(t){this.currentPage=t.current,this.loadData({key:"user-case",query:{$page:1,$limit:this.currentPage}}),this.userCase()},handleNameChange:function(t){this.loadData({key:"user-case",query:{$page:1,$limit:this.currentPage,nick_name:this.nickName}})}}},hl=fl,pl=Lr(hl,sl,ul,!1,null,null,null),dl=pl.exports;function yl(t){return yl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yl(t)}function vl(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */vl=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(L){s=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var i=e&&e.prototype instanceof h?e:h,a=Object.create(i.prototype),c=new E(o||[]);return n(a,"_invoke",{value:_(t,r,c)}),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(L){return{type:"throw",arg:L}}}t.wrap=u;var f={};function h(){}function p(){}function d(){}var y={};s(y,i,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(S([])));m&&m!==e&&r.call(m,i)&&(y=m);var g=d.prototype=h.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,c){var s=l(t[n],t,i);if("throw"!==s.type){var u=s.arg,f=u.value;return f&&"object"==yl(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return o("throw",t,a,c)}))}c(s.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function _(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=x(a,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=l(t,e,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=l(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function S(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return p.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:p,configurable:!0}),p.displayName=s(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,s(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),s(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),s(g,c,"Generator"),s(g,i,(function(){return this})),s(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=S,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:S(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function ml(t,e,r,n,o,i,a){try{var c=t[i](a),s=c.value}catch(u){return void r(u)}c.done?e(s):Promise.resolve(s).then(n,o)}function gl(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){ml(i,n,o,a,c,"next",t)}function c(t){ml(i,n,o,a,c,"throw",t)}a(void 0)}))}}var bl=["流年","流月","商务","健康","婚姻","爱情","工作","出行","学业","财运","家宅"],wl={mixins:[Ou,Bu],props:["algorithmList"],components:{CodeEditor:Hu,DateTimePicker:cl,ProfileSelect:dl},data:function(){return{visible:!1,beginTimeVisible:!1,endTimeVisible:!1,nowTimeVisible:!1,showMore:!1,formLayout:"horizontal",formItemLayout:{labelCol:{span:6},wrapperCol:{span:14}},codeValue:null,wenwangguaType:bl,profile:{nick_name:"",gender:"male",is_lunar:!1,birthday:null,place:[],is_twins:!1,is_leap:!1,birth_num:0,time_zone:8,is_day_light:!1,province:"",city:"",district:"",code:JSON.stringify(this.algorithmList)||"",productCode:"",productName:"",is_submit:"",first_name:"",last_name:"",begin_input_time:"",end_input_time:"",yicuojin:"",wenwanggua:"",wenwanggualeixing:"",daliurenzhanshi:"",now_time:"",test_result:"",disc_result:""},systemProfile:{},profileRules:{productCode:[{required:!0,message:"请输入产品编码",trigger:"blur"}],productName:[{required:!0,message:"请输入产品名称",trigger:"blur"}]},hasLeap:!1,hasDaylight:!1,pickerVisible:!1}},created:function(){this.loadDistrict()},methods:{submit:function(t){var e=this;return gl(vl().mark((function r(){return vl().wrap((function(r){while(1)switch(r.prev=r.next){case 0:e.profile.is_submit=t,e.$refs.profileForm.validate(function(){var r=gl(vl().mark((function r(n){var o;return vl().wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(!n){r.next=10;break}return r.next=3,e.getResult({key:"/api/algorithm-product/algorithm",params:e.profile});case 3:if(o=r.sent,!o||!o.data||"0"!==t){r.next=7;break}return e.codeValue=[JSON.parse(o.data)],r.abrupt("return");case 7:o?(e.$message.success("增加算法产品成功"),e.$emit("close")):e.$message.error(e.message),r.next=11;break;case 10:return r.abrupt("return",!1);case 11:case"end":return r.stop()}}),r)})));return function(t){return r.apply(this,arguments)}}());case 2:case"end":return r.stop()}}),r)})))()},handleDistrictChange:function(t,e){e&&e.length?(this.profile.province=e[0].label,this.profile.city=e[1].label,this.profile.district=e[2].label,this.profile.time_zone=e[e.length-1].time_zone):(this.profile.province="",this.profile.city="",this.profile.district="",this.profile.time_zone=8)},handleDateTimeChange:function(t){this.profile.birthday=t,this.bindHasLunar(this.profile.birthday),this.bindDaylight(this.profile.birthday)},handleLunarChange:function(){this.profile.birthday&&(this.bindHasLunar(this.profile.birthday),this.bindDaylight(this.profile.birthday))},timeStamp:function(t){return new Date(t).getTime()},bindHasLunar:function(t){var e=t?t.substring(4,0):"",r=t?t.substring(5,7):"",n=this.lunarLeapMonthOfYear(e)<10?"0"+this.lunarLeapMonthOfYear(e).toString():this.lunarLeapMonthOfYear(e).toString();this.profile.is_lunar&&(r===n&&"00"!==n?(this.hasLeap=!0,this.profile.is_leap=!0):(this.hasLeap=!1,this.profile.is_leap=!1))},bindDaylight:function(t){if(""!==t){var e=t.replace(/-/g,"/"),r=this.timeStamp(e),n=[];n=this.profile.is_lunar?[{start:this.timeStamp("1986/03/26 02:00"),end:this.timeStamp("1986/08/11 02:00")},{start:this.timeStamp("1987/03/15 02:00"),end:this.timeStamp("1987/07/21 02:00")},{start:this.timeStamp("1988/02/24 02:00"),end:this.timeStamp("1988/08/01 02:00")},{start:this.timeStamp("1989/03/11 02:00"),end:this.timeStamp("1989/08/18 02:00")},{start:this.timeStamp("1990/03/20 02:00"),end:this.timeStamp("1990/07/28 02:00")},{start:this.timeStamp("1991/02/30 02:00"),end:this.timeStamp("1991/08/08 02:00")}]:[{start:this.timeStamp("1986/05/04 02:00"),end:this.timeStamp("1986/09/14 02:00")},{start:this.timeStamp("1987/04/12 02:00"),end:this.timeStamp("1987/09/13 02:00")},{start:this.timeStamp("1988/04/10 02:00"),end:this.timeStamp("1988/09/11 02:00")},{start:this.timeStamp("1989/04/16 02:00"),end:this.timeStamp("1989/09/17 02:00")},{start:this.timeStamp("1990/04/15 02:00"),end:this.timeStamp("1990/09/16 02:00")},{start:this.timeStamp("1991/04/14 02:00"),end:this.timeStamp("1991/09/15 02:00")}],n.length&&(r>=n[0].start&&r<=n[0].end||r>=n[1].start&&r<=n[1].end||r>=n[2].start&&r<=n[2].end||r>=n[3].start&&r<=n[3].end||r>=n[4].start&&r<=n[4].end||r>=n[5].start&&r<=n[5].end)?(this.hasDaylight=!0,this.profile.is_day_light=!0):(this.hasDaylight=!1,this.profile.is_day_light=!1)}},lunarLeapMonthOfYear:function(t){var e=[19416,19168,42352,21717,53856,55632,91476,22176,39632,21970,19168,42422,42192,53840,119381,46400,54944,44450,38320,84343,18800,42160,46261,27216,27968,109396,11104,38256,21234,18800,25958,54432,59984,28309,23248,11104,100067,37600,116951,51536,54432,120998,46416,22176,107956,9680,37584,53938,43344,46423,27808,46416,86869,19872,42448,83315,21200,43432,59728,27296,44710,43856,19296,43748,42352,21088,62051,55632,23383,22176,38608,19925,19152,42192,54484,53840,54616,46400,46496,103846,38320,18864,43380,42160,45690,27216,27968,44870,43872,38256,19189,18800,25776,29859,59984,27480,21952,43872,38613,37600,51552,55636,54432,55888,30034,22176,43959,9680,37584,51893,43344,46240,47780,44368,21977,19360,42416,86390,21168,43312,31060,27296,44368,23378,19296,42726,42208,53856,60005,54576,23200,30371,38608,19415,19152,42192,118966,53840,54560,56645,46496,22224,21938,18864,42359,42160,43600,111189,27936,44448];return 15&e[t-1900]},handleProfileSelect:function(t){this.systemProfile={},this.systemProfile=t},confirm:function(){this.profile.nick_name=this.systemProfile.nick_name||this.systemProfile.nick_name,this.profile.gender=this.systemProfile.gender||this.profile.gender,this.profile.is_lunar=this.systemProfile.is_lunar||this.profile.is_lunar,this.profile.birthday=this.systemProfile.birthday||this.profile.birthday,this.profile.province=this.systemProfile.province||this.profile.province,this.profile.city=this.systemProfile.city||this.profile.city,this.profile.district=this.systemProfile.district||this.profile.district,this.profile.place=this.checkProfilePlace(this.profile.province,this.profile.city,this.profile.district)||this.profile.district,this.profile.is_twins=!!(this.systemProfile.birth_num&&this.systemProfile.birth_num>0),this.profile.is_leap=this.systemProfile.is_leap||this.profile.is_leap,this.profile.birth_num=this.systemProfile.birth_num||this.profile.birth_num,this.profile.time_zone=this.systemProfile.time_zone||this.profile.time_zone,this.profile.is_day_light=this.systemProfile.is_day_light||this.profile.is_day_light,this.pickerVisible=!1},checkProfilePlace:function(t,e,r){var n=this.$store.state["m-algorithm"].district,o=n.find((function(e){return e.district_name===t}))?n.find((function(e){return e.district_name===t})).district_id:"",i=n.find((function(t){return t.district_name===e}))?n.find((function(t){return t.district_name===e})).district_id:"",a=n.find((function(t){return t.district_name===r}))?n.find((function(t){return t.district_name===r})).district_id:"";return[o,i,a]}},watch:{algorithmList:function(t){this.profile.code=JSON.stringify(t)}}},_l=wl,xl=Lr(_l,qu,Ru,!1,null,null,null),Ol=xl.exports;function kl(t){return kl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},kl(t)}function El(t){return Pl(t)||Ll(t)||jl(t)||Sl()}function Sl(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function jl(t,e){if(t){if("string"===typeof t)return Nl(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Nl(t,e):void 0}}function Ll(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function Pl(t){if(Array.isArray(t))return Nl(t)}function Nl(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Al(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Tl(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Al(Object(r),!0).forEach((function(e){Cl(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Al(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Cl(t,e,r){return e=Il(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Il(t){var e=Ml(t,"string");return"symbol"===kl(e)?e:String(e)}function Ml(t,e){if("object"!==kl(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==kl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var Dl={mixins:[Ou],components:{CheckboxGroup:Du,AlgorithmForm:Ol},data:function(){return{current:0,steps:[{title:"核心解读"},{title:"描述解读"},{title:"排盘数据"},{title:"术数分析"},{title:"算法验证及发布"}],nameKeyword:"",codeKeyword:"",search:{nameKeyword:"",codeKeyword:""},type:"核心解读",showTime:{format:"HH:mm"},badgeStyle:{backgroundColor:"#8c8c8c"},pickerVisible:!1,defaultCheckedList:[]}},created:function(){this.loadData({key:"algorithm-read",query:{_size:9999}})},computed:{algorithmData:function(){var t=this,e=this.data["algorithm-read"]&&this.data["algorithm-read"].collection,r=e&&e.filter((function(e){return""!==t.search.nameKeyword||""!==t.search.codeKeyword?e.classify===t.type&&-1!==e.name.indexOf(t.search.nameKeyword)&&-1!==e.code.indexOf(t.search.codeKeyword):e.classify===t.type})).map((function(e){var r=Tl(Tl({},e),{},{values:[],checked:!1});return t.checkedList.length&&t.checkedList.forEach((function(e){e.read_id===r.read_id&&(t.$set(r,"values",e.values),t.$set(r,"checked",e.checked))})),r})),n=El(new Set(r&&r.map((function(t){return t.classify})))),o=n&&n.map((function(t){var e=r.filter((function(e){return e.classify===t})),n=El(new Set(e.map((function(t){return t.type})))),o=n.map((function(t){return{name:t,children:e.filter((function(e){return e.type===t}))}}));return{name:t,children:o}}));return o||[]},algorithmCount:function(){var t=this.defaultCheckedList,e=t.filter((function(t){return"核心解读"===t.classify})).length||0,r=t.filter((function(t){return"描述解读"===t.classify})).length||0,n=t.filter((function(t){return"排盘数据"===t.classify})).length||0,o=t.filter((function(t){return"术数分析"===t.classify})).length||0;return{coreAlgorithmCount:e,describeAlgorithmCount:r,paipanDataCount:n,surgeryAnalysisCount:o}},algorithmList:function(){var t=this.defaultCheckedList,e=[],r=[];return t.forEach((function(n){var o=n.code;r=n.values.length>1?n.values.map((function(t,e){var r=e+1,n=1===r?o:r<10?"".concat(o,"_0").concat(r):"".concat(o,"_").concat(r);return[n,t||[]]})):t.map((function(t){return[t.code,t.values.length?t.values[0]:[]]})),e=[].concat(El(e),El(r))})),Object.fromEntries(e)},checkedList:function(){return this.defaultCheckedList||[]}},methods:{next:function(){this.current++,this.type=this.steps[this.current].title},prev:function(){this.current--,this.type=this.steps[this.current].title},handleChange:function(t,e,r,n){var o=this;t.forEach((function(t){var e=o.defaultCheckedList.findIndex((function(e){return e.read_id===t.read_id}));-1===e?o.defaultCheckedList=[].concat(El(o.defaultCheckedList),[t]):o.defaultCheckedList[e]=t}))},onSearch:function(){this.search.nameKeyword=this.nameKeyword,this.search.codeKeyword=this.codeKeyword},algorithmTotal:function(t){var e=t.map((function(t){return t.read_id})),r=this.checkedList.map((function(t){return t.read_id}));return e.filter((function(t){return r.includes(t)})).length}},watch:{nameKeyword:function(t){""===t&&this.onSearch()},codeKeyword:function(t){""===t&&this.onSearch()}}},ql=Dl,Rl=(r("53e9"),Lr(ql,iu,au,!1,null,null,null)),Bl=Rl.exports;function Fl(t){return Gl(t)||Ul(t)||Vl(t)||$l()}function $l(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Vl(t,e){if(t){if("string"===typeof t)return zl(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?zl(t,e):void 0}}function Ul(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function Gl(t){if(Array.isArray(t))return zl(t)}function zl(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Kl=function(){var t=this,e=t._self._c;return e("div",[e("a-transfer",{staticClass:"tree-transfer",attrs:{"data-source":t.dataSource,"target-keys":t.checkedKeys,render:function(t){return t.title},"show-select-all":!1,"list-style":{maxHeight:"450px",overflowY:"auto"},showSearch:t.showSearch},on:{change:t.onChange,search:t.handleSearch},scopedSlots:t._u([{key:"children",fn:function(r){var n=r.props,o=n.direction,i=n.selectedKeys,a=r.on.itemSelect;return["left"===o?e("a-spin",{attrs:{spinning:t.leftLoding}},[e("a-tree",{attrs:{blockNode:"",checkable:"",checkStrictly:"",checkedKeys:[].concat(Fl(i),Fl(t.checkedKeys)),treeData:t.filterTreeNodes},on:{check:function(e,r){t.onChecked(e,r,[].concat(Fl(i),Fl(t.checkedKeys)),a)},select:function(e,r){t.onChecked(e,r,[].concat(Fl(i),Fl(t.checkedKeys)),a)}}})],1):t._e()]}}])})],1)},Hl=[];function Yl(t){return Yl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yl(t)}function Wl(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Wl=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(L){s=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var i=e&&e.prototype instanceof h?e:h,a=Object.create(i.prototype),c=new E(o||[]);return n(a,"_invoke",{value:_(t,r,c)}),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(L){return{type:"throw",arg:L}}}t.wrap=u;var f={};function h(){}function p(){}function d(){}var y={};s(y,i,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(S([])));m&&m!==e&&r.call(m,i)&&(y=m);var g=d.prototype=h.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,c){var s=l(t[n],t,i);if("throw"!==s.type){var u=s.arg,f=u.value;return f&&"object"==Yl(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return o("throw",t,a,c)}))}c(s.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function _(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=x(a,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=l(t,e,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=l(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function S(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return p.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:p,configurable:!0}),p.displayName=s(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,s(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),s(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),s(g,c,"Generator"),s(g,i,(function(){return this})),s(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=S,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:S(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function Zl(t,e,r,n,o,i,a){try{var c=t[i](a),s=c.value}catch(u){return void r(u)}c.done?e(s):Promise.resolve(s).then(n,o)}function Xl(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){Zl(i,n,o,a,c,"next",t)}function c(t){Zl(i,n,o,a,c,"throw",t)}a(void 0)}))}}function Jl(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Ql(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Jl(Object(r),!0).forEach((function(e){tf(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Jl(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function tf(t,e,r){return e=ef(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ef(t){var e=rf(t,"string");return"symbol"===Yl(e)?e:String(e)}function rf(t,e){if("object"!==Yl(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Yl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var nf={mixins:[en],data:function(){var t=this;return{targetKeys:[],dataSource:[],checkedKeys:this.params.data?this.params.data.map((function(e){return e[t.params.valueName]})):[],treeData:this.params.treeData||[],titleName:this.params.titleName,keyName:this.params.keyName,valuesName:this.params.valuesName,selected:this.params.selected||null,unselected:this.params.unselected||null,inputValue:"",leftLoding:!1}},computed:{treeNodes:function(){var t=this.treeData,e=this.titleName,r=this.keyName,n=this.checkedKeys,o=this.selected,i=this.unselected,a=function t(a){return a.map((function(a){var c;return a._childList&&(c=t(a._childList)),{title:a[e],key:a[r],children:c,disabled:n.includes(a[r])||o&&!me(o,a)||i&&me(i,a)}}))};return a(t)},filterTreeNodes:function(){var t=this;return this.inputValue?this.treeNodes.filter((function(e){return-1!==e.title.indexOf(t.inputValue)})):this.treeNodes},multiple:function(){return void 0===this.params.multiple||this.params.multiple},showSearch:function(){return void 0===this.params.showSearch||this.params.showSearch}},created:function(){this.treeNodes&&this.flatten(JSON.parse(JSON.stringify(this.treeNodes))),this.checkedKeys&&(this.actionModel=Ql(Ql({},this.actionModel),{},tf({},this.valuesName,this.checkedKeys)))},methods:{onChange:function(t,e){if((this.checkedKeys.length>1||t.length>1)&&"right"===e&&!this.multiple)return this.$message.error("只能选择 1 个人!"),!1;this.checkedKeys=t,this.actionModel=Ql(Ql({},this.actionModel),{},tf({},this.valuesName,this.checkedKeys))},isChecked:function(t,e){return-1!==t.indexOf(e)},onChecked:function(t,e,r,n){var o=e.node.eventKey;n(o,!this.isChecked(r,o))},flatten:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];e.forEach((function(e){t.dataSource.push({title:e.title,key:e.key}),e.children&&t.flatten(e.children)}))},handleSubmit:function(){var t=this;return Xl(Wl().mark((function e(){return Wl().wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.handleCommit();case 1:case"end":return e.stop()}}),e)})))()},handleSearch:function(t,e){var r=this,n=null;"left"===t&&(this.leftLoding=!0,n=setTimeout((function(){n&&clearTimeout(n),r.inputValue=e,r.leftLoding=!1}),1e3))}}},of=nf,af=(r("e58e"),Lr(of,Kl,Hl,!1,null,"0ce5108d",null)),cf=af.exports,sf=function(){var t=this,e=t._self._c;return e("a-tree",{attrs:{checkable:"",autoExpandParent:t.autoExpandParent,defaultCheckedKeys:t.checkedKeys,treeData:t.treeNodes,checkStrictly:""},on:{check:t.handleCheck}})},uf=[];function lf(t){return lf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},lf(t)}function ff(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ff=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(L){s=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var i=e&&e.prototype instanceof h?e:h,a=Object.create(i.prototype),c=new E(o||[]);return n(a,"_invoke",{value:_(t,r,c)}),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(L){return{type:"throw",arg:L}}}t.wrap=u;var f={};function h(){}function p(){}function d(){}var y={};s(y,i,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(S([])));m&&m!==e&&r.call(m,i)&&(y=m);var g=d.prototype=h.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,c){var s=l(t[n],t,i);if("throw"!==s.type){var u=s.arg,f=u.value;return f&&"object"==lf(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return o("throw",t,a,c)}))}c(s.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function _(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=x(a,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=l(t,e,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=l(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function S(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return p.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:p,configurable:!0}),p.displayName=s(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,s(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),s(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),s(g,c,"Generator"),s(g,i,(function(){return this})),s(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=S,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:S(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function hf(t,e,r,n,o,i,a){try{var c=t[i](a),s=c.value}catch(u){return void r(u)}c.done?e(s):Promise.resolve(s).then(n,o)}function pf(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){hf(i,n,o,a,c,"next",t)}function c(t){hf(i,n,o,a,c,"throw",t)}a(void 0)}))}}function df(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function yf(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?df(Object(r),!0).forEach((function(e){vf(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):df(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function vf(t,e,r){return e=mf(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function mf(t){var e=gf(t,"string");return"symbol"===lf(e)?e:String(e)}function gf(t,e){if("object"!==lf(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==lf(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var bf={mixins:[en],data:function(){var t=this;return{autoExpandParent:!0,checkedKeys:this.params.data.map((function(e){return e[t.params.valueName]})),treeData:this.params.treeData||[],titleName:this.params.titleName,keyName:this.params.keyName,valueName:this.params.valueName,valuesName:this.params.valuesName}},computed:{treeNodes:function(){var t=this.treeData,e=this.titleName,r=this.keyName,n=function t(n){return n.map((function(n){var o;return n._childList&&(o=t(n._childList)),{title:n[e],key:n[r],children:o}}))};return n(t)}},created:function(){this.checkedKeys&&(this.actionModel=yf(yf({},this.actionModel),{},vf({},this.valuesName,this.checkedKeys)))},methods:{handleCheck:function(t){this.actionModel=yf(yf({},this.actionModel),{},vf({},this.valuesName,t.checked))},handleSubmit:function(){var t=this;return pf(ff().mark((function e(){return ff().wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.handleCommit();case 1:case"end":return e.stop()}}),e)})))()}}},wf=bf,_f=Lr(wf,sf,uf,!1,null,null,null),xf=_f.exports,Of=function(){var t=this,e=t._self._c;return e("a-table",{attrs:{columns:t.cols,"data-source":t.treeData,rowKey:"type_id",scroll:{y:400},pagination:!1,rowSelection:{selectedRowKeys:t.selectedRowKeys,onChange:t.handleRowChange,onSelect:t.handleRowSelect,type:"checkbox"}},scopedSlots:t._u([{key:"expert",fn:function(r,n){return e("span",{},[e("a-select",{staticStyle:{width:"120px"},attrs:{placeholder:"请选择",allowClear:""},on:{change:function(e){return t.handleSelectChange(e,n)}}},t._l(t.experts,(function(r){return e("a-select-option",{key:r.expert_id,attrs:{value:r.expert_id}},[t._v(" "+t._s(r.expert_name)+" ")])})),1)],1)}}])})},kf=[];function Ef(t){return Ef="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ef(t)}function Sf(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function jf(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Sf(Object(r),!0).forEach((function(e){Lf(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Sf(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Lf(t,e,r){return e=Pf(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Pf(t){var e=Nf(t,"string");return"symbol"===Ef(e)?e:String(e)}function Nf(t,e){if("object"!==Ef(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Ef(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function Af(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Af=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(L){s=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var i=e&&e.prototype instanceof h?e:h,a=Object.create(i.prototype),c=new E(o||[]);return n(a,"_invoke",{value:_(t,r,c)}),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(L){return{type:"throw",arg:L}}}t.wrap=u;var f={};function h(){}function p(){}function d(){}var y={};s(y,i,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(S([])));m&&m!==e&&r.call(m,i)&&(y=m);var g=d.prototype=h.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,c){var s=l(t[n],t,i);if("throw"!==s.type){var u=s.arg,f=u.value;return f&&"object"==Ef(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return o("throw",t,a,c)}))}c(s.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function _(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=x(a,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=l(t,e,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=l(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function S(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return p.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:p,configurable:!0}),p.displayName=s(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,s(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),s(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),s(g,c,"Generator"),s(g,i,(function(){return this})),s(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=S,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:S(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function Tf(t){return Df(t)||Mf(t)||If(t)||Cf()}function Cf(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function If(t,e){if(t){if("string"===typeof t)return qf(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?qf(t,e):void 0}}function Mf(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function Df(t){if(Array.isArray(t))return qf(t)}function qf(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Rf(t,e,r,n,o,i,a){try{var c=t[i](a),s=c.value}catch(u){return void r(u)}c.done?e(s):Promise.resolve(s).then(n,o)}function Bf(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){Rf(i,n,o,a,c,"next",t)}function c(t){Rf(i,n,o,a,c,"throw",t)}a(void 0)}))}}var Ff={mixins:[en],computed:{selectedRowKeys:function(){return this.selections.map((function(t){return t.type_id}))}},data:function(){return{treeData:this.params.treeData||[],valuesName:this.params.valuesName,cols:[{title:"评审技术要求",dataIndex:"review_tech_require",key:"review_tech_require"},{title:"评审专家",key:"expert",scopedSlots:{customRender:"expert"}}],experts:[],selections:[]}},created:function(){var t=this;return Bf(Af().mark((function e(){var r,n;return Af().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.$api.get("/api/view-select-expert");case 3:r=e.sent,n=r.data.collection,t.experts=Tf(n),e.next=11;break;case 8:e.prev=8,e.t0=e["catch"](0),t.handleError(e.t0);case 11:case"end":return e.stop()}}),e,null,[[0,8]])})))()},methods:{handleSelectChange:function(t,e){var r=this.treeData.findIndex((function(t){return t.type_id===e.type_id}));-1!==r&&(this.treeData[r].expert_id=t)},handleSubmit:function(){this.handleCommit()},handleRowChange:function(t,e){this.selections=e,this.actionModel=jf(jf({},this.actionModel),{},Lf({},this.valuesName,this.selections))},handleRowSelect:function(t,e){var r=this.treeData.findIndex((function(e){return e.type_id===t.type_id}));-1!==r&&(this.treeData[r].checked=e?1:0)},handleError:function(t){t.response||this.$message.error("网络请求错误,请检查您的网络连接。");var e=t.response,r=e.status,n=e.data,o=n&&n.content||"系统错误请与管理员联系。";this.$message.error("".concat(r,", ").concat(o))}}},$f=Ff,Vf=Lr($f,Of,kf,!1,null,null,null),Uf=Vf.exports,Gf=function(){var t=this,e=t._self._c;return e("a-form-model",{ref:"form",staticStyle:{"min-height":"400px"},attrs:{model:t.actionModel,rules:t.rules}},[e("a-tabs",{attrs:{"tab-position":"top",size:"small"},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[t.actionModel.confirm?e("a-tab-pane",{key:"1",staticClass:"flow-approve-content",attrs:{tab:"上报/审批",bodyStyle:{"overflow-y":"auto","max-height":"350px"}}},[t.actionModel.flow_action_name?e("div",{staticStyle:{"margin-bottom":"15px"}},[e("a-form-model-item",{attrs:{prop:"flow_action_name",size:"small"}},[e("a-radio-group",{attrs:{defaultValue:"submit"},model:{value:t.actionModel.flow_action_name,callback:function(e){t.$set(t.actionModel,"flow_action_name",e)},expression:"actionModel.flow_action_name"}},[e("a-radio-button",{attrs:{value:"submit"}},[t._v("审批通过")]),t.allowBack?e("a-radio-button",{attrs:{value:"back"}},[t._v(" 审批退回 ")]):t._e(),t.allowReassign?e("a-radio-button",{attrs:{value:"reassign"}},[t._v(" 转办 ")]):t._e(),t.allowInvolve?e("a-radio-button",{attrs:{value:"involve"}},[t._v(" 加签 ")]):t._e()],1)],1),t._l(t.attrs,(function(r){return e("Item",{key:r.name,attrs:{formModel:t.actionModel,prop:r.name,schema:r,required:r.required,params:{}},on:{change:function(e){return t.handleItemChange(e,r)}},model:{value:t.actionModel[r.name],callback:function(e){t.$set(t.actionModel,r.name,e)},expression:"actionModel[attr.name]"}})})),e("a-form-model-item",{attrs:{label:["reassign","involve"].includes(t.actionModel.flow_action_name)?"备注":"审批意见",prop:"deal_note",size:"small"}},[e("a-textarea",{attrs:{placeholder:"请输入".concat(["reassign","involve"].includes(t.actionModel.flow_action_name)?"备注":"审批或退回意见"),"auto-size":{minRows:4,maxRows:6}},model:{value:t.actionModel.deal_note,callback:function(e){t.$set(t.actionModel,"deal_note",e)},expression:"actionModel.deal_note"}})],1),"back"===t.actionModel.flow_action_name&&t.backs&&t.backs.length?e("a-form-model-item",{attrs:{label:"退回步骤",prop:"deal_note",size:"small"}},[e("a-select",{model:{value:t.actionModel.back_step,callback:function(e){t.$set(t.actionModel,"back_step",e)},expression:"actionModel.back_step"}},t._l(t.backs,(function(r){return e("a-select-option",{key:r.step_id,attrs:{value:r.step_id}},[t._v(" "+t._s(r.step_name)+" ")])})),1)],1):t._e(),t.allowOver?e("a-form-model-item",{attrs:{label:"结束工作流",prop:"allow_over",size:"small"}},[e("a-switch",{model:{value:t.actionModel.is_over,callback:function(e){t.$set(t.actionModel,"is_over",e)},expression:"actionModel.is_over"}})],1):t._e()],2):t._e(),t.actionModel.flow_action_name?t._e():e("a-card",{style:{marginBottom:t.actionModel.flow_action_name?"15px":"0"},attrs:{bordered:!!t.actionModel.flow_action_name}},t._l(t.attrs,(function(r){return e("Item",{key:r.name,attrs:{formModel:t.actionModel,prop:r.name,schema:r,params:{}},on:{change:function(e){return t.handleItemChange(e,r)}},model:{value:t.actionModel[r.name],callback:function(e){t.$set(t.actionModel,r.name,e)},expression:"actionModel[attr.name]"}})})),1),t.todos.length&&!["back","reassign","involve"].includes(t.actionModel.flow_action_name)&&t.todos[0].todo_actors.length?t._l(t.todos,(function(r,n){return e("div",{key:r.todo_id},[t.actionModel.flow_action_name?e("h4",[t._v("后续步骤")]):t._e(),e("div",{staticClass:"ant-table ant-table-scroll-position-left ant-table-small workflow-table"},[e("div",{staticClass:"ant-table-content"},[e("div",{staticClass:"ant-table-body"},[e("table",[e("thead",{staticClass:"ant-table-thead"},[e("tr",[e("th",{key:"no",attrs:{width:"10%"}},[e("span",[t._v("序号")])]),e("th",{key:"template_name"},[e("span",[t._v("下一步步骤名称")])]),e("th",{key:"template_desc"},[e("span",[t._v("下一步审批者")])])])]),e("tbody",{staticClass:"ant-table-tbody"},[e("tr",{staticClass:"ant-table-row ant-table-row-level-0"},[e("td",[e("p",{staticStyle:{padding:"12px 0"}},[t._v(t._s(n+1))])]),e("td",[e("p",{staticStyle:{padding:"12px 0"}},[t._v(" "+t._s(r.current_step.step_name)+" ")])]),e("td",[e("a-input-search",{staticStyle:{"margin-bottom":"8px"},attrs:{placeholder:"搜索姓名","enter-button":""},on:{search:function(e){return t.operatorNameValue=e}}}),e("a-table",{attrs:{dataSource:t.filterOperators(r.todo_actors.map((function(t){return t.operator}))),rowKey:"actor_id",rowSelection:t.rowSelection,pagination:!1,size:"middle"}},[e("a-table-column",{key:"actor_name",attrs:{title:"姓名",dataIndex:"actor_name"}}),e("a-table-column",{key:"actor_org_name",attrs:{title:"所在单位/部门",dataIndex:"actor_org_name"}})],1)],1)])])])])])])])})):t._e()],2):t._e(),e("a-tab-pane",{key:t.actionModel.confirm?"2":"1",attrs:{tab:"审批记录"}},[e("a-card",{attrs:{bodyStyle:{"overflow-y":"auto","max-height":"350px",padding:"20px"}}},[e("a-list",{attrs:{itemLayout:"horizontal",dataSource:t.logs},scopedSlots:t._u([{key:"renderItem",fn:function(r){return e("a-list-item",{},[e("a-list-item-meta",[e("div",{attrs:{slot:"title"},slot:"title"},[t._v(" "+t._s(r.step_name)+" - "+t._s(r.operator.actor_name)+" - "+t._s(r.operator.actor_org_name)+" ")]),t.$store.state.app.icon?e("a-avatar",{attrs:{slot:"avatar",src:t.$store.state.app.icon},slot:"avatar"}):e("a-avatar",{attrs:{slot:"avatar",icon:"user"},slot:"avatar"}),e("div",{attrs:{slot:"description"},slot:"description"},[e("div",[t._v(" "+t._s(r.deal_desc)+" ")]),r.deal_note?e("div",[t._v(" 审批意见:"+t._s(r.deal_note)+" ")]):t._e(),e("div",[e("a-icon",{attrs:{type:"clock-circle-o"}}),t._v(" "+t._s(t.moment(r.deal_time).format("YYYY-MM-DD HH:mm"))+" ")],1)])],1)],1)}}])})],1)],1),e("a-tab-pane",{key:"3",attrs:{tab:"工作流步骤"}},[e("a-card",{attrs:{bodyStyle:{"overflow-y":"auto","max-height":"350px",padding:"20px"}}},[e("a-timeline",t._l(t.steps,(function(r,n){return e("a-timeline-item",{key:r.step_id,attrs:{color:t.stepIndex>n?"blue":t.stepIndex===n?"green":"#999"}},[t._v(" "+t._s(n+1)+". "+t._s(r.step_name)+" "),t.stepIndex>n?e("span",[t._v(" "+t._s(r.operator?"(".concat(r.operator,")"):"")+" ")]):t._e(),t.stepIndex===n?e("span",[t._v(" "+t._s(t.operatorName)+" ")]):t._e()])})),1)],1)],1),e("a-tab-pane",{key:"4",attrs:{tab:"流程图",forceRender:""}},[e("a-card",{attrs:{bodyStyle:{"overflow-y":"auto","max-height":"350px"}}},[e("div",{ref:"graph"})])],1)],1)],1)},zf=[],Kf=r("336c"),Hf=r.n(Kf);function Yf(t){return Yf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yf(t)}function Wf(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Wf=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(L){s=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var i=e&&e.prototype instanceof h?e:h,a=Object.create(i.prototype),c=new E(o||[]);return n(a,"_invoke",{value:_(t,r,c)}),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(L){return{type:"throw",arg:L}}}t.wrap=u;var f={};function h(){}function p(){}function d(){}var y={};s(y,i,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(S([])));m&&m!==e&&r.call(m,i)&&(y=m);var g=d.prototype=h.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,c){var s=l(t[n],t,i);if("throw"!==s.type){var u=s.arg,f=u.value;return f&&"object"==Yf(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return o("throw",t,a,c)}))}c(s.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function _(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=x(a,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=l(t,e,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=l(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function S(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return p.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:p,configurable:!0}),p.displayName=s(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,s(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),s(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),s(g,c,"Generator"),s(g,i,(function(){return this})),s(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=S,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:S(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function Zf(t,e,r,n,o,i,a){try{var c=t[i](a),s=c.value}catch(u){return void r(u)}c.done?e(s):Promise.resolve(s).then(n,o)}function Xf(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){Zf(i,n,o,a,c,"next",t)}function c(t){Zf(i,n,o,a,c,"throw",t)}a(void 0)}))}}function Jf(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Qf(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Jf(Object(r),!0).forEach((function(e){th(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Jf(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function th(t,e,r){return e=eh(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function eh(t){var e=rh(t,"string");return"symbol"===Yf(e)?e:String(e)}function rh(t,e){if("object"!==Yf(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Yf(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}Hf.a.track(!1);var nh=r("019f"),oh={mixins:[en],components:{Item:ki},data:function(){return{actionModel:Qf(Qf({},this.values),{},{is_over:!1})||{},todos:this.params.flow&&this.params.flow.flow_data.todo&&this.params.flow.flow_data.todo.constructor===Array?this.params.flow.flow_data.todo:[this.params.flow.flow_data.todo],current:this.params.flow&&this.params.flow.flow_data.case,formItems:this.params.flow&&this.params.flow.flow_data.form_param||[],backs:this.params.flow&&this.params.flow.flow_data.back_step,allowBack:this.params.flow&&this.params.flow.flow_data.allow_back,allowReassign:this.params.flow&&this.params.flow.flow_data.allow_reassign,allowInvolve:this.params.flow&&this.params.flow.flow_data.allow_involve,allowOver:this.params.flow&&this.params.flow.flow_data.allow_over,caseSteps:this.params.flow&&this.params.flow.model.case_step,logs:this.params.flow&&this.params.flow.flow_data.logs,rowSelection:{onChange:this.handleSelectionChange,columnWidth:"35px",type:this.params&&this.params.rowSelectionType?this.params.rowSelectionType:"checkbox",selectedRowKeys:[]||!1},activeName:"1",operatorNameValue:""}},created:function(){var t=this;if(this.todos&&1===this.todos.length&&this.todos[0].todo_actors&&1===this.todos[0].todo_actors.length&&(this.rowSelection.selectedRowKeys=this.params.flow.flow_data.todo&&this.params.flow.flow_data.todo[0]&&this.params.flow.flow_data.todo[0].todo_actors&&this.params.flow.flow_data.todo[0].todo_actors.map((function(t){return t.operator.actor_id})),this.actionModel.todo_actors=this.rowSelection.selectedRowKeys),this.todos&&this.todos.forEach((function(e){if(e.next_default_actor&&e.todo_actors){var r=e.todo_actors.map((function(t){return t.operator.actor_id}));t.rowSelection.selectedRowKeys=r.filter((function(t){return e.next_default_actor===t})),t.actionModel.todo_actors=t.rowSelection.selectedRowKeys}})),this.defaultValues)for(var e in this.defaultValues)void 0===this.actionModel[e]&&this.$set(this.actionModel,e,this.defaultValues[e])},mounted:function(){var t=this;setTimeout((function(){t.renderGraph()}),50)},methods:{handleSelectionChange:function(t){this.rowSelection.selectedRowKeys=this.actionModel.todo_actors=t},handleCommit:function(){var t=this;return Xf(Wf().mark((function e(){return Wf().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!t.todos[0].todo_actors.length||t.actionModel.todo_actors.length||["back","reassign","involve"].includes(t.actionModel.flow_action_name)||t.params.todoActorsNotRequired){e.next=3;break}return t.$message.error("请选择下一步审批者"),e.abrupt("return");case 3:t.$emit("commit",t.actionModel);case 4:case"end":return e.stop()}}),e)})))()},handleItemChange:function(t,e){var r=this;return Xf(Wf().mark((function n(){var o,i,a,c;return Wf().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(o=e.name,!(t instanceof FileList)){n.next=14;break}if(!t[0]){n.next=11;break}return i=new FormData,i.append(o,t[0]),n.next=7,r.$api.post("/upload",i);case 7:a=n.sent,t=a.data.data[o],n.next=12;break;case 11:t=null;case 12:n.next=15;break;case 14:t instanceof Date&&(t=r.moment(t).format("YYYY-MM-DD"));case 15:c=Qf({},r.actionModel.data),c[o]=t,r.actionModel.data=Qf({},c);case 18:case"end":return n.stop()}}),n)})))()},renderGraph:function(){var t=this;Hf.a.registerNode("rect",{getPath:function(t){var e=150,r=40;return Hf.a.Util.getRectPath(-e/2,-r/2,e,r,10)}});var e={nodes:this.steps.map((function(t,e){return{id:t.step_id,name:t.step_name,stepIndex:e}})),edges:this.steps.slice(1).map((function(e){var r=t.steps.find((function(t){return t.step_id===e.before_step_id}))||t.steps.find((function(t){return t.after_step_id===e.step_id}));return{source:r&&r.step_id,target:e.step_id}}))},r=new Hf.a.Graph({container:this.$refs.graph,fitView:"cc",height:72*this.steps.length,plugins:[new nh({ranksep:30})],defaultIntersectBox:"rect"});r.node({shape:"rect",label:function(t){return t.name},style:function(e){return{stroke:t.stepIndex>e.stepIndex?"#0285cd":t.stepIndex===e.stepIndex?"#52c41a":"#999",fill:"#999",fillOpacity:.3,lineWidth:2}}}),r.edge({style:{endArrow:!0}}),r.read(e)},filterOperators:function(t){var e=this;return this.operatorNameValue?t.filter((function(t){return t.actor_name.toString().toLowerCase().includes(e.operatorNameValue.toLowerCase())})):t}},computed:{lastStepID:function(){return this.logs&&this.logs.length>0&&this.current&&"on-going"===this.current.case_status&&this.todos&&this.todos.length>0?this.todos[0].current_step_id:this.current&&"success"===this.current.case_status?this.caseSteps[this.caseSteps.length-1].step_id:this.caseSteps[0].step_id},stepIndex:function(){var t=this,e=this.steps.findIndex((function(e){return t.lastStepID===e.step_id}));return!this.action||"e.flow-check"!==this.action.action&&"e.flow-submit"!==this.action.action?e:e-1},steps:function(){return this.caseSteps.filter((function(t){return Number(t.valid)}))},attrs:function(){var t=this,e=this.formItems.map((function(t){return t.attr_name})),r=this.view.schema.model.attrs.filter((function(t){return e.includes(t.name)})).map((function(e){var r=t.formItems.find((function(t){return t.attr_name===e.name}));return Qf(Qf({},e),r)}));return["reassign","involve"].includes(this.actionModel.flow_action_name)?r.filter((function(e){return e.attr_name===t.actionModel.flow_action_name})):r.filter((function(t){return!["reassign","involve"].includes(t.attr_name)}))},defaultValues:function(){var t=this.attrs?this.attrs.filter((function(t){return!!t.value})).map((function(t){return[t.name,t.value]})):[];return t.length?Object.fromEntries(t):null},operatorName:function(){var t=[];return!this.action||"e.flow-check"!==this.action.action&&"e.flow-submit"!==this.action.action?this.logs&&this.logs.length>0&&this.todos&&this.todos.length>0&&this.todos[0].todo_actors?t=this.todos[0].todo_actors.filter((function(t){return"close"!==t.status})).map((function(t){return t.operator_name})):this.logs&&0===this.logs.length&&(t=[this.$store.state.user.name]):t=[this.$store.state.user.name],t.length>0?"(".concat(t.join("、"),")"):""}}},ih=oh,ah=(r("26ad"),Lr(ih,Gf,zf,!1,null,null,null)),ch=ah.exports,sh={NormalForm:Ds,UploadForm:Ks,PickerViewForm:ou,AlgorithmForm:Bl,PickerTransferForm:cf,PickerTreeForm:xf,PickerSelectViewForm:Uf,WorkflowReport:ch};function uh(t){return uh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},uh(t)}function lh(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function fh(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?lh(Object(r),!0).forEach((function(e){hh(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):lh(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function hh(t,e,r){return e=ph(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ph(t){var e=dh(t,"string");return"symbol"===uh(e)?e:String(e)}function dh(t,e){if("object"!==uh(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==uh(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var yh={mixins:[Gt,zt,Ns],components:fh({},sh)},vh=yh,mh=Lr(vh,js,Ls,!1,null,null,null),gh=mh.exports,bh={ModelList:ma,ModelProfile:Ss,ModelForm:gh},wh={props:{view:{type:Object},modelViewType:{type:String}},inject:["page"],computed:{namespace:function(){return"v-".concat(this.page.pageKey)}},methods:{createView:function(){return{extends:$t(bh["Model".concat(this.modelViewType)])(this.namespace)}}}},_h=wh,xh=Lr(_h,wt,_t,!1,null,null,null),Oh=xh.exports,kh={components:{ViewBox:Oh},props:{views:{type:[Array]},viewLayout:{type:String,default:"blank"}}},Eh=kh,Sh=Lr(Eh,gt,bt,!1,null,null,null),jh=Sh.exports,Lh={mixins:[mt],components:{Views:jh}},Ph=Lh,Nh=Lr(Ph,ut,lt,!1,null,null,null),Ah=Nh.exports,Th=function(){var t=this,e=t._self._c;return e("layout-page-".concat(t.layout),{tag:"component"},[e("Frame",{attrs:{url:"".concat(t.url),height:t.height}})],1)},Ch=[],Ih={mixins:[mt],components:{Frame:Xa},props:{url:String,height:String},data:function(){return{loading:!0}}},Mh=Ih,Dh=Lr(Mh,Th,Ch,!1,null,null,null),qh=Dh.exports,Rh=function(){var t=this,e=t._self._c;return e("keep-alive",[e("router-view")],1)},Bh=[],Fh={},$h=Lr(Fh,Rh,Bh,!1,null,null,null),Vh=$h.exports;function Uh(t){return Uh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Uh(t)}function Gh(t){return Yh(t)||Hh(t)||Kh(t)||zh()}function zh(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Kh(t,e){if(t){if("string"===typeof t)return Wh(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Wh(t,e):void 0}}function Hh(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function Yh(t){if(Array.isArray(t))return Wh(t)}function Wh(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Zh(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Xh(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Zh(Object(r),!0).forEach((function(e){Jh(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Zh(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Jh(t,e,r){return e=Qh(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Qh(t){var e=tp(t,"string");return"symbol"===Uh(e)?e:String(e)}function tp(t,e){if("object"!==Uh(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Uh(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function ep(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ep=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(L){s=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var i=e&&e.prototype instanceof h?e:h,a=Object.create(i.prototype),c=new E(o||[]);return n(a,"_invoke",{value:_(t,r,c)}),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(L){return{type:"throw",arg:L}}}t.wrap=u;var f={};function h(){}function p(){}function d(){}var y={};s(y,i,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(S([])));m&&m!==e&&r.call(m,i)&&(y=m);var g=d.prototype=h.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,c){var s=l(t[n],t,i);if("throw"!==s.type){var u=s.arg,f=u.value;return f&&"object"==Uh(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return o("throw",t,a,c)}))}c(s.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function _(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=x(a,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=l(t,e,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=l(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function S(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return p.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:p,configurable:!0}),p.displayName=s(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,s(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),s(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),s(g,c,"Generator"),s(g,i,(function(){return this})),s(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=S,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:S(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function rp(t,e,r,n,o,i,a){try{var c=t[i](a),s=c.value}catch(u){return void r(u)}c.done?e(s):Promise.resolve(s).then(n,o)}function np(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){rp(i,n,o,a,c,"next",t)}function c(t){rp(i,n,o,a,c,"throw",t)}a(void 0)}))}}var op=st(Ah),ip=["catalog-tab","catalog"],ap={data:function(){return{messageTimer:0}},created:function(){var t=this;return np(ep().mark((function e(){return ep().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.$router.addRoutes([{path:"/sign-in",component:t.$theme.pages.Signin,props:{layout:"wall"}}]),e.next=3,t.$store.dispatch("loadResources");case 3:"poll"===t.$store.state.config.message.type&&"1"===t.$store.state.app.remind&&t.startMessage();case 4:case"end":return e.stop()}}),e)})))()},computed:Xh(Xh({},Object(l["mapState"])(["status","resources"])),{},{routes:function(){return this.resources.length?[{path:"/",redirect:"/"+this.resources[0].key,children:this.resToRoute(Gh(this.resources)),component:this.$theme.layouts.router.Sidebar}]:[]}}),methods:{addRoutes:function(){this.$router.addRoutes(this.routes),this.$emit("routed")},resToRoute:function(t){var e=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",n=this.$theme.layouts.router.Tabs;return t.map((function(t){var o,i="".concat(r,"/").concat(t.key),a=t.key,c={},s=null;switch(t.type){case"catalog-tab":o=n,c.resources=t.childs,c.parentPath=i;break;case"component":o=e.$theme.pages[t.key.replace(/^\S/,(function(t){return t.toUpperCase()}))],c.pageKey=t.url;break;case"iframe":if(o=qh,c.pageKey=t.url,c.url=t.url,t.url&&t.url.split("?")[1]){var u=t.url.split("?")[1].split("&").find((function(t){return t.includes("height")}))||void 0;u&&(c.height=u.split("=")[1])}break;case"view":o=Vh,c.pageKey=t.url;break;case"link":o={template:"<span></span>",activated:function(){this.$router.back()}};break;default:o=Vh;break}return"view"===t.type&&"standard"===t.viewType&&(s=[{path:"",component:{extends:op(t.url,!0)},props:{modelViewType:"profile"===t.catalogType?"Profile":"List",pageKey:t.url},meta:{name:t.name,key:i}},{path:":id",component:{extends:op(t.url,!0)},props:function(){return{modelViewType:"Profile",pageKey:t.url}},meta:{name:t.name,key:i}}]),!s&&t.childs&&(s=e.resToRoute(t.childs,t,"".concat(r,"/").concat(a))),{name:s?null:t.url,path:a,redirect:ip.includes(t.type)&&t.childs&&t.childs.length?"".concat(r,"/").concat(a,"/").concat(t.childs[0].key):null,children:s,component:o,props:c,meta:{name:"list"===t.type?null:t.name}}}))},modelPageRoute:function(){},startMessage:function(){var t=this;return np(ep().mark((function e(){return ep().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$store.dispatch("loadMessages");case 2:t.messageTimer&&clearInterval(t.messageTimer),t.messageTimer=setInterval((function(){t.$store.dispatch("loadMessages")}),1e4);case 4:case"end":return e.stop()}}),e)})))()}},watch:{status:function(t){401===t&&"/sign-in"!==this.$route.path&&this.$router.push("/sign-in")},resources:function(t,e){!e.length&&this.addRoutes()}}},cp=ap,sp=Lr(cp,s,u,!1,null,null,null),up=sp.exports,lp={components:{Router:up},created:function(){}},fp=lp,hp=Lr(fp,a,c,!1,null,null,null),pp=hp.exports;r("e39e");function dp(t){return dp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},dp(t)}function yp(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */yp=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(L){s=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var i=e&&e.prototype instanceof h?e:h,a=Object.create(i.prototype),c=new E(o||[]);return n(a,"_invoke",{value:_(t,r,c)}),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(L){return{type:"throw",arg:L}}}t.wrap=u;var f={};function h(){}function p(){}function d(){}var y={};s(y,i,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(S([])));m&&m!==e&&r.call(m,i)&&(y=m);var g=d.prototype=h.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,c){var s=l(t[n],t,i);if("throw"!==s.type){var u=s.arg,f=u.value;return f&&"object"==dp(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return o("throw",t,a,c)}))}c(s.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function _(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=x(a,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=l(t,e,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=l(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function S(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return p.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:p,configurable:!0}),p.displayName=s(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,s(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),s(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),s(g,c,"Generator"),s(g,i,(function(){return this})),s(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=S,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:S(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function vp(t,e,r,n,o,i,a){try{var c=t[i](a),s=c.value}catch(u){return void r(u)}c.done?e(s):Promise.resolve(s).then(n,o)}function mp(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){vp(i,n,o,a,c,"next",t)}function c(t){vp(i,n,o,a,c,"throw",t)}a(void 0)}))}}function gp(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function bp(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?gp(Object(r),!0).forEach((function(e){wp(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):gp(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function wp(t,e,r){return e=_p(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function _p(t){var e=xp(t,"string");return"symbol"===dp(e)?e:String(e)}function xp(t,e){if("object"!==dp(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==dp(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var Op=window.Rainbow,kp=Op.app,Ep=kp.csrfToken,Sp=kp.baseURL,jp=!1,Lp={};function Pp(t){E.setDefaults({baseURL:Sp!==["/","{app.appKey}"].join("$")?Sp:t,headers:Lp}),P.a.use(E),P.a.use(f.a);var e=function(){return{resources:[],apps:[],user:{},token:JSON.parse(localStorage.getItem("token")),app:bp({},Op.app),config:{message:{type:"poll"}},messages:[],historys:[],loading:!1,committing:!1,status:200,message:"",baseURL:E.instance.defaults.baseURL}};return new f.a.Store({state:e(),strict:jp,plugins:[],mutations:{setResources:function(t,e){t.resources=e},setApp:function(t,e){t.app=bp(bp({},t.app),e)},setUser:function(t,e){t.user=e},setToken:function(t,e){t.token=e},setMessages:function(t,e){t.messages=e},readMessages:function(t,e){if(e.length>1)t.messages=[];else if(1===e.length){var r=t.messages.findIndex((function(t){return e[0].message_id===t.message_id}));-1!==r&&t.messages.splice(r,1)}},clear:function(t){t.resources=t.apps=t.messages=[],t.user=null,localStorage.removeItem("signToken"),t.signToken=null},setStatus:function(t,e){var r=e.status,n=e.message;t.status=r,t.message=n},setLoading:function(t,e){t.loading=e},setCommitting:function(t,e){t.committing=e},setHistorys:function(t,e){var r=t.historys.findIndex((function(t){return t.key===e.key}));-1!==r?t.historys[r]=e:t.historys.push(e)},removeHistorys:function(t,e){var r=t.historys.findIndex((function(t){return t.key===e}));return-1!==r&&t.historys.splice(r,1),r}},actions:{loadResources:function(t){return mp(yp().mark((function e(){var r,n,o,i,a,c,s;return yp().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=t.commit,n=t.dispatch,r("setLoading",!0),e.prev=2,e.next=5,E.get("/api");case 5:o=e.sent,i=o.data,a=i.resources,c=i.user,s=i.app,r("setResources",a),r("setApp",s),r("setUser",c),e.next=18;break;case 15:e.prev=15,e.t0=e["catch"](2),n("handleError",e.t0);case 18:return e.prev=18,r("setLoading",!1),e.finish(18);case 21:case"end":return e.stop()}}),e,null,[[2,15,18,21]])})))()},loadMessages:function(t){return mp(yp().mark((function e(){var r,n,o;return yp().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=t.commit,e.prev=1,e.next=4,E.get("/api/sys-msg?status=unread");case 4:n=e.sent,o=n.data.collection,r("setMessages",o),e.next=11;break;case 9:e.prev=9,e.t0=e["catch"](1);case 11:case"end":return e.stop()}}),e,null,[[1,9]])})))()},readMessages:function(t,e){return mp(yp().mark((function r(){var n;return yp().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return n=t.commit,r.next=3,E.post("/api/sys-msg/read",e);case 3:n("readMessages",e);case 4:case"end":return r.stop()}}),r)})))()},emptyMessages:function(t,e){return mp(yp().mark((function r(){var n;return yp().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return n=t.commit,r.next=3,E.post("/api/sys-msg/reads",e);case 3:n("readMessages",e);case 4:case"end":return r.stop()}}),r)})))()},signin:function(t){var e=arguments;return mp(yp().mark((function r(){var n,o,i,a,c,s,u,l;return yp().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return n=t.commit,o=t.dispatch,i=e.length>1&&void 0!==e[1]?e[1]:{},n("setCommitting",!0),r.prev=3,r.next=6,E.post("/api/signin",i.data,{});case 6:return a=r.sent,c=a.data,s=c.data,u=c.content,l=a.status,n("clear"),n("setStatus",{status:l,message:u}),r.abrupt("return",s);case 16:r.prev=16,r.t0=r["catch"](3),o("handleError",r.t0);case 19:return r.prev=19,n("setCommitting",!1),r.finish(19);case 22:case"end":return r.stop()}}),r,null,[[3,16,19,22]])})))()},getSms:function(t){var e=arguments;return mp(yp().mark((function r(){var n,o,i,a,c,s,u,l;return yp().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return n=t.commit,o=t.dispatch,i=e.length>1&&void 0!==e[1]?e[1]:{},n("setCommitting",!0),r.prev=3,r.next=6,E.post("/api/sms",i.data,{});case 6:return a=r.sent,c=a.data,s=c.data,u=c.content,l=a.status,n("clear"),n("setStatus",{status:l,message:u}),r.abrupt("return",s);case 16:r.prev=16,r.t0=r["catch"](3),o("handleError",r.t0);case 19:return r.prev=19,n("setCommitting",!1),r.finish(19);case 22:case"end":return r.stop()}}),r,null,[[3,16,19,22]])})))()},signout:function(t,e){return mp(yp().mark((function e(){var r,n,o,i,a,c,s;return yp().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=t.commit,n=t.dispatch,r("setCommitting",!0),e.prev=2,e.next=5,E.post("/api/signout");case 5:return o=e.sent,i=o.data,a=i.data,c=i.content,s=o.status,r("clear"),r("setStatus",{status:s,message:c}),e.abrupt("return",a);case 15:e.prev=15,e.t0=e["catch"](2),n("handleError",e.t0);case 18:return e.prev=18,r("setCommitting",!1),e.finish(18);case 21:case"end":return e.stop()}}),e,null,[[2,15,18,21]])})))()},changePassword:function(t){var e=arguments;return mp(yp().mark((function r(){var n,o,i,a,c,s,u,l;return yp().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return n=t.commit,o=t.dispatch,i=e.length>1&&void 0!==e[1]?e[1]:{},n("setCommitting",!0),r.prev=3,r.next=6,E.post("/api/change-password",i.data,{});case 6:return a=r.sent,c=a.data,s=c.data,u=c.content,l=a.status,n("clear"),n("setStatus",{status:l,message:u}),r.abrupt("return",s);case 16:r.prev=16,r.t0=r["catch"](3),o("handleError",r.t0);case 19:return r.prev=19,n("setCommitting",!1),r.finish(19);case 22:case"end":return r.stop()}}),r,null,[[3,16,19,22]])})))()},handleError:function(t,e){var r=t.commit;if(!e.response)return r("setStatus",{status:0,message:"网络请求错误,请检查您的网络连接。"});var n=e.response,o=n.status,i=n.data,a=i&&i.content||"系统错误请与管理员联系。";return r("setStatus",{status:o,message:a}),e}},getters:{token:function(){},resources:function(){},app:function(t){return t.app},user:function(t){return t.user},config:function(t){return function(e){return t.config.find((function(t){return t.key===e}))}}}})}Ep&&"${app.csrfToken}"!==Ep&&(Lp["x-csrf-token"]=Ep);var Np=r("6389"),Ap=r.n(Np);P.a.use(Ap.a);var Tp=new Ap.a,Cp=function(){var t=this,e=t._self._c;return e("a",{directives:[{name:"clipboard",rawName:"v-clipboard:copy",value:t.copyText,expression:"copyText",arg:"copy"},{name:"clipboard",rawName:"v-clipboard:success",value:t.onCopy,expression:"onCopy",arg:"success"},{name:"clipboard",rawName:"v-clipboard:error",value:t.onError,expression:"onError",arg:"error"}]},[t._v(" "+t._s(t.text)+" ")])},Ip=[],Mp={name:"clipboard",props:{text:{type:String,default:"文本内容"},copyText:{type:[String,Number],default:"复制文本内容"}},methods:{onCopy:function(t){this.$message.success("复制成功")},onError:function(t){this.$message.error("复制失败")}}},Dp=Mp,qp=Lr(Dp,Cp,Ip,!1,null,null,null),Rp=qp.exports,Bp=function(){var t=this,e=t._self._c;return e(t.component,{tag:"component"},[t._t("default",null,{collection:t.dataSource,model:t.model,schema:t.schema,schemas:t.schemas,count:t.count}),t._t("empty"),t._t("error")],2)},Fp=[];function $p(t){return $p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$p(t)}function Vp(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Vp=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(L){s=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var i=e&&e.prototype instanceof h?e:h,a=Object.create(i.prototype),c=new E(o||[]);return n(a,"_invoke",{value:_(t,r,c)}),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(L){return{type:"throw",arg:L}}}t.wrap=u;var f={};function h(){}function p(){}function d(){}var y={};s(y,i,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(S([])));m&&m!==e&&r.call(m,i)&&(y=m);var g=d.prototype=h.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,c){var s=l(t[n],t,i);if("throw"!==s.type){var u=s.arg,f=u.value;return f&&"object"==$p(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return o("throw",t,a,c)}))}c(s.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function _(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=x(a,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=l(t,e,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=l(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function S(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return p.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:p,configurable:!0}),p.displayName=s(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,s(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),s(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),s(g,c,"Generator"),s(g,i,(function(){return this})),s(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=S,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:S(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function Up(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Gp(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Up(Object(r),!0).forEach((function(e){Hp(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Up(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function zp(t,e,r,n,o,i,a){try{var c=t[i](a),s=c.value}catch(u){return void r(u)}c.done?e(s):Promise.resolve(s).then(n,o)}function Kp(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){zp(i,n,o,a,c,"next",t)}function c(t){zp(i,n,o,a,c,"throw",t)}a(void 0)}))}}function Hp(t,e,r){return e=Yp(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Yp(t){var e=Wp(t,"string");return"symbol"===$p(e)?e:String(e)}function Wp(t,e){if("object"!==$p(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==$p(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function Zp(t,e){return ed(t)||td(t,e)||Jp(t,e)||Xp()}function Xp(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Jp(t,e){if(t){if("string"===typeof t)return Qp(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Qp(t,e):void 0}}function Qp(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function td(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],s=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);s=!0);}catch(l){u=!0,o=l}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}function ed(t){if(Array.isArray(t))return t}var rd={props:{name:{type:String},component:{type:[String,Object],default:"div"},query:{type:Object},filter:{type:Object},transform:{type:Function},limit:{type:Number},page:{type:Number},schemaMode:{type:[Boolean,String],default:!1},dataset:{type:Boolean,default:!1}},data:function(){return{collection:[],model:{},schema:null,count:0,status:0,loading:!1}},computed:{dataSource:function(){var t=this.collection,e=this.filter,r=e?t.filter((function(t){return Object.keys(e).every((function(r){var n=e[r];return n&&!Array.isArray(n)&&(n=[n]),null===n||n.includes(t[r])}))})):t;return this.transform?r.map(this.transform):r},schemas:function(){var t=this.schema?this.schema.model.attrs.filter((function(t){return t.list||"wordbook"===t.dataType&&t.typeObject})):[],e=t.map((function(t){return t.list?[t.name,t.list.split(",").map((function(t){var e=t.split(":"),r=Zp(e,2),n=r[0],o=r[1];return o?Hp({},n,o):n}))]:[t.name,t.typeObject.data&&t.typeObject.data.collection||[]]}));return Object.fromEntries(e)}},methods:{load:function(){var t=this;return Kp(Vp().mark((function e(){var r,n,o,i,a,c,s,u,l,f,h,p,d,y,v;return Vp().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=t.name,n=t.query,o=t.limit,i=void 0===o?0:o,a=t.page,c=t.dataset,t.collection=[],t.model={},t.count=0,t.status=0,t.loading=!0,s=c?"dataset":"api",e.prev=7,e.next=10,t.$api.get("/".concat(s,"/").concat(r,"?").concat(j.a.stringify(Gp(Gp({},n),{},{_size:i,$limit:a}))));case 10:u=e.sent,l=u.data,f=l.collection,h=l.count,p=l.model,d=l.data,y=u.status,t.collection=f||d,t.model=p,t.count=h,t.status=y,e.next=27;break;case 23:return e.prev=23,e.t0=e["catch"](7),e.t0.response?(v=e.t0.response.status,t.status=v):t.status=-1,e.abrupt("return",e.t0);case 27:return e.prev=27,t.loading=!1,e.finish(27);case 30:case"end":return e.stop()}}),e,null,[[7,23,27,30]])})))()},loadSchema:function(){var t=this;return Kp(Vp().mark((function e(){var r,n,o,i;return Vp().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=t.name,e.prev=1,e.next=4,t.$api.get("/schemas/".concat(r));case 4:n=e.sent,o=n.data,t.schema=o,e.next=13;break;case 9:return e.prev=9,e.t0=e["catch"](1),e.t0.response?(i=e.t0.response.status,t.status=i):t.status=-1,e.abrupt("return",e.t0);case 13:return e.prev=13,t.loading=!1,e.finish(13);case 16:case"end":return e.stop()}}),e,null,[[1,9,13,16]])})))()}},created:function(){var t=this;return Kp(Vp().mark((function e(){return Vp().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("await"!==t.schemaMode){e.next=6;break}return e.next=3,t.loadSchema();case 3:t.load(),e.next=7;break;case 6:"async"===t.schemaMode?(t.loadSchema(),t.load()):t.schemaMode?t.loadSchema():t.load();case 7:case"end":return e.stop()}}),e)})))()},watch:{name:function(t){this.load()},page:function(){this.load()}}},nd=rd,od=Lr(nd,Bp,Fp,!1,null,null,null),id=od.exports,ad=r("0934"),cd=r.n(ad);function sd(t){var e=cd.a.enc.Utf8.parse(t),r="1234123412ABCDEF",n="ABCDEF1234123412",o=cd.a.enc.Utf8.parse(r),i=cd.a.enc.Utf8.parse(n),a=cd.a.AES.encrypt(e,o,{iv:i,mode:cd.a.mode.CBC,padding:cd.a.pad.Pkcs7}),c=a.ciphertext.toString();return c}r("517c")},"1f44":function(t,e,r){(function(e,n,o){t.exports=n(r("bf17"),r("f97e"),r("a638"),r("57eb"),r("023d"))})(0,(function(t){return function(){var e=t,r=e.lib,n=r.StreamCipher,o=e.algo,i=[],a=[],c=[],s=o.Rabbit=n.extend({_doReset:function(){for(var t=this._key.words,e=this.cfg.iv,r=0;r<4;r++)t[r]=16711935&(t[r]<<8|t[r]>>>24)|4278255360&(t[r]<<24|t[r]>>>8);var n=this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16],o=this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];this._b=0;for(r=0;r<4;r++)u.call(this);for(r=0;r<8;r++)o[r]^=n[r+4&7];if(e){var i=e.words,a=i[0],c=i[1],s=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),l=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8),f=s>>>16|4294901760&l,h=l<<16|65535&s;o[0]^=s,o[1]^=f,o[2]^=l,o[3]^=h,o[4]^=s,o[5]^=f,o[6]^=l,o[7]^=h;for(r=0;r<4;r++)u.call(this)}},_doProcessBlock:function(t,e){var r=this._X;u.call(this),i[0]=r[0]^r[5]>>>16^r[3]<<16,i[1]=r[2]^r[7]>>>16^r[5]<<16,i[2]=r[4]^r[1]>>>16^r[7]<<16,i[3]=r[6]^r[3]>>>16^r[1]<<16;for(var n=0;n<4;n++)i[n]=16711935&(i[n]<<8|i[n]>>>24)|4278255360&(i[n]<<24|i[n]>>>8),t[e+n]^=i[n]},blockSize:4,ivSize:2});function u(){for(var t=this._X,e=this._C,r=0;r<8;r++)a[r]=e[r];e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0<a[0]>>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0<a[1]>>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0<a[2]>>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0<a[3]>>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0<a[4]>>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0<a[5]>>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0<a[6]>>>0?1:0)|0,this._b=e[7]>>>0<a[7]>>>0?1:0;for(r=0;r<8;r++){var n=t[r]+e[r],o=65535&n,i=n>>>16,s=((o*o>>>17)+o*i>>>15)+i*i,u=((4294901760&n)*n|0)+((65535&n)*n|0);c[r]=s^u}t[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,t[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,t[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,t[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,t[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,t[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,t[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,t[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}e.Rabbit=n._createHelper(s)}(),t.Rabbit}))},2364:function(e,r){e.exports=t},"23a7":function(t,e,r){(function(e,n,o){t.exports=n(r("bf17"),r("023d"))})(0,(function(t){return t.mode.CFB=function(){var e=t.lib.BlockCipherMode.extend();function r(t,e,r,n){var o,i=this._iv;i?(o=i.slice(0),this._iv=void 0):o=this._prevBlock,n.encryptBlock(o,0);for(var a=0;a<r;a++)t[e+a]^=o[a]}return e.Encryptor=e.extend({processBlock:function(t,e){var n=this._cipher,o=n.blockSize;r.call(this,t,e,o,n),this._prevBlock=t.slice(e,e+o)}}),e.Decryptor=e.extend({processBlock:function(t,e){var n=this._cipher,o=n.blockSize,i=t.slice(e,e+o);r.call(this,t,e,o,n),this._prevBlock=i}}),e}(),t.mode.CFB}))},"26ad":function(t,e,r){"use strict";r("f581")},"2a55":function(t,e,r){"use strict";e.byteLength=l,e.toByteArray=h,e.fromByteArray=y;for(var n=[],o=[],i="undefined"!==typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c=0,s=a.length;c<s;++c)n[c]=a[c],o[a.charCodeAt(c)]=c;function u(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");-1===r&&(r=e);var n=r===e?0:4-r%4;return[r,n]}function l(t){var e=u(t),r=e[0],n=e[1];return 3*(r+n)/4-n}function f(t,e,r){return 3*(e+r)/4-r}function h(t){var e,r,n=u(t),a=n[0],c=n[1],s=new i(f(t,a,c)),l=0,h=c>0?a-4:a;for(r=0;r<h;r+=4)e=o[t.charCodeAt(r)]<<18|o[t.charCodeAt(r+1)]<<12|o[t.charCodeAt(r+2)]<<6|o[t.charCodeAt(r+3)],s[l++]=e>>16&255,s[l++]=e>>8&255,s[l++]=255&e;return 2===c&&(e=o[t.charCodeAt(r)]<<2|o[t.charCodeAt(r+1)]>>4,s[l++]=255&e),1===c&&(e=o[t.charCodeAt(r)]<<10|o[t.charCodeAt(r+1)]<<4|o[t.charCodeAt(r+2)]>>2,s[l++]=e>>8&255,s[l++]=255&e),s}function p(t){return n[t>>18&63]+n[t>>12&63]+n[t>>6&63]+n[63&t]}function d(t,e,r){for(var n,o=[],i=e;i<r;i+=3)n=(t[i]<<16&16711680)+(t[i+1]<<8&65280)+(255&t[i+2]),o.push(p(n));return o.join("")}function y(t){for(var e,r=t.length,o=r%3,i=[],a=16383,c=0,s=r-o;c<s;c+=a)i.push(d(t,c,c+a>s?s:c+a));return 1===o?(e=t[r-1],i.push(n[e>>2]+n[e<<4&63]+"==")):2===o&&(e=(t[r-2]<<8)+t[r-1],i.push(n[e>>10]+n[e>>4&63]+n[e<<2&63]+"=")),i.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},"2b25":function(t,e,r){(function(e,n){t.exports=n(r("bf17"))})(0,(function(t){return function(){var e=t,r=e.lib,n=r.WordArray,o=r.Hasher,i=e.algo,a=[],c=i.SHA1=o.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){for(var r=this._hash.words,n=r[0],o=r[1],i=r[2],c=r[3],s=r[4],u=0;u<80;u++){if(u<16)a[u]=0|t[e+u];else{var l=a[u-3]^a[u-8]^a[u-14]^a[u-16];a[u]=l<<1|l>>>31}var f=(n<<5|n>>>27)+s+a[u];f+=u<20?1518500249+(o&i|~o&c):u<40?1859775393+(o^i^c):u<60?(o&i|o&c|i&c)-1894007588:(o^i^c)-899497514,s=c,c=i,i=o<<30|o>>>2,o=n,n=f}r[0]=r[0]+n|0,r[1]=r[1]+o|0,r[2]=r[2]+i|0,r[3]=r[3]+c|0,r[4]=r[4]+s|0},_doFinalize:function(){var t=this._data,e=t.words,r=8*this._nDataBytes,n=8*t.sigBytes;return e[n>>>5]|=128<<24-n%32,e[14+(n+64>>>9<<4)]=Math.floor(r/4294967296),e[15+(n+64>>>9<<4)]=r,t.sigBytes=4*e.length,this._process(),this._hash},clone:function(){var t=o.clone.call(this);return t._hash=this._hash.clone(),t}});e.SHA1=o._createHelper(c),e.HmacSHA1=o._createHmacHelper(c)}(),t.SHA1}))},"2f24":function(t,e,r){"use strict";r("63ce")},"336c":function(t,r){t.exports=e},"37eb":function(t,e,r){!function(e,n){t.exports=n(r("788a"))}(0,(function(t){return function(t){function e(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var r={};return e.m=t,e.c=r,e.i=function(t){return t},e.d=function(t,r,n){e.o(t,r)||Object.defineProperty(t,r,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(r,"a",r),r},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/",e(e.s=2)}([function(e,r){e.exports=t},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(4),o=r.n(n),i=r(6),a=r(5),c=a(o.a,i.a,!1,null,null,null);e.default=c.exports},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.install=e.quillEditor=e.Quill=void 0;var o=r(0),i=n(o),a=r(1),c=n(a),s=window.Quill||i.default,u=function(t,e){e&&(c.default.props.globalOptions.default=function(){return e}),t.component(c.default.name,c.default)},l={Quill:s,quillEditor:c.default,install:u};e.default=l,e.Quill=s,e.quillEditor=c.default,e.install=u},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={theme:"snow",boundary:document.body,modules:{toolbar:[["bold","italic","underline","strike"],["blockquote","code-block"],[{header:1},{header:2}],[{list:"ordered"},{list:"bullet"}],[{script:"sub"},{script:"super"}],[{indent:"-1"},{indent:"+1"}],[{direction:"rtl"}],[{size:["small",!1,"large","huge"]}],[{header:[1,2,3,4,5,6,!1]}],[{color:[]},{background:[]}],[{font:[]}],[{align:[]}],["clean"],["link","image","video"]]},placeholder:"Insert text here ...",readOnly:!1}},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=r(0),i=n(o),a=r(3),c=n(a),s=window.Quill||i.default;"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(t,e){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var r=Object(t),n=1;n<arguments.length;n++){var o=arguments[n];if(null!=o)for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])}return r},writable:!0,configurable:!0}),e.default={name:"quill-editor",data:function(){return{_options:{},_content:"",defaultOptions:c.default}},props:{content:String,value:String,disabled:{type:Boolean,default:!1},options:{type:Object,required:!1,default:function(){return{}}},globalOptions:{type:Object,required:!1,default:function(){return{}}}},mounted:function(){this.initialize()},beforeDestroy:function(){this.quill=null,delete this.quill},methods:{initialize:function(){var t=this;this.$el&&(this._options=Object.assign({},this.defaultOptions,this.globalOptions,this.options),this.quill=new s(this.$refs.editor,this._options),this.quill.enable(!1),(this.value||this.content)&&this.quill.pasteHTML(this.value||this.content),this.disabled||this.quill.enable(!0),this.quill.on("selection-change",(function(e){e?t.$emit("focus",t.quill):t.$emit("blur",t.quill)})),this.quill.on("text-change",(function(e,r,n){var o=t.$refs.editor.children[0].innerHTML,i=t.quill,a=t.quill.getText();"<p><br></p>"===o&&(o=""),t._content=o,t.$emit("input",t._content),t.$emit("change",{html:o,text:a,quill:i})})),this.$emit("ready",this.quill))}},watch:{content:function(t,e){this.quill&&(t&&t!==this._content?(this._content=t,this.quill.pasteHTML(t)):t||this.quill.setText(""))},value:function(t,e){this.quill&&(t&&t!==this._content?(this._content=t,this.quill.pasteHTML(t)):t||this.quill.setText(""))},disabled:function(t,e){this.quill&&this.quill.enable(!t)}}}},function(t,e){t.exports=function(t,e,r,n,o,i){var a,c=t=t||{},s=typeof t.default;"object"!==s&&"function"!==s||(a=t,c=t.default);var u,l="function"==typeof c?c.options:c;if(e&&(l.render=e.render,l.staticRenderFns=e.staticRenderFns,l._compiled=!0),r&&(l.functional=!0),o&&(l._scopeId=o),i?(u=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),n&&n.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(i)},l._ssrRegister=u):n&&(u=n),u){var f=l.functional,h=f?l.render:l.beforeCreate;f?(l._injectStyles=u,l.render=function(t,e){return u.call(e),h(t,e)}):l.beforeCreate=h?[].concat(h,u):[u]}return{esModule:a,exports:c,options:l}}},function(t,e,r){"use strict";var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"quill-editor"},[t._t("toolbar"),t._v(" "),r("div",{ref:"editor"})],2)},o=[],i={render:n,staticRenderFns:o};e.a=i}])}))},"4b6e":function(t,e,r){},"517c":function(t,e,r){},"521b":function(t,e,r){},"53e9":function(t,e,r){"use strict";r("7dac")},"540a":function(t,e,r){"use strict";r("dbf7")},"55ab":function(t,e,r){},"57eb":function(t,e,r){(function(e,n,o){t.exports=n(r("bf17"),r("2b25"),r("fb70"))})(0,(function(t){return function(){var e=t,r=e.lib,n=r.Base,o=r.WordArray,i=e.algo,a=i.MD5,c=i.EvpKDF=n.extend({cfg:n.extend({keySize:4,hasher:a,iterations:1}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,e){var r,n=this.cfg,i=n.hasher.create(),a=o.create(),c=a.words,s=n.keySize,u=n.iterations;while(c.length<s){r&&i.update(r),r=i.update(t).finalize(e),i.reset();for(var l=1;l<u;l++)r=i.finalize(r),i.reset();a.concat(r)}return a.sigBytes=4*s,a}});e.EvpKDF=function(t,e,r){return c.create(r).compute(t,e)}}(),t.EvpKDF}))},5880:function(t,e){t.exports=r},"5aeb":function(t,e){t.exports=n},"5c90":function(t,e,r){(function(e,n){t.exports=n(r("bf17"))})(0,(function(t){return function(e){var r=t,n=r.lib,o=n.Base,i=n.WordArray,a=r.x64={};a.Word=o.extend({init:function(t,e){this.high=t,this.low=e}}),a.WordArray=o.extend({init:function(t,r){t=this.words=t||[],this.sigBytes=r!=e?r:8*t.length},toX32:function(){for(var t=this.words,e=t.length,r=[],n=0;n<e;n++){var o=t[n];r.push(o.high),r.push(o.low)}return i.create(r,this.sigBytes)},clone:function(){for(var t=o.clone.call(this),e=t.words=this.words.slice(0),r=e.length,n=0;n<r;n++)e[n]=e[n].clone();return t}})}(),t}))},"5dd0":function(t,e,r){"use strict";r("a479")},6389:function(t,e){t.exports=o},"63ce":function(t,e,r){},"67ae":function(t,e,r){(function(e,n,o){t.exports=n(r("bf17"),r("5c90"))})(0,(function(t){return function(){var e=t,r=e.lib,n=r.Hasher,o=e.x64,i=o.Word,a=o.WordArray,c=e.algo;function s(){return i.create.apply(i,arguments)}var u=[s(1116352408,3609767458),s(1899447441,602891725),s(3049323471,3964484399),s(3921009573,2173295548),s(961987163,4081628472),s(1508970993,3053834265),s(2453635748,2937671579),s(2870763221,3664609560),s(3624381080,2734883394),s(310598401,1164996542),s(607225278,1323610764),s(1426881987,3590304994),s(1925078388,4068182383),s(2162078206,991336113),s(2614888103,633803317),s(3248222580,3479774868),s(3835390401,2666613458),s(4022224774,944711139),s(264347078,2341262773),s(604807628,2007800933),s(770255983,1495990901),s(1249150122,1856431235),s(1555081692,3175218132),s(1996064986,2198950837),s(2554220882,3999719339),s(2821834349,766784016),s(2952996808,2566594879),s(3210313671,3203337956),s(3336571891,1034457026),s(3584528711,2466948901),s(113926993,3758326383),s(338241895,168717936),s(666307205,1188179964),s(773529912,1546045734),s(1294757372,1522805485),s(1396182291,2643833823),s(1695183700,2343527390),s(1986661051,1014477480),s(2177026350,1206759142),s(2456956037,344077627),s(2730485921,1290863460),s(2820302411,3158454273),s(3259730800,3505952657),s(3345764771,106217008),s(3516065817,3606008344),s(3600352804,1432725776),s(4094571909,1467031594),s(275423344,851169720),s(430227734,3100823752),s(506948616,1363258195),s(659060556,3750685593),s(883997877,3785050280),s(958139571,3318307427),s(1322822218,3812723403),s(1537002063,2003034995),s(1747873779,3602036899),s(1955562222,1575990012),s(2024104815,1125592928),s(2227730452,2716904306),s(2361852424,442776044),s(2428436474,593698344),s(2756734187,3733110249),s(3204031479,2999351573),s(3329325298,3815920427),s(3391569614,3928383900),s(3515267271,566280711),s(3940187606,3454069534),s(4118630271,4000239992),s(116418474,1914138554),s(174292421,2731055270),s(289380356,3203993006),s(460393269,320620315),s(685471733,587496836),s(852142971,1086792851),s(1017036298,365543100),s(1126000580,2618297676),s(1288033470,3409855158),s(1501505948,4234509866),s(1607167915,987167468),s(1816402316,1246189591)],l=[];(function(){for(var t=0;t<80;t++)l[t]=s()})();var f=c.SHA512=n.extend({_doReset:function(){this._hash=new a.init([new i.init(1779033703,4089235720),new i.init(3144134277,2227873595),new i.init(1013904242,4271175723),new i.init(2773480762,1595750129),new i.init(1359893119,2917565137),new i.init(2600822924,725511199),new i.init(528734635,4215389547),new i.init(1541459225,327033209)])},_doProcessBlock:function(t,e){for(var r=this._hash.words,n=r[0],o=r[1],i=r[2],a=r[3],c=r[4],s=r[5],f=r[6],h=r[7],p=n.high,d=n.low,y=o.high,v=o.low,m=i.high,g=i.low,b=a.high,w=a.low,_=c.high,x=c.low,O=s.high,k=s.low,E=f.high,S=f.low,j=h.high,L=h.low,P=p,N=d,A=y,T=v,C=m,I=g,M=b,D=w,q=_,R=x,B=O,F=k,$=E,V=S,U=j,G=L,z=0;z<80;z++){var K,H,Y=l[z];if(z<16)H=Y.high=0|t[e+2*z],K=Y.low=0|t[e+2*z+1];else{var W=l[z-15],Z=W.high,X=W.low,J=(Z>>>1|X<<31)^(Z>>>8|X<<24)^Z>>>7,Q=(X>>>1|Z<<31)^(X>>>8|Z<<24)^(X>>>7|Z<<25),tt=l[z-2],et=tt.high,rt=tt.low,nt=(et>>>19|rt<<13)^(et<<3|rt>>>29)^et>>>6,ot=(rt>>>19|et<<13)^(rt<<3|et>>>29)^(rt>>>6|et<<26),it=l[z-7],at=it.high,ct=it.low,st=l[z-16],ut=st.high,lt=st.low;K=Q+ct,H=J+at+(K>>>0<Q>>>0?1:0),K+=ot,H=H+nt+(K>>>0<ot>>>0?1:0),K+=lt,H=H+ut+(K>>>0<lt>>>0?1:0),Y.high=H,Y.low=K}var ft=q&B^~q&$,ht=R&F^~R&V,pt=P&A^P&C^A&C,dt=N&T^N&I^T&I,yt=(P>>>28|N<<4)^(P<<30|N>>>2)^(P<<25|N>>>7),vt=(N>>>28|P<<4)^(N<<30|P>>>2)^(N<<25|P>>>7),mt=(q>>>14|R<<18)^(q>>>18|R<<14)^(q<<23|R>>>9),gt=(R>>>14|q<<18)^(R>>>18|q<<14)^(R<<23|q>>>9),bt=u[z],wt=bt.high,_t=bt.low,xt=G+gt,Ot=U+mt+(xt>>>0<G>>>0?1:0),kt=(xt=xt+ht,Ot=Ot+ft+(xt>>>0<ht>>>0?1:0),xt=xt+_t,Ot=Ot+wt+(xt>>>0<_t>>>0?1:0),xt=xt+K,Ot=Ot+H+(xt>>>0<K>>>0?1:0),vt+dt),Et=yt+pt+(kt>>>0<vt>>>0?1:0);U=$,G=V,$=B,V=F,B=q,F=R,R=D+xt|0,q=M+Ot+(R>>>0<D>>>0?1:0)|0,M=C,D=I,C=A,I=T,A=P,T=N,N=xt+kt|0,P=Ot+Et+(N>>>0<xt>>>0?1:0)|0}d=n.low=d+N,n.high=p+P+(d>>>0<N>>>0?1:0),v=o.low=v+T,o.high=y+A+(v>>>0<T>>>0?1:0),g=i.low=g+I,i.high=m+C+(g>>>0<I>>>0?1:0),w=a.low=w+D,a.high=b+M+(w>>>0<D>>>0?1:0),x=c.low=x+R,c.high=_+q+(x>>>0<R>>>0?1:0),k=s.low=k+F,s.high=O+B+(k>>>0<F>>>0?1:0),S=f.low=S+V,f.high=E+$+(S>>>0<V>>>0?1:0),L=h.low=L+G,h.high=j+U+(L>>>0<G>>>0?1:0)},_doFinalize:function(){var t=this._data,e=t.words,r=8*this._nDataBytes,n=8*t.sigBytes;e[n>>>5]|=128<<24-n%32,e[30+(n+128>>>10<<5)]=Math.floor(r/4294967296),e[31+(n+128>>>10<<5)]=r,t.sigBytes=4*e.length,this._process();var o=this._hash.toX32();return o},clone:function(){var t=n.clone.call(this);return t._hash=this._hash.clone(),t},blockSize:32});e.SHA512=n._createHelper(f),e.HmacSHA512=n._createHmacHelper(f)}(),t.SHA512}))},"690b":function(t,e,r){},"6b48":function(t,e,r){},7144:function(t,e,r){(function(e,n,o){t.exports=n(r("bf17"),r("f97e"),r("a638"),r("57eb"),r("023d"))})(0,(function(t){return function(){var e=t,r=e.lib,n=r.BlockCipher,o=e.algo,i=[],a=[],c=[],s=[],u=[],l=[],f=[],h=[],p=[],d=[];(function(){for(var t=[],e=0;e<256;e++)t[e]=e<128?e<<1:e<<1^283;var r=0,n=0;for(e=0;e<256;e++){var o=n^n<<1^n<<2^n<<3^n<<4;o=o>>>8^255&o^99,i[r]=o,a[o]=r;var y=t[r],v=t[y],m=t[v],g=257*t[o]^16843008*o;c[r]=g<<24|g>>>8,s[r]=g<<16|g>>>16,u[r]=g<<8|g>>>24,l[r]=g;g=16843009*m^65537*v^257*y^16843008*r;f[o]=g<<24|g>>>8,h[o]=g<<16|g>>>16,p[o]=g<<8|g>>>24,d[o]=g,r?(r=y^t[t[t[m^y]]],n^=t[t[n]]):r=n=1}})();var y=[0,1,2,4,8,16,32,64,128,27,54],v=o.AES=n.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var t=this._keyPriorReset=this._key,e=t.words,r=t.sigBytes/4,n=this._nRounds=r+6,o=4*(n+1),a=this._keySchedule=[],c=0;c<o;c++)c<r?a[c]=e[c]:(l=a[c-1],c%r?r>6&&c%r==4&&(l=i[l>>>24]<<24|i[l>>>16&255]<<16|i[l>>>8&255]<<8|i[255&l]):(l=l<<8|l>>>24,l=i[l>>>24]<<24|i[l>>>16&255]<<16|i[l>>>8&255]<<8|i[255&l],l^=y[c/r|0]<<24),a[c]=a[c-r]^l);for(var s=this._invKeySchedule=[],u=0;u<o;u++){c=o-u;if(u%4)var l=a[c];else l=a[c-4];s[u]=u<4||c<=4?l:f[i[l>>>24]]^h[i[l>>>16&255]]^p[i[l>>>8&255]]^d[i[255&l]]}}},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._keySchedule,c,s,u,l,i)},decryptBlock:function(t,e){var r=t[e+1];t[e+1]=t[e+3],t[e+3]=r,this._doCryptBlock(t,e,this._invKeySchedule,f,h,p,d,a);r=t[e+1];t[e+1]=t[e+3],t[e+3]=r},_doCryptBlock:function(t,e,r,n,o,i,a,c){for(var s=this._nRounds,u=t[e]^r[0],l=t[e+1]^r[1],f=t[e+2]^r[2],h=t[e+3]^r[3],p=4,d=1;d<s;d++){var y=n[u>>>24]^o[l>>>16&255]^i[f>>>8&255]^a[255&h]^r[p++],v=n[l>>>24]^o[f>>>16&255]^i[h>>>8&255]^a[255&u]^r[p++],m=n[f>>>24]^o[h>>>16&255]^i[u>>>8&255]^a[255&l]^r[p++],g=n[h>>>24]^o[u>>>16&255]^i[l>>>8&255]^a[255&f]^r[p++];u=y,l=v,f=m,h=g}y=(c[u>>>24]<<24|c[l>>>16&255]<<16|c[f>>>8&255]<<8|c[255&h])^r[p++],v=(c[l>>>24]<<24|c[f>>>16&255]<<16|c[h>>>8&255]<<8|c[255&u])^r[p++],m=(c[f>>>24]<<24|c[h>>>16&255]<<16|c[u>>>8&255]<<8|c[255&l])^r[p++],g=(c[h>>>24]<<24|c[u>>>16&255]<<16|c[l>>>8&255]<<8|c[255&f])^r[p++];t[e]=y,t[e+1]=v,t[e+2]=m,t[e+3]=g},keySize:8});e.AES=n._createHelper(v)}(),t.AES}))},"788a":function(t,e,r){(function(e){
|
|
9
|
+
e.read=function(t,e,r,n,o){var i,a,c=8*o-n-1,s=(1<<c)-1,u=s>>1,l=-7,f=r?o-1:0,h=r?-1:1,p=t[e+f];for(f+=h,i=p&(1<<-l)-1,p>>=-l,l+=c;l>0;i=256*i+t[e+f],f+=h,l-=8);for(a=i&(1<<-l)-1,i>>=-l,l+=n;l>0;a=256*a+t[e+f],f+=h,l-=8);if(0===i)i=1-u;else{if(i===s)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,n),i-=u}return(p?-1:1)*a*Math.pow(2,i-n)},e.write=function(t,e,r,n,o,i){var a,c,s,u=8*i-o-1,l=(1<<u)-1,f=l>>1,h=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:i-1,d=n?1:-1,y=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(c=isNaN(e)?1:0,a=l):(a=Math.floor(Math.log(e)/Math.LN2),e*(s=Math.pow(2,-a))<1&&(a--,s*=2),e+=a+f>=1?h/s:h*Math.pow(2,1-f),e*s>=2&&(a++,s/=2),a+f>=l?(c=0,a=l):a+f>=1?(c=(e*s-1)*Math.pow(2,o),a+=f):(c=e*Math.pow(2,f-1)*Math.pow(2,o),a=0));o>=8;t[r+p]=255&c,p+=d,c/=256,o-=8);for(a=a<<o|c,u+=o;u>0;t[r+p]=255&a,p+=d,a/=256,u-=8);t[r+p-d]|=128*y}},"1a73":function(t,e,r){},"1aba":function(t,e,r){"use strict";if(r.r(e),r.d(e,"App",(function(){return pp})),r.d(e,"createStore",(function(){return Pp})),r.d(e,"create",(function(){return $t})),r.d(e,"template",(function(){return be})),r.d(e,"WebRouters",(function(){return Cp})),r.d(e,"WebViews",(function(){return bh})),r.d(e,"Descriptions",(function(){return za})),r.d(e,"Frame",(function(){return Xa})),r.d(e,"Clipboard",(function(){return Rp})),r.d(e,"Collection",(function(){return id})),r.d(e,"FormItem",(function(){return ki})),r.d(e,"FormBase",(function(){return en})),r.d(e,"encrypt",(function(){return sd})),"undefined"!==typeof window){var n=window.document.currentScript,o=r("dc36");n=o(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:o});var i=n&&n.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);i&&(r.p=i[1])}var a=function(){var t=this,e=t._self._c;return e("a-spin",{attrs:{spinning:t.$store.state.loading}},[e("Router",{on:{routed:function(e){t.spinning=!1}}})],1)},c=[],s=function(){var t=this,e=t._self._c;return e("router-view")},u=[],l=r("5880"),f=r.n(l),h=r("cebe"),p=r.n(h);function d(t){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},d(t)}function y(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */y=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(N){s=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var i=e&&e.prototype instanceof h?e:h,a=Object.create(i.prototype),c=new j(o||[]);return n(a,"_invoke",{value:O(t,r,c)}),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(N){return{type:"throw",arg:N}}}t.wrap=u;var f={};function h(){}function p(){}function v(){}var m={};s(m,i,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(L([])));b&&b!==e&&r.call(b,i)&&(m=b);var w=v.prototype=h.prototype=Object.create(m);function _(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function o(n,i,a,c){var s=l(t[n],t,i);if("throw"!==s.type){var u=s.arg,f=u.value;return f&&"object"==d(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return o("throw",t,a,c)}))}c(s.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function O(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return P()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=k(a,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=l(t,e,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function k(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,k(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=l(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function E(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function L(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:P}}function P(){return{value:void 0,done:!0}}return p.prototype=v,n(w,"constructor",{value:v,configurable:!0}),n(v,"constructor",{value:p,configurable:!0}),p.displayName=s(v,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,s(t,c,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},_(x.prototype),s(x.prototype,a,(function(){return this})),t.AsyncIterator=x,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new x(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},_(w),s(w,c,"Generator"),s(w,i,(function(){return this})),s(w,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=L,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),S(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;S(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:L(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function v(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function m(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?v(Object(r),!0).forEach((function(e){g(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):v(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function g(t,e,r){return e=b(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function b(t){var e=w(t,"string");return"symbol"===d(e)?e:String(e)}function w(t,e){if("object"!==d(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==d(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function _(t,e,r,n,o,i,a){try{var c=t[i](a),s=c.value}catch(u){return void r(u)}c.done?e(s):Promise.resolve(s).then(n,o)}function x(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){_(i,n,o,a,c,"next",t)}function c(t){_(i,n,o,a,c,"throw",t)}a(void 0)}))}}var O=p.a.create({timeout:6e5,withCredentials:!0}),k={axios:p.a,instance:O,install:function(t){t.prototype.$api=k},setDefaults:function(t){Object.keys(t).forEach((function(e){O.defaults[e]=t[e]}))},request:function(t,e,r,n){return x(y().mark((function o(){var i;return y().wrap((function(o){while(1)switch(o.prev=o.next){case 0:return o.next=2,O.request(m(m({},n),{},{method:t,url:e,data:r}));case 2:return i=o.sent,o.abrupt("return",i);case 4:case"end":return o.stop()}}),o)})))()},get:function(t){var e=arguments;return x(y().mark((function r(){var n,o,i;return y().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return n=e.length>1&&void 0!==e[1]?e[1]:null,o=e.length>2&&void 0!==e[2]?e[2]:null,r.next=4,k.request("get",t,o,n);case 4:return i=r.sent,r.abrupt("return",i);case 6:case"end":return r.stop()}}),r)})))()},post:function(t,e){var r=arguments;return x(y().mark((function n(){var o,i;return y().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return o=r.length>2&&void 0!==r[2]?r[2]:null,n.next=3,k.request("post",t,e,o);case 3:return i=n.sent,n.abrupt("return",i);case 5:case"end":return n.stop()}}),n)})))()},put:function(t,e){var r=arguments;return x(y().mark((function n(){var o,i;return y().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return o=r.length>2&&void 0!==r[2]?r[2]:null,n.next=3,k.request("put",t,e,o);case 3:return i=n.sent,n.abrupt("return",i);case 5:case"end":return n.stop()}}),n)})))()},delete:function(t,e){var r=arguments;return x(y().mark((function n(){var o,i;return y().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return o=r.length>2&&void 0!==r[2]?r[2]:null,n.next=3,k.request("delete",t,e,o);case 3:return i=n.sent,n.abrupt("return",i);case 5:case"end":return n.stop()}}),n)})))()}},E=k,S=r("796d"),j=r.n(S),L=r("8bbf"),P=r.n(L);function N(t){return N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},N(t)}function A(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function C(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?A(Object(r),!0).forEach((function(e){T(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):A(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function T(t,e,r){return e=I(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function I(t){var e=M(t,"string");return"symbol"===N(e)?e:String(e)}function M(t,e){if("object"!==N(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==N(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function D(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */D=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(L){s=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var i=e&&e.prototype instanceof h?e:h,a=Object.create(i.prototype),c=new E(o||[]);return n(a,"_invoke",{value:_(t,r,c)}),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(L){return{type:"throw",arg:L}}}t.wrap=u;var f={};function h(){}function p(){}function d(){}var y={};s(y,i,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(S([])));m&&m!==e&&r.call(m,i)&&(y=m);var g=d.prototype=h.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,c){var s=l(t[n],t,i);if("throw"!==s.type){var u=s.arg,f=u.value;return f&&"object"==N(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return o("throw",t,a,c)}))}c(s.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function _(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=x(a,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=l(t,e,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=l(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function S(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return p.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:p,configurable:!0}),p.displayName=s(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,s(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),s(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),s(g,c,"Generator"),s(g,i,(function(){return this})),s(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=S,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:S(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function q(t,e,r,n,o,i,a){try{var c=t[i](a),s=c.value}catch(u){return void r(u)}c.done?e(s):Promise.resolve(s).then(n,o)}function R(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){q(i,n,o,a,c,"next",t)}function c(t){q(i,n,o,a,c,"throw",t)}a(void 0)}))}}function B(t,e){return G(t)||U(t,e)||$(t,e)||F()}function F(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function $(t,e){if(t){if("string"===typeof t)return V(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?V(t,e):void 0}}function V(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function U(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],s=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);s=!0);}catch(l){u=!0,o=l}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}function G(t){if(Array.isArray(t))return t}var z=function t(e,r,n){for(var o=0;o<e.length;o++){if(e[o][n]===r)return[e,o];if(e[o]._childList){var i=t(e[o]._childList,r,n);if(i)return i}}return null};function K(t,e,r,n){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,i=e.slice(2),a={namespaced:!0,state:function(){return{namespace:i,data:{rows:[],count:0,size:15},schema:null,wordbooks:{},expired:0,loading:!1,committing:!1,status:0,message:""}},mutations:{setSchema:function(t,e){t.schema=e},setStatus:function(t,e){var r=e.status,n=e.message;t.status=r,t.message=n},setLoading:function(t,e){t.loading=e},setCommitting:function(t,e){t.committing=e},setData:function(t,e){var r=e.rows,n=e.count,o=e.size;t.data.rows=r,t.data.count=n,t.data.size=o},appendData:function(t,e){var r=e.rows||[];t.data.rows=t.data.rows.concat(r)},saveData:function(t,e){var r=e.rows,n=e.idName,o=e.parentIdName;r=Array.isArray(r)?r:[r],r.forEach((function(e){var r=z(t.data.rows,e[n],n);if(r){r[0][r[1]]._childList&&(e._childList=r[0][r[1]]._childList);var i=r,a=B(i,2),c=a[0],s=a[1];o&&e[o]!==c[s][o]?(c.splice(s,1),r=null):P.a.set(c,s,e)}if(!r&&e[n]&&o&&e[o]){var u=z(t.data.rows,e[o],n);if(u){var l=u[0][u[1]];l._childList?l._childList.unshift(e):P.a.set(l,"_childList",[e])}else t.data.rows.unshift(e)}else!r&&e[n]&&t.data.rows.unshift(e)}))},removeData:function(t,e){var r=e.rows,n=e.idName;e.parentIdName;r=Array.isArray(r)?r:[r],r.forEach((function(e){var r=z(t.data.rows,e[n],n);if(r){var o=B(r,2),i=o[0],a=o[1];i.splice(a,1)}}))},setWordbook:function(t,e){var r=e.rows,n=e.key;t.wordbooks[n]?t.wordbooks[n]=r:P.a.set(t.wordbooks,n,r)},replaceNamespace:function(t,e){t.namespace=e.reduce((function(t,e){return t.replace(":id",e)}),i)},createSubViewStore:function(e,n){function o(e,n){e.model.attrs.filter((function(t){return"model"===t.metaType})).map((function(e){var i="".concat(n,"/:id/").concat(e.name);t.hasModule(i)||(K(t,i,r,e.name,!1,e.subView),e.subView&&o(e.subView,i))}))}o(n,"v-".concat(i))}},actions:{loadSchema:function(t,e){return R(D().mark((function e(){var r,n,o,a,c,s,u,l;return D().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=t.commit,t.state.namespace,r("setLoading",!0),e.prev=2,e.next=5,E.get("/schemas/".concat(i.replace(/\/:id/g,"")));case 5:n=e.sent,o=n.data,a=n.status,r("createSubViewStore",o),r("setSchema",o),r("setStatus",{status:a}),e.next=20;break;case 13:if(e.prev=13,e.t0=e["catch"](2),e.t0.response){e.next=17;break}return e.abrupt("return",r("setStatus",{status:0,message:"网络请求错误,请检查您的网络链接。"}));case 17:c=e.t0.response,s=c.status,u=c.data,l=u&&u.content||"系统错误请与管理员联系。",r("setStatus",{status:s,message:l});case 20:return e.prev=20,r("setLoading",!1),e.finish(20);case 23:case"end":return e.stop()}}),e,null,[[2,13,20,23]])})))()},loadData:function(t){var e=arguments;return R(D().mark((function r(){var n,o,i,a,c,s,u,l,f,h,p,d,y,v,m,g,b,w,_,x,O,k,S,L,P,N;return D().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return n=t.commit,o=t.dispatch,i=t.getters,a=t.state.namespace,c=e.length>1&&void 0!==e[1]?e[1]:{},s=c.url,u=void 0===s?a:s,l=c.method,f=void 0===l?"get":l,h=c.data,p=void 0===h?null:h,d=c.key,y=c.query,v=c.options,m=c.mute,g=void 0!==m&&m,!g&&n("setLoading",!0),r.prev=4,r.next=7,E[f]("/api/".concat(u).concat(d?"/".concat(d):"","?").concat(j.a.stringify(y)),p,v);case 7:return b=r.sent,w=b.data,_=w.collection,x=w.model,O=w.count,k=w.pagination,S=b.status,L=i.idName,P=i.parentIdName,N=i.nodeName,x?n("saveData",{rows:x,idName:L,parentIdName:P,nodeName:N}):n("setData",{rows:_||[],count:O,size:k&&k.size}),n("setStatus",{status:S,message:""}),r.abrupt("return",_||x);case 20:return r.prev=20,r.t0=r["catch"](4),r.abrupt("return",o("handleError",{error:r.t0,mute:g}));case 23:return r.prev=23,!g&&n("setLoading",!1),r.finish(23);case 26:case"end":return r.stop()}}),r,null,[[4,20,23,26]])})))()},loadWordBook:function(t){var e=arguments;return R(D().mark((function r(){var n,o,i,a,c,s,u,l,f,h,p,d,y,v,m;return D().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return n=t.commit,o=t.dispatch,i=t.state.namespace,a=e.length>1&&void 0!==e[1]?e[1]:{},c=a.url,s=void 0===c?i:c,u=a.method,l=void 0===u?"get":u,f=a.data,h=void 0===f?null:f,p=a.key,d=a.query,y=a.options,r.prev=3,r.next=6,E[l.toLowerCase()]("/api/".concat(s).concat(p?"/".concat(p):"","?").concat(j.a.stringify(d)),h,y);case 6:return v=r.sent,m=v.data,m.collection&&p&&n("setWordBook",{rows:m.collection,key:p}),r.abrupt("return",m);case 12:return r.prev=12,r.t0=r["catch"](3),r.abrupt("return",o("handleError",{error:r.t0}));case 15:case"end":return r.stop()}}),r,null,[[3,12]])})))()},saveData:function(t){var e=arguments;return R(D().mark((function r(){var n,o,i,a,c,s,u,l,f,h,p,d,y,v,m,g,b,w,_,x,O,k,S,L,P,N,A,C;return D().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return n=t.commit,o=t.dispatch,i=t.getters,a=t.state.namespace,c=e.length>1&&void 0!==e[1]?e[1]:{},s=c.url,u=void 0===s?a:s,l=c.type,f=void 0===l?"save":l,h=c.method,p=void 0===h?"post":h,d=c.data,y=void 0===d?null:d,v=c.key,m=c.query,g=c.options,b=c.mute,w=void 0!==b&&b,n("setCommitting",!0),r.prev=4,r.next=7,E[p.toLowerCase()]("/api/".concat(u).concat(v?"/".concat(v):"","?").concat(j.a.stringify(m)),y,g);case 7:return _=r.sent,x=_.data,O=x.data,k=x.content,S=_.status,L=_.statusText,P=i.idName,N=i.parentIdName,A=i.nodeName,O&&(C="remove"===f?"removeData":"saveData",c.params&&c.params.mode&&"notUpdate"===c.params.mode||n(C,{rows:O.data||O,idName:P,parentIdName:N,nodeName:A})),n("setStatus",{status:S,message:w?"":k||L}),r.abrupt("return",O);case 19:return r.prev=19,r.t0=r["catch"](4),r.abrupt("return",o("handleError",{error:r.t0}));case 22:return r.prev=22,n("setCommitting",!1),r.finish(22);case 25:case"end":return r.stop()}}),r,null,[[4,19,22,25]])})))()},executeData:function(t,e){return R(D().mark((function r(){var n,o,i;return D().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return n=t.dispatch,o=e.method,i=void 0===o?"post":o,r.next=4,n("saveData",C({type:"execute",method:i},e));case 4:return r.abrupt("return",r.sent);case 5:case"end":return r.stop()}}),r)})))()},removeData:function(t,e){return R(D().mark((function r(){var n,o,i;return D().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return n=t.dispatch,o=e.method,i=void 0===o?"delete":o,r.next=4,n("saveData",C({type:"remove",method:i},e));case 4:return r.abrupt("return",r.sent);case 5:case"end":return r.stop()}}),r)})))()},handleError:function(t,e){var r=t.commit,n=e.error,o=e.mute;if(!n.response)return r("setStatus",{status:0,message:!o&&"网络请求错误,请检查您的网络连接。"});var i=n.response,a=i.status,c=i.data,s=o?null:c&&c.content||"系统错误请与管理员联系。";return r("setStatus",{status:a,message:s}),n},resetStatus:function(t){var e=t.commit;e("setStatus",{status:0,message:""})}},getters:{schema:function(t,e,i){return o||(i[r].views.find((function(t){return t.key===n}))||t.schema)},model:function(t,e){return e.schema?e.schema.model:null},idName:function(t,e){return e.model?e.model.idName:null},parentIdName:function(t,e){return e.model?e.model.parentIdName:null},nodeName:function(t,e){return e.model?e.model.nodeName:null},titleName:function(t,e){var r=e.model.attrs.find((function(t){return"title"===t.display}));return r?r.name:null},titleSchema:function(t,e){var r=e.model.attrs.find((function(t){return"title"===t.display}));return r||null},config:function(t,e){return function(t){var r;return e.schema&&e.schema.configs&&(r=e.schema.configs.find((function(e){return e.key===t}))),r?r.value:null}},wordbook:function(t){return function(e){return t.wordbooks[e]||[]}},find:function(t,e){return function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=t.data;if(!r)return n;"object"!==N(r)&&(r=T({},e.idName,r));var o=Object.keys(r);return n.filter((function(t){return o.every((function(e){return t[e]===r[e]}))}))}},findOne:function(t,e,r){return function(r){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=n||e.idName||"id",i=z(t.data.rows,r,o);return i?i[0][i[1]]:null}},findAll:function(t){var e=t.data.rows;return e},apiURL:function(t,e,r){var n=t.namespace,o=r.baseURL;return"".concat(o,"/api/").concat(n)},apiBaseURL:function(t,e,r){var n=r.baseURL;return n}}};t.registerModule(e,a)}function H(t){return H="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},H(t)}function Y(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Y=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(L){s=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var i=e&&e.prototype instanceof h?e:h,a=Object.create(i.prototype),c=new E(o||[]);return n(a,"_invoke",{value:_(t,r,c)}),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(L){return{type:"throw",arg:L}}}t.wrap=u;var f={};function h(){}function p(){}function d(){}var y={};s(y,i,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(S([])));m&&m!==e&&r.call(m,i)&&(y=m);var g=d.prototype=h.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,c){var s=l(t[n],t,i);if("throw"!==s.type){var u=s.arg,f=u.value;return f&&"object"==H(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return o("throw",t,a,c)}))}c(s.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function _(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=x(a,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=l(t,e,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=l(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function S(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return p.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:p,configurable:!0}),p.displayName=s(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,s(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),s(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),s(g,c,"Generator"),s(g,i,(function(){return this})),s(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=S,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:S(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function W(t,e,r,n,o,i,a){try{var c=t[i](a),s=c.value}catch(u){return void r(u)}c.done?e(s):Promise.resolve(s).then(n,o)}function Z(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){W(i,n,o,a,c,"next",t)}function c(t){W(i,n,o,a,c,"throw",t)}a(void 0)}))}}var X=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n={namespaced:!0,state:function(){return{namespace:e.slice(2),schema:null,views:[],actions:[],configs:[],params:[],rules:[],version:0,loading:!1,status:200,message:"",single:r}},mutations:{setSchema:function(t,e){t.schema=e},setViews:function(t,e){t.views=e},setStatus:function(t,e){var r=e.status,n=e.message;t.status=r,t.message=n},setLoading:function(t,e){t.loading=e},createViewStore:function(n,o){function i(n,o){n.model.attrs.filter((function(t){return"model"===t.metaType})).map((function(n){var a="".concat(o,"/:id/").concat(n.name);t.hasModule(a)||(K(t,a,e,n.name,r,n.subView),n.subView&&i(n.subView,a))}))}o.map((function(n){var o="v-".concat(e.slice(2)).concat(r?"":"-".concat(n.key));t.hasModule(o)||(K(t,o,e,n.key,r),i(n,o))}))},setViewData:function(t,e){}},actions:{loadSchema:function(t,e){return Z(Y().mark((function e(){var n,o,i,a,c,s,u,l,f,h;return Y().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.commit,o=t.state.namespace,n("setLoading",!0),e.prev=2,e.next=5,E.get("/schemas/".concat(o));case 5:i=e.sent,a=i.data,c=i.status,s=i.statusText,n("createViewStore",r?[a]:a.views),n("setViews",r?[a]:a.views),delete a.views,n("setSchema",a),n("setStatus",{status:c,message:a.message||s}),e.next=23;break;case 16:if(e.prev=16,e.t0=e["catch"](2),e.t0.response){e.next=20;break}return e.abrupt("return",n("setStatus",{status:0,message:"网络请求错误,请检查您的网络链接。"}));case 20:u=e.t0.response,l=u.status,f=u.data,h=f&&f.content||"系统错误请与管理员联系。",n("setStatus",{status:l,message:h});case 23:return e.prev=23,n("setLoading",!1),e.finish(23);case 26:case"end":return e.stop()}}),e,null,[[2,16,23,26]])})))()}},getters:{schema:function(t){return t.schema},views:function(t){return t.views},config:function(t){return function(e){return t.configs.find((function(t){return t.key===e}))}}}};t.registerModule(e,n)};function J(t){return J="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},J(t)}function Q(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function tt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Q(Object(r),!0).forEach((function(e){et(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Q(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function et(t,e,r){return e=rt(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function rt(t){var e=nt(t,"string");return"symbol"===J(e)?e:String(e)}function nt(t,e){if("object"!==J(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==J(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var ot=["loading","schema","status","message","single"],it=["loadSchema"],at=["views"],ct=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=Object(l["createNamespacedHelpers"])(t),n=r.mapState,o=r.mapActions,i=r.mapGetters;return{data:function(){return{storeNamespace:t}},computed:tt(tt({},n(ot)),i(at)),methods:tt({},o(it)),beforeCreate:function(){this.$store.hasModule(t)||X(this.$store,t,e)},created:function(){!this.schema&&this.loadSchema()},watch:{status:function(t){401===t&&(this.$router.push("/sign-in"),window.location.reload())}}}},st=function(t){return function(e){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return{extends:t,mixins:[ct("p-".concat(e),r)]}}},ut=function(){var t=this,e=t._self._c;return e("a-spin",{attrs:{spinning:t.loading,delay:50}},[e("layout-page-".concat(t.layout),{tag:"component",scopedSlots:t._u([t._l(t.slots,(function(r){return{key:r,fn:function(){return[e("views",{key:"slot-".concat(r),attrs:{views:t.slotViews(r),modelViewType:t.modelViewType}})]},proxy:!0}}))],null,!0)})],1)},lt=[];function ft(t){return yt(t)||dt(t)||pt(t)||ht()}function ht(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function pt(t,e){if(t){if("string"===typeof t)return vt(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?vt(t,e):void 0}}function dt(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function yt(t){if(Array.isArray(t))return vt(t)}function vt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var mt={props:{pageKey:{type:String,required:!0},layout:{type:String,default:"base"},modelViewType:{type:String}},provide:function(){return{page:this,view:null}},computed:{slots:function(){var t=["default","header","footer","sider","left","right"],e=this.$theme.layouts.page["".concat(this.layout.replace(/^\S/,(function(t){return t.toUpperCase()})),"Layout")].slots;return e&&Array.from(new Set([].concat(ft(e),t)))||[]}},methods:{slotViews:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default";return this.views.filter((function(e){return e.slot===t||"default"===t&&!e.slot}))}},activated:function(){},deactivated:function(){}},gt=function(){var t=this,e=t._self._c;return e("a-row",t._l(t.views,(function(r){return e("a-col",{key:r.key,attrs:{span:r.span||24}},[e("layout-view-".concat(r.layout||t.viewLayout),{tag:"component",attrs:{view:r}},[e("ViewBox",t._b({attrs:{view:r}},"ViewBox",t.$attrs,!1))],1)],1)})),1)},bt=[],wt=function(){var t=this,e=t._self._c;return e("keep-alive",[e(t.createView(),t._b({tag:"component",attrs:{pageKey:t.page.pageKey,viewKey:t.view.key,mode:"page",layout:"layout-view-model-list"}},"component",t.view,!1))],1)},_t=[];function xt(t){return xt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xt(t)}function Ot(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Ot=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(L){s=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var i=e&&e.prototype instanceof h?e:h,a=Object.create(i.prototype),c=new E(o||[]);return n(a,"_invoke",{value:_(t,r,c)}),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(L){return{type:"throw",arg:L}}}t.wrap=u;var f={};function h(){}function p(){}function d(){}var y={};s(y,i,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(S([])));m&&m!==e&&r.call(m,i)&&(y=m);var g=d.prototype=h.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,c){var s=l(t[n],t,i);if("throw"!==s.type){var u=s.arg,f=u.value;return f&&"object"==xt(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return o("throw",t,a,c)}))}c(s.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function _(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=x(a,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=l(t,e,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=l(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function S(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return p.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:p,configurable:!0}),p.displayName=s(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,s(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),s(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),s(g,c,"Generator"),s(g,i,(function(){return this})),s(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=S,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:S(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function kt(t,e,r,n,o,i,a){try{var c=t[i](a),s=c.value}catch(u){return void r(u)}c.done?e(s):Promise.resolve(s).then(n,o)}function Et(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){kt(i,n,o,a,c,"next",t)}function c(t){kt(i,n,o,a,c,"throw",t)}a(void 0)}))}}function St(t){return Nt(t)||Pt(t)||Lt(t)||jt()}function jt(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Lt(t,e){if(t){if("string"===typeof t)return At(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?At(t,e):void 0}}function Pt(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function Nt(t){if(Array.isArray(t))return At(t)}function At(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Ct(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Tt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Ct(Object(r),!0).forEach((function(e){It(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ct(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function It(t,e,r){return e=Mt(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Mt(t){var e=Dt(t,"string");return"symbol"===xt(e)?e:String(e)}function Dt(t,e){if("object"!==xt(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==xt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var qt=["loading","committing","data","status","message"],Rt=["loadSchema","loadData","saveData","executeData","removeData","resetStatus"],Bt=["schema","model","idName","nodeName","parentIdName","titleSchema","titleName","findAll","find","findOne","config","apiURL","apiBaseURL"],Ft=function(t){var e=Object(l["createNamespacedHelpers"])(t),r=e.mapState,n=e.mapActions,o=e.mapGetters,i=e.mapMutations;return{data:function(){return{storeNamespace:t}},computed:Tt(Tt(Tt({},r(qt)),o(Bt)),{},{configs:function(){var t=this.schema,e=t.configs,r=void 0===e?[]:e,n=t.resConfigs,o=void 0===n?[]:n,i=[].concat(St(r),St(o));return Object.fromEntries(i.map((function(t){var e=t.value;try{"JSON"===t.type&&(e=JSON.parse(t.value))}catch(r){}return[t.key,e]})))},defaults:function(){var t=this.schema,e=t.params,r=void 0===e?[]:e,n=t.resParams,o=void 0===n?[]:n,i=[].concat(St(r),St(o));return Object.fromEntries(i.map((function(t){var e=t.value;try{"JSON"===t.type&&(e=JSON.parse(t.value))}catch(r){}return[t.key,e]})))}}),methods:Tt(Tt({},i(["replaceNamespace"])),n(Rt)),created:function(){var t=this;return Et(Ot().mark((function e(){return Ot().wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.parentIds&&t.replaceNamespace(t.parentIds),t.delay||t.id||t.schema&&t.load();case 2:case"end":return e.stop()}}),e)})))()},watch:{status:function(t){401===t&&(this.$router.push("/sign-in"),window.location.reload())}}}},$t=function(t){return function(e){return{extends:t,mixins:[Ft("".concat(e))]}}},Vt=function(){var t=this,e=t._self._c;return e("a-spin",{staticStyle:{width:"100%"},attrs:{spinning:!t.schema||t.actioning}},[t.schema?e("div",[t.actionViewVisible&&"block"===t.actionViewMode?t._e():e(t.layout,{tag:"component",scopedSlots:t._u([t.configs["list.header"]?{key:"header",fn:function(){return[e(t.configs["list.header"],{tag:"component"})]},proxy:!0}:null,t.configs["list.footer"]?{key:"footer",fn:function(){return[e(t.configs["list.footer"],{tag:"component"})]},proxy:!0}:null,t.configs["list.sider"]?{key:"sider",fn:function(){return[e(t.configs["list.sider"],{tag:"component"})]},proxy:!0}:null,{key:"pagination",fn:function(){return[t.data.size?e("PaginationSize",{attrs:{total:t.data.count,current:Number(t.query.$limit),pageSize:Number(t.query._size),"show-total":function(e,r){return e?"当前页面 ".concat(r[0],"-").concat(r[1]," 项,选定 ").concat(t.selections.length," 项,共 ").concat(e," 项"):null},pageSizeOptions:["15","30","50","100"],"show-size-changer":""},on:{change:t.handlePaginationPageChange,showSizeChange:t.handleShowSizeChange}}):t._e()]},proxy:!0},t.actions.length?{key:"actions-none",fn:function(){return[e("ActionGroup",{attrs:{actions:t.actions},on:{action:t.handleAction}})]},proxy:!0}:null,{key:"actions-setting",fn:function(){return[e("ActionGroup",{attrs:{actions:t.settingActions},on:{action:t.handleAction}})]},proxy:!0},t.filters.length?{key:"filters",fn:function(){return[e("FilterForm",{attrs:{columns:t.filters,params:{$parent:t.params.$parent}},model:{value:t.query,callback:function(e){t.query=e},expression:"query"}})]},proxy:!0}:null,t.treeFilters.length?{key:"tree-filters",fn:function(){return[e("FilterForm",{attrs:{columns:t.treeFilters,params:{$parent:t.params.$parent},layout:"vertical"},model:{value:t.query,callback:function(e){t.query=e},expression:"query"}})]},proxy:!0}:null],null,!0)},[e("list-".concat(t.configs["list.widget"]||"table"),{tag:"component",attrs:{rowKey:t.idName,loading:t.loading,rowSelection:t.rowSelection,columns:t.columns,dataSource:t.dataSource,item:t.configs["list.item"],childrenColumnName:"_childList",rowClassName:t.listSeparateColor,scroll:{x:Number(t.configs["list.scrollX"])||null,y:Number(t.configs["list.scrollY"])||null}},on:{profile:function(e){return t.handleModelProfile(e)},"row-action":t.handleRowAction}})],1),t.actionViewVisible?e("Popup",{class:{"ant-modal-tip":t.actionParams.actionViewTip},attrs:{visible:t.actionViewVisible,title:t.action.name,type:t.actionViewMode,okButtonProps:t.actionOkButtonProps,cancelButtonProps:t.actionCancelButtonProps,width:t.configs["profile.popup.width"],footer:"hide"===t.actionParams.footer?null:void 0},on:{ok:t.submitActionView,close:t.closeActionView,cancel:t.closeActionView}},[t.actionViewVisible?e("ActionView",{attrs:{action:t.action,submited:t.actionSubmited,values:t.actionModel,modelViewType:t.actionViewType,widget:t.actionViewWidget,parentIds:t.parentIds,params:t.actionParams,commitResult:t.actionCommitResult,selections:t.selections,schema:t.schema},on:{commit:t.commitActionView,profile:t.handleModelProfile,close:t.closeActionView}}):t._e(),t.action.params&&t.action.params.autofill?e("a-row",{attrs:{slot:"footer",type:"flex",justify:"space-between",align:"middle"},slot:"footer"},[e("a-col",[e("a-checkbox",{on:{change:t.handleAutoFill}},[t._v(" 自动填充表单 ")])],1),e("a-col",[e("a-space",[e("a-button",{attrs:{icon:"close",disabled:t.committing},on:{click:t.closeActionView}},[t._v(" 取消 ")]),e("a-button",{attrs:{type:"primary",icon:"check",loading:t.committing},on:{click:t.submitActionView}},[t._v(" 确认 ")])],1)],1)],1):t._e()],1):t._e()],1):t._e()])},Ut=[],Gt={props:{pageKey:{type:String,required:!0},viewKey:{type:String,required:!0},type:{type:String,enum:["model-list","model-profile","model-form","model-sheet","report","nav","com","container","post-list","post-profile","post-form"]},widget:{type:[String,Object],enum:["list-normal","list-table","list-grid","list-menu","list-sheet","list-calendar","list-map","list-kanban","profile-tile","profile-group","form-normal","form-filter","form-setting","form-wizard","form-editor","report-chart","report-crosstab","report-com","report-map","report-canvas","nav-menu","nav-link","nav-flow"]},mode:{type:String,enum:["page","embed","picker","widget"]},title:String,subtitle:String,icon:String,description:String,params:{type:[Object,Array],default:function(){return{}}},options:Object,nestedLevel:{type:Number,default:0},delay:{type:Boolean,default:!1},defaultSelections:{type:[String],default:null}},inject:["page","view"],provide:function(){return{view:this}},activated:function(){},deactivated:function(){}},zt={props:{modelId:{type:String},parentIds:Array,parentModel:Object},provide:function(){return{model:this.model}},data:function(){return{}},computed:{hide:function(){var t=this.configs.hide;return t?Array.isArray(t)?t:t.split(","):[]}},methods:{}};function Kt(t){return Kt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Kt(t)}function Ht(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Ht=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(L){s=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var i=e&&e.prototype instanceof h?e:h,a=Object.create(i.prototype),c=new E(o||[]);return n(a,"_invoke",{value:_(t,r,c)}),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(L){return{type:"throw",arg:L}}}t.wrap=u;var f={};function h(){}function p(){}function d(){}var y={};s(y,i,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(S([])));m&&m!==e&&r.call(m,i)&&(y=m);var g=d.prototype=h.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,c){var s=l(t[n],t,i);if("throw"!==s.type){var u=s.arg,f=u.value;return f&&"object"==Kt(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return o("throw",t,a,c)}))}c(s.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function _(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=x(a,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=l(t,e,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=l(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function S(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return p.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:p,configurable:!0}),p.displayName=s(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,s(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),s(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),s(g,c,"Generator"),s(g,i,(function(){return this})),s(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=S,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:S(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function Yt(t,e,r,n,o,i,a){try{var c=t[i](a),s=c.value}catch(u){return void r(u)}c.done?e(s):Promise.resolve(s).then(n,o)}function Wt(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){Yt(i,n,o,a,c,"next",t)}function c(t){Yt(i,n,o,a,c,"throw",t)}a(void 0)}))}}function Zt(t){return te(t)||Qt(t)||Jt(t)||Xt()}function Xt(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Jt(t,e){if(t){if("string"===typeof t)return ee(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ee(t,e):void 0}}function Qt(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function te(t){if(Array.isArray(t))return ee(t)}function ee(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function re(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function ne(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?re(Object(r),!0).forEach((function(e){oe(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):re(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function oe(t,e,r){return e=ie(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ie(t){var e=ae(t,"string");return"symbol"===Kt(e)?e:String(e)}function ae(t,e){if("object"!==Kt(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Kt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var ce={props:{profileMode:{type:String,default:"page",enum:["page","embed","column","collapse","preview"]},layout:{type:String,default:"layout-view-model-list"}},data:function(){return{query:{},unwatchQuery:null}},computed:{columns:function(){var t=this,e=this.$createElement,r=this.idName,n=this.hide,o=this.model.attrs.filter((function(t){return!["all","list"].includes(t.hidden)&&!n.includes(t.name)&&t.name!==r&&"model"!==t.metaType&&"link"!==t.type})).map((function(r){var n=Object.fromEntries(r.configs.map((function(t){return[t.key,t.value]})));return{dataIndex:r.name,key:r.name,title:r.alias,align:["Integer","Number"].includes(r.metaType)?"right":"left",schema:r,width:n["list.width"],fixed:n["list.fixed"]||!1,ellipsis:"true"===n["list.ellipsis"],customRender:function(n,o,i){return e("Cell",{on:{profile:function(){return t.handleModelProfile(o)},change:function(e){return t.handleCellChange(e,r.name,o)}},attrs:{value:n,row:o,schema:r,editable:t.configs["list.actionRowNotEditing.key"]&&t.configs["list.actionRowNotEditing.value"]?t.actionRowEditing&&!t.configs["list.actionRowNotEditing.value"].split(",").includes(o[t.configs["list.actionRowNotEditing.key"]]):t.actionRowEditing,idName:t.idName,rowIndex:i}})}}})),i=[],a=null;return this.configs&&this.configs["list.collapse.action"]&&(isNaN(Number(this.configs["list.collapse.action"]))?i=this.configs["list.collapse.action"].split(","):a=Number(this.configs["list.collapse.action"])),this.inlineActions&&this.inlineActions.length&&!this.actionRowEditing&&o.push({title:"操作",key:"_action",fixed:this.configs["list.scrollX"]?"right":null,customRender:function(r,n){var o=null;return o=i.length?[e("span",[t.rowActions(n).filter((function(t){return!i.includes(t.key)})).map((function(r,o){return[o?e("a-divider",{attrs:{type:"vertical"}}):"",e("a",{on:{click:function(e){return t.handleRowAction(r,n,e)}}},[r.name,"file"===r.action?e("input",{attrs:{type:"file",name:"file"},style:"display: none",on:{change:function(e){t.onFileChange(r,e.target.files),e.target.value=""}}}):""])]}))]),t.rowActions(n).filter((function(t){return!i.includes(t.key)})).length?e("a-divider",{attrs:{type:"vertical"}}):"",e("a-dropdown",{attrs:{trigger:["click"]}},[e("a",{class:"ant-dropdown-link",on:{click:function(t){return t.preventDefault()}}},["更多 ",e("a-icon",{attrs:{type:"down"}})]),e("a-menu",{slot:"overlay"},[t.rowActions(n).filter((function(t){return i.includes(t.key)})).map((function(r,o){return e("a-menu-item",{key:r.id},[e("a",{on:{click:function(e){return t.handleRowAction(r,n,e)}}},[r.name,"file"===r.action?e("input",{attrs:{type:"file",name:"file"},style:"display: none",on:{change:function(e){t.onFileChange(r,e.target.files),e.target.value=""}}}):""])])}))])])]:a?[e("span",[t.rowActions(n).slice(0,a).map((function(r,o){return[o?e("a-divider",{attrs:{type:"vertical"}}):"",e("a",{on:{click:function(e){return t.handleRowAction(r,n,e)}}},[r.name,"file"===r.action?e("input",{attrs:{type:"file",name:"file"},style:"display: none",on:{change:function(e){t.onFileChange(r,e.target.files),e.target.value=""}}}):""])]}))]),t.rowActions(n).slice(0,a).length?e("a-divider",{attrs:{type:"vertical"}}):"",e("a-dropdown",{attrs:{trigger:["click"]}},[e("a",{class:"ant-dropdown-link",on:{click:function(t){return t.preventDefault()}}},["更多 ",e("a-icon",{attrs:{type:"down"}})]),e("a-menu",{slot:"overlay"},[t.rowActions(n).slice(a).map((function(r,o){return e("a-menu-item",{key:r.id},[e("a",{on:{click:function(e){return t.handleRowAction(r,n,e)}}},[r.name,"file"===r.action?e("input",{attrs:{type:"file",name:"file"},style:"display: none",on:{change:function(e){t.onFileChange(r,e.target.files),e.target.value=""}}}):""])])}))])])]:t.rowActions(n).map((function(r,o){return[o?e("a-divider",{attrs:{type:"vertical"}}):"",e("a",{on:{click:function(e){return t.handleRowAction(r,n,e)}}},[r.name,"file"===r.action?e("input",{attrs:{type:"file",name:"file"},style:"display: none",on:{change:function(e){t.onFileChange(r,e.target.files),e.target.value=""}}}):""])]})),{children:o}},actions:function(e){return t.rowActions(e)}}),o},configs:function(){return this.schema.configs&&this.schema.configs.length?Object.fromEntries(this.schema.configs.map((function(t){return[t.key,t.value]}))):null},filters:function(){var t=this;return this.model&&this.model.filters?this.model.filters.filter((function(e){return!t.hide.includes(e.name)&&!["tree-select"].includes(e.control)})).map((function(e){var r=t.model.attrs.find((function(t){return t.name===e.name}));return ne(ne({},r),e)})):[]},treeFilters:function(){var t=this;return this.model&&this.model.filters?this.model.filters.filter((function(e){return!t.hide.includes(e.name)&&["tree-select"].includes(e.control)})).map((function(e){var r=t.model.attrs.find((function(t){return t.name===e.name}));return ne(ne({},r),e)})):[]},filterValues:function(){var t=[].concat(Zt(this.filters),Zt(this.treeFilters)).filter((function(t){return!!t.value})).map((function(t){return[t.name,t.value]}));return ne(ne({},Object.fromEntries(t)),this.defaults)},dataSource:function(){return this.findAll},next:function(){var t=this,e=this.actionModel&&this.actionModel[this.idName],r=this.findAll.findIndex((function(r){return r[t.idName]===e}));return this.findAll[r+1]},previous:function(){var t=this,e=this.actionModel&&this.actionModel[this.idName],r=this.findAll.findIndex((function(r){return r[t.idName]===e}));return this.findAll[r-1]}},created:function(){var t=this;return Wt(Ht().mark((function e(){return Ht().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t.schema){e.next=3;break}return e.next=3,t.loadSchema();case 3:t.query=t.params.route&&t.params.route.query.close?ne(ne(ne({},t.query),t.params.filters),t.filterValues):ne(ne(ne(ne({},t.query),t.params.filters),t.filterValues),t.$route.query);case 4:case"end":return e.stop()}}),e)})))()},activated:function(){this.parentIds||"page"!==this.mode||j.a.stringify(this.query)!==j.a.stringify(this.$route.query)&&this.$router.push({query:this.query}),this.unwatchQuery=this.$watch("query",{handler:function(t,e){var r=Object.keys(t),n=Object.keys(e),o=r.some((function(e){return!n.includes(e)&&!t[e]}));o||(this.load(),this.clearSelection&&this.clearSelection(),!this.parentIds&&"page"===this.mode&&this.$router.push({query:this.query}))},deep:!0})},deactivated:function(){this.unwatchQuery&&this.unwatchQuery()},methods:{load:function(){var t=arguments,e=this;return Wt(Ht().mark((function r(){var n,o;return Ht().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return n=t.length>0&&void 0!==t[0]&&t[0],r.next=3,e.loadData({query:e.query,mute:n});case 3:return o=r.sent,r.abrupt("return",o);case 5:case"end":return r.stop()}}),r)})))()},handleNext:function(){this.actionModel=ne({},this.next)},handlePrevious:function(){this.actionModel=ne({},this.previous)},handleModelProfile:function(t){var e={name:this.titleName?String(this.formatter(t,t[this.titleName],this.titleSchema)):"详情",key:"_profile"};this.action=e,this.actionModel=ne({},t),this.actionParams={$parent:this.params.$parent},this.handleProfile(e)},handleProfile:function(t){var e=this.actionModel;this.parentIds||"page"!==this.mode?(this.actionViewMode="drawer",this.actionViewType="Profile",this.showActionView()):this.$router.push("".concat(this.$route.path,"/").concat(e[this.idName]))},handleFilterChange:function(t,e){this.query[t]?this.query[t]=e:this.$set(this.query,t,e)},listSeparateColor:function(t,e){var r=this.configs["list.separateKey"]||null,n=this.configs["list.separateValue"]||null;return r&&n&&t[r]===n?"list-separate-color":""},onFileChange:function(t,e){var r=t.list?t.list:"file";this.handleAction(t,null,oe({},r,e))}}},se={props:{paginationMode:{type:String,default:"auto",enum:["front","server","auto"]},paginationType:{type:String,default:"size",enum:["size","node","time"]}},data:function(){return{query:{$limit:1,$page:1,_size:15}}},methods:{handlePaginationPageChange:function(t){this.query.$limit=t,this.clearSelection&&this.clearSelection()},handleShowSizeChange:function(t,e){this.query._size=e,this.clearSelection&&this.clearSelection()}}};function ue(t){return pe(t)||he(t)||fe(t)||le()}function le(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function fe(t,e){if(t){if("string"===typeof t)return de(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?de(t,e):void 0}}function he(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function pe(t){if(Array.isArray(t))return de(t)}function de(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var ye={props:{pickerMode:{type:String,enum:["single","multiple"],default:"multiple"}},data:function(){return{selections:[]}},computed:{rowSelection:function(){var t=this;return this.pickerMode&&this.schema.handle?!this.bulkActions.length&&!this.pickerMode||this.actionRowEditing?null:{selectedRowKeys:this.selections.map((function(e){return e[t.idName]})),onChange:this.handleSelectionChange,type:"single"===this.pickerMode?"radio":"checkbox"}:null}},methods:{getSelection:function(){},addSelection:function(){},removeSelection:function(){},clearSelection:function(){"picker"===this.mode&&"multiple"===this.pickerMode||(this.selections=[])},handleSelectionChange:function(t){var e=this.idName,r=this.dataSource,n=function t(r,n){for(var o=0;o<r.length;o++){if(r[o][e]===n)return r[o];if(r[o]._childList){var i=t(r[o]._childList,n);if(i)return i}}return null};"picker"===this.mode&&"multiple"===this.pickerMode?(this.selections=[].concat(ue(this.selections),ue(t.map((function(t){return n(r,t)})).filter((function(t){return t})))),this.selections=Array.from(new Set(this.selections.map((function(t){return JSON.stringify(t)})))).map((function(t){return JSON.parse(t)})),this.selections=this.selections.filter((function(r){var n=t.findIndex((function(t){return t===r[e]}));return-1!==n}))):this.selections=t.map((function(t){return n(r,t)})),this.$emit("selected",this.selections)}}};function ve(t){return ve="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ve(t)}function me(t,e){return Object.keys(t).every((function(r){var n=t[r],o=r.split(".").reduce((function(t,e){return t&&Object.hasOwn(t,e)?t[e]:void 0}),e);if(o||""===o||null===o){if(Array.isArray(n))return n.includes(o);if("object"!==ve(n)||1!==Object.keys(n).length)return"object"===ve(n)&&Object.keys(n).length>1?me(n,e):n===o;if(n["!"]&&Array.isArray(n["!"]))return!n["!"].includes(o);if(n["!"])return n!==o;if(n[">"])return o>n[">"];if(n[">="])return o>=n[">="];if(n["<"])return o<n["<"];if(n["<="])return o<=n["<="]}}))}var ge=r("9f89");function be(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:/\${([\s\S]+?)}/g;return ge(t,{reInterpolate:r})(e)}function we(t){return we="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},we(t)}function _e(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_e=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(L){s=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var i=e&&e.prototype instanceof h?e:h,a=Object.create(i.prototype),c=new E(o||[]);return n(a,"_invoke",{value:_(t,r,c)}),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(L){return{type:"throw",arg:L}}}t.wrap=u;var f={};function h(){}function p(){}function d(){}var y={};s(y,i,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(S([])));m&&m!==e&&r.call(m,i)&&(y=m);var g=d.prototype=h.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,c){var s=l(t[n],t,i);if("throw"!==s.type){var u=s.arg,f=u.value;return f&&"object"==we(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return o("throw",t,a,c)}))}c(s.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function _(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=x(a,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=l(t,e,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=l(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function S(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return p.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:p,configurable:!0}),p.displayName=s(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,s(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),s(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),s(g,c,"Generator"),s(g,i,(function(){return this})),s(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=S,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:S(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function xe(t,e,r,n,o,i,a){try{var c=t[i](a),s=c.value}catch(u){return void r(u)}c.done?e(s):Promise.resolve(s).then(n,o)}function Oe(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){xe(i,n,o,a,c,"next",t)}function c(t){xe(i,n,o,a,c,"throw",t)}a(void 0)}))}}var ke=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;e?r&&r.viewMode&&"download"===r.viewMode?window.open("/file/getfile/".concat(e,"?_time=").concat((new Date).getTime(),"&viewMode=").concat(r.viewMode),"_blank"):window.open("/file/getfile/".concat(e,"?_time=").concat((new Date).getTime()),"_blank"):window.open("".concat(t,"/api/download?_time=").concat((new Date).getTime()),"_blank")},Ee={methods:{handleFile:function(t){var e=this;return Oe(_e().mark((function r(){var n,o,i,a;return _e().wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(n=t.list?t.list:"file",o=new FormData,i=e.idName,e.actionModel[n]){r.next=5;break}return r.abrupt("return");case 5:return o.append(n,e.actionModel[n][0]),e.actionModel[i]&&o.append(i,e.actionModel[i]),a=e.$message.loading("正在".concat(t.name,",请稍等..."),0),r.next=10,e.saveData({key:t.key,data:o});case 10:a();case 11:case"end":return r.stop()}}),r)})))()},handleFilesUpload:function(t){var e=this;return Oe(_e().mark((function t(){return _e().wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.actionViewWidget="upload-form",e.showActionView();case 2:case"end":return t.stop()}}),t)})))()},handleDownload:function(t){var e=this;return Oe(_e().mark((function r(){var n,o;return _e().wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(n=function(){var r=Oe(_e().mark((function r(){var n,o,i;return _e().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return n=e.$message.loading("正在".concat(t.name,",请稍等..."),0),r.next=3,e.executeData({key:t.key,data:e.actionModel||e.selections[0]});case 3:o=r.sent,n(),o instanceof Error||(i=o&&o.file_id?o.file_id:null,ke(e.apiBaseURL,i,{viewMode:"download"}));case 6:case"end":return r.stop()}}),r)})));return function(){return r.apply(this,arguments)}}(),!t.params||!t.params.confirm){r.next=6;break}o=t.params.confirm,e.$confirm({title:o.title||t.name,content:o.content||"您确认要执行【".concat(t.name,"】操作吗?"),onOk:function(){n()}}),r.next=8;break;case 6:return r.next=8,n();case 8:case"end":return r.stop()}}),r)})))()},handleExport:function(t){var e=arguments,r=this;return Oe(_e().mark((function n(){var o,i,a;return _e().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(o=e.length>1&&void 0!==e[1]&&e[1],i=function(){var e=Oe(_e().mark((function e(){var n,i,a;return _e().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=r.$message.loading("正在".concat(t.name,",请稍等..."),0),e.next=3,r.executeData({key:t.key,data:r.selections.length?o?r.selections[0]:r.selections:r.actionModel||{}});case 3:i=e.sent,n(),i instanceof Error||(a=i&&i.file_id?i.file_id:null,ke(r.apiBaseURL,a));case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),!t.params||!t.params.confirm){n.next=7;break}a=t.params.confirm,r.$confirm({title:a.title||t.name,content:a.content||"您确认要执行【".concat(t.name,"】操作吗?"),onOk:function(){i()}}),n.next=9;break;case 7:return n.next=9,i();case 9:case"end":return n.stop()}}),n)})))()},handleExportFilter:function(t){var e=this;return Oe(_e().mark((function r(){var n,o;return _e().wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(n=function(){var r=Oe(_e().mark((function r(){var n,o,i;return _e().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return n=e.$message.loading("正在".concat(t.name,",请稍等..."),0),r.next=3,e.executeData({key:t.key,data:e.selections.length?e.selections:{},query:e.query});case 3:o=r.sent,n(),o instanceof Error||(i=o&&o.file_id?o.file_id:null,ke(e.apiBaseURL,i));case 6:case"end":return r.stop()}}),r)})));return function(){return r.apply(this,arguments)}}(),!t.params||!t.params.confirm){r.next=6;break}o=t.params.confirm,e.$confirm({title:o.title||t.name,content:o.content||"您确认要执行【".concat(t.name,"】操作吗?"),onOk:function(){n()}}),r.next=8;break;case 6:return r.next=8,n();case 8:case"end":return r.stop()}}),r)})))()},handleExportOne:function(t){this.handleExport(t,!0)}}};function Se(t){return Se="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Se(t)}function je(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Le(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?je(Object(r),!0).forEach((function(e){Pe(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):je(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Pe(t,e,r){return e=Ne(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ne(t){var e=Ae(t,"string");return"symbol"===Se(e)?e:String(e)}function Ae(t,e){if("object"!==Se(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Se(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function Ce(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Ce=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(L){s=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var i=e&&e.prototype instanceof h?e:h,a=Object.create(i.prototype),c=new E(o||[]);return n(a,"_invoke",{value:_(t,r,c)}),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(L){return{type:"throw",arg:L}}}t.wrap=u;var f={};function h(){}function p(){}function d(){}var y={};s(y,i,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(S([])));m&&m!==e&&r.call(m,i)&&(y=m);var g=d.prototype=h.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,c){var s=l(t[n],t,i);if("throw"!==s.type){var u=s.arg,f=u.value;return f&&"object"==Se(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return o("throw",t,a,c)}))}c(s.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function _(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=x(a,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=l(t,e,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=l(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function S(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return p.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:p,configurable:!0}),p.displayName=s(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,s(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),s(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),s(g,c,"Generator"),s(g,i,(function(){return this})),s(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=S,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:S(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function Te(t,e,r,n,o,i,a){try{var c=t[i](a),s=c.value}catch(u){return void r(u)}c.done?e(s):Promise.resolve(s).then(n,o)}function Ie(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){Te(i,n,o,a,c,"next",t)}function c(t){Te(i,n,o,a,c,"throw",t)}a(void 0)}))}}var Me=r("9f89"),De=/\${([\s\S]+?)}/g,qe={methods:{handleViewPicker:function(t){var e=this;return Ie(Ce().mark((function t(){return Ce().wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.actionViewWidget="picker-view-form",e.showActionView();case 2:case"end":return t.stop()}}),t)})))()},handleTreeSelect:function(t){var e=this;return Ie(Ce().mark((function r(){var n,o,i,a,c,s,u,l,f,h;return Ce().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return n=t.params,o=n.treeUrl,i=n.dataUrl,a=n.keyName,c=n.titleName,s=n.valueName,u=n.valuesName,e.actioning=!0,l=Le(Le({},e.actionModel),{},{$parent:e.actionParams.$parent}),r.next=5,e.$api.get(Me(o,{reInterpolate:De})(l));case 5:return f=r.sent,r.next=8,e.$api.get(Me(i,{reInterpolate:De})(l));case 8:h=r.sent,e.actioning=!1,e.actionParams=Le(Le({},e.actionParams),{},{treeData:f.data&&f.data.collection,data:h.data&&h.data.collection,keyName:a,titleName:c,valueName:s,valuesName:u}),e.actionViewWidget="picker-tree-form",e.showActionView();case 13:case"end":return r.stop()}}),r)})))()},handleTransferSelect:function(t){var e=this;return Ie(Ce().mark((function r(){var n,o,i,a,c,s,u,l,f,h,p;return Ce().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return n=t.params,o=n.treeUrl,i=n.dataUrl,a=n.keyName,c=n.titleName,s=n.valueName,u=n.valuesName,l=n.selected,e.actioning=!0,f=Le(Le({},e.actionModel),{},{$parent:e.actionParams.$parent}),r.next=5,e.$api.get(Me(o,{reInterpolate:De})(f));case 5:return h=r.sent,r.next=8,e.$api.get(Me(i,{reInterpolate:De})(f));case 8:p=r.sent,e.actioning=!1,e.actionParams=Le(Le({},e.actionParams),{},{treeData:h.data&&h.data.collection,data:p.data&&p.data.collection,keyName:a,titleName:c,valueName:s,valuesName:u,selected:l}),e.actionViewWidget="picker-transfer-form",e.showActionView();case 13:case"end":return r.stop()}}),r)})))()},handleAlgorithm:function(){var t=this;return Ie(Ce().mark((function e(){return Ce().wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.actionViewWidget="algorithm-form",t.actionViewMode="fullscreen",t.showActionView();case 3:case"end":return e.stop()}}),e)})))()},handleSelectViewPicker:function(t){var e=this;return Ie(Ce().mark((function r(){var n,o,i,a,c;return Ce().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return n=t.params,o=n.treeUrl,i=n.valuesName,e.actioning=!0,a=Le(Le({},e.actionModel),{},{$parent:e.actionParams.$parent}),r.next=5,e.$api.get(Me(o,{reInterpolate:De})(a));case 5:c=r.sent,e.actioning=!1,e.actionParams=Le(Le({},e.actionParams),{},{treeData:c.data&&c.data.collection,valuesName:i}),e.actionViewWidget="picker-select-view-form",e.showActionView();case 10:case"end":return r.stop()}}),r)})))()}}};function Re(t){return Re="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Re(t)}function Be(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Fe(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Be(Object(r),!0).forEach((function(e){Ge(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Be(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function $e(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */$e=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(L){s=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var i=e&&e.prototype instanceof h?e:h,a=Object.create(i.prototype),c=new E(o||[]);return n(a,"_invoke",{value:_(t,r,c)}),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(L){return{type:"throw",arg:L}}}t.wrap=u;var f={};function h(){}function p(){}function d(){}var y={};s(y,i,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(S([])));m&&m!==e&&r.call(m,i)&&(y=m);var g=d.prototype=h.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,c){var s=l(t[n],t,i);if("throw"!==s.type){var u=s.arg,f=u.value;return f&&"object"==Re(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return o("throw",t,a,c)}))}c(s.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function _(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=x(a,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=l(t,e,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=l(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function S(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return p.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:p,configurable:!0}),p.displayName=s(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,s(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),s(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),s(g,c,"Generator"),s(g,i,(function(){return this})),s(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=S,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:S(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function Ve(t,e,r,n,o,i,a){try{var c=t[i](a),s=c.value}catch(u){return void r(u)}c.done?e(s):Promise.resolve(s).then(n,o)}function Ue(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){Ve(i,n,o,a,c,"next",t)}function c(t){Ve(i,n,o,a,c,"throw",t)}a(void 0)}))}}function Ge(t,e,r){return e=ze(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ze(t){var e=Ke(t,"string");return"symbol"===Re(e)?e:String(e)}function Ke(t,e){if("object"!==Re(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Re(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var He={mixins:[Ee,qe],methods:{handleRowAction:function(){},handleFindAll:function(){},handleFindOne:function(){},handleCreate:function(t){this.formMode="create",this.parentIdName&&this.actionModel&&(this.actionModel=Ge({},this.parentIdName,this.actionModel[this.nodeName])),this.showActionView()},handleUpdate:function(t){this.formMode="update",this.showActionView()},handleDelete:function(t){var e=this;return Ue($e().mark((function r(){return $e().wrap((function(r){while(1)switch(r.prev=r.next){case 0:e.$confirm({title:t.name,content:"此操作将永久删除该数据, 是否继续?",okText:"确定",cancelText:"取消",onOk:function(){var r=Ue($e().mark((function r(){return $e().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return r.next=2,e.removeData({key:t.key,method:t.method||"delete",data:e.profile?[e.profile[e.idName]]:e.selections.length?e.selections.map((function(t){return t[e.idName]})):[e.actionModel[e.idName]]});case 2:e.selections=[],e.id?e.handleBack():e.findAll.length||e.load&&e.load();case 4:case"end":return r.stop()}}),r)})));function n(){return r.apply(this,arguments)}return n}()});case 1:case"end":return r.stop()}}),r)})))()},handleBulkEdit:function(){this.actionRowEditing=!0},handleCancelEdit:function(){var t=this;return Ue($e().mark((function e(){return $e().wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.editions.length?t.editions.length&&t.$confirm({title:"提示",content:"已编辑数据将无法保存, 是否继续?",okText:"确定",cancelText:"取消",onOk:function(){t.closeActionView()}}):t.closeActionView();case 1:case"end":return e.stop()}}),e)})))()},handleSaveEdit:function(){var t=arguments,e=this;return Ue($e().mark((function r(){return $e().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return t.length>0&&void 0!==t[0]?t[0]:e.formAction,e.actioning=!0,r.next=4,e.commitActionView(e.editions);case 4:e.actioning=!1;case 5:case"end":return r.stop()}}),r)})))()},handleOne:function(t){var e=this;return Ue($e().mark((function r(){return $e().wrap((function(r){while(1)switch(r.prev=r.next){case 0:e.handleBulk(t,1);case 1:case"end":return r.stop()}}),r)})))()},handleBulk:function(t){var e=arguments,r=this;return Ue($e().mark((function n(){var o,i,a;return $e().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(o=e.length>1&&void 0!==e[1]?e[1]:0,i=r.selections.length,!(o&&i>o)){n.next=4;break}return n.abrupt("return",r.$message.error("所选数据不允许超过 ".concat(o," 条")));case 4:a=i>1?" ".concat(i," 条"):"",r.$confirm({title:t.name,content:"确认对选定的".concat(a,"数据进行【").concat(t.name,"】操作?"),okText:"确定",cancelText:"取消",onOk:function(){var e=Ue($e().mark((function e(){return $e().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,r.saveData({method:t.method||"post",key:t.key,data:r.selections.length?r.selections:[r.actionModel],type:t.params&&t.params.commit?t.params.commit.type:""});case 2:t.params&&t.params.commit&&"remove"===t.params.commit.type&&(r.id?r.handleBack():r.findAll.length||r.load&&r.load());case 3:case"end":return e.stop()}}),e)})));function n(){return e.apply(this,arguments)}return n}()});case 6:case"end":return n.stop()}}),n)})))()},handleEver:function(t){var e=this;return Ue($e().mark((function r(){var n;return $e().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return n=e.$message.loading("正在".concat(t.name,",请稍等..."),0),r.next=3,e.executeData({key:t.key,data:{},query:e.query?e.query:{}});case 3:n();case 4:case"end":return r.stop()}}),r)})))()},handleRouter:function(t){var e=this;return Ue($e().mark((function r(){var n;return $e().wrap((function(r){while(1)switch(r.prev=r.next){case 0:n=t.legend,n=be(n,Fe({$parent:e.params.$parent,user:e.$store.state.user},e.actionModel)),e.$router.push(n);case 3:case"end":return r.stop()}}),r)})))()},handleLink:function(t){var e=this;return Ue($e().mark((function r(){var n;return $e().wrap((function(r){while(1)switch(r.prev=r.next){case 0:n=t.legend,n=be(n,Fe({$parent:e.params.$parent,user:e.$store.state.user},e.actionModel)),window.open(n,"_blank");case 3:case"end":return r.stop()}}),r)})))()},handleRefresh:function(){var t=this;return Ue($e().mark((function e(){var r,n;return $e().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!t.load){e.next=5;break}return e.next=3,t.load();case 3:r=e.sent,r instanceof Error&&(n=r.response.data.code,404===n&&t.handleBack());case 5:case"end":return e.stop()}}),e)})))()},handleBack:function(){this.parentIds||"page"!==this.mode?this.$emit("close"):this.$router.back()},handleAutoFill:function(t){this.defaultModel||(this.defaultModel=Fe({},this.actionModel));var e=this.schema.id,r=t.target.checked,n=JSON.parse(localStorage.getItem("form_".concat(e)));if(n)for(var o in n)r?this.$set(this.actionModel,o,n[o]):this.$set(this.actionModel,o,this.defaultModel[o])}}};function Ye(t){return Ye="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ye(t)}function We(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */We=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(L){s=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var i=e&&e.prototype instanceof h?e:h,a=Object.create(i.prototype),c=new E(o||[]);return n(a,"_invoke",{value:_(t,r,c)}),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(L){return{type:"throw",arg:L}}}t.wrap=u;var f={};function h(){}function p(){}function d(){}var y={};s(y,i,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(S([])));m&&m!==e&&r.call(m,i)&&(y=m);var g=d.prototype=h.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,c){var s=l(t[n],t,i);if("throw"!==s.type){var u=s.arg,f=u.value;return f&&"object"==Ye(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return o("throw",t,a,c)}))}c(s.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function _(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=x(a,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=l(t,e,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=l(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function S(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return p.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:p,configurable:!0}),p.displayName=s(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,s(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),s(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),s(g,c,"Generator"),s(g,i,(function(){return this})),s(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=S,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:S(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function Ze(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Xe(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Ze(Object(r),!0).forEach((function(e){Je(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ze(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Je(t,e,r){return e=Qe(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Qe(t){var e=tr(t,"string");return"symbol"===Ye(e)?e:String(e)}function tr(t,e){if("object"!==Ye(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Ye(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function er(t,e,r,n,o,i,a){try{var c=t[i](a),s=c.value}catch(u){return void r(u)}c.done?e(s):Promise.resolve(s).then(n,o)}function rr(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){er(i,n,o,a,c,"next",t)}function c(t){er(i,n,o,a,c,"throw",t)}a(void 0)}))}}var nr={methods:{handleFlowReport:function(t){var e=this;return rr(We().mark((function r(){var n,o;return We().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return n=e.actionModel,e.actionConfirmMode=e.actioning=!0,r.next=4,e.saveData({key:t.key,data:Xe({},n)});case 4:if(o=r.sent,e.actionConfirmMode=e.actioning=!1,o.data){r.next=8;break}return r.abrupt("return");case 8:e.actionModel=Xe(Xe({},n),{},{confirm:1,todo_actors:[]}),e.actionViewWidget=e.getActionWidget(t)||"workflow-report",e.actionParams.flow=o,e.actionViewVisible=!0;case 12:case"end":return r.stop()}}),r)})))()},handleFlowCheck:function(t){var e=this;return rr(We().mark((function r(){var n,o;return We().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return n=e.actionModel,e.actionConfirmMode=e.actioning=!0,r.next=4,e.saveData({key:t.key,data:Xe({},n)});case 4:if(o=r.sent,e.actionConfirmMode=e.actioning=!1,o.data){r.next=8;break}return r.abrupt("return");case 8:e.actionViewWidget=e.getActionWidget(t)||"workflow-report",e.actionModel=Xe(Xe({},n),{},{data:Xe({},o.data),confirm:1,deal_note:"",flow_action_name:"submit",form_param:[],todo_actors:[],todo_id:o.data.todo_id,back_step:""}),e.actionParams.flow=o,e.actionViewVisible=!0;case 12:case"end":return r.stop()}}),r)})))()},handleFlowReassign:function(t){var e=this;return rr(We().mark((function r(){var n,o;return We().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return n=e.actionModel,e.actionConfirmMode=e.actioning=!0,r.next=4,e.saveData({key:t.key,data:Xe({},n)});case 4:if(o=r.sent,e.actionConfirmMode=e.actioning=!1,o.data){r.next=8;break}return r.abrupt("return");case 8:e.actionViewWidget=e.getActionWidget(t)||"workflow-report",e.actionModel=Xe(Xe({},n),{},{data:Xe({},o.data),confirm:1,deal_note:"",flow_action_name:"reassign",form_param:[],todo_actors:[],todo_id:o.data.todo_id,back_step:""}),e.actionParams.flow=o,e.actionViewVisible=!0;case 12:case"end":return r.stop()}}),r)})))()},handleFlowQuery:function(t){var e=this;return rr(We().mark((function r(){var n,o;return We().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return n=e.actionModel,e.actionConfirmMode=e.actioning=!0,r.next=4,e.saveData({key:t.key,data:Xe({},n)});case 4:if(o=r.sent,e.actionConfirmMode=e.actioning=!1,o.data){r.next=8;break}return r.abrupt("return");case 8:e.actionViewWidget=e.getActionWidget(t)||"workflow-report",e.actionParams.flow=o,e.actionViewVisible=!0;case 11:case"end":return r.stop()}}),r)})))()},getActionWidget:function(t){var e=null;return t.configs.length&&(e=Object.fromEntries(t.configs.map((function(t){return[t.key,t.value]})))),e&&e["action.widget"]?e["action.widget"]:void 0}}};function or(t){return or="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},or(t)}function ir(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ir=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(L){s=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var i=e&&e.prototype instanceof h?e:h,a=Object.create(i.prototype),c=new E(o||[]);return n(a,"_invoke",{value:_(t,r,c)}),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(L){return{type:"throw",arg:L}}}t.wrap=u;var f={};function h(){}function p(){}function d(){}var y={};s(y,i,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(S([])));m&&m!==e&&r.call(m,i)&&(y=m);var g=d.prototype=h.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,c){var s=l(t[n],t,i);if("throw"!==s.type){var u=s.arg,f=u.value;return f&&"object"==or(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return o("throw",t,a,c)}))}c(s.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function _(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=x(a,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=l(t,e,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=l(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function S(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return p.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:p,configurable:!0}),p.displayName=s(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,s(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),s(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),s(g,c,"Generator"),s(g,i,(function(){return this})),s(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=S,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:S(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function ar(t,e,r,n,o,i,a){try{var c=t[i](a),s=c.value}catch(u){return void r(u)}c.done?e(s):Promise.resolve(s).then(n,o)}function cr(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){ar(i,n,o,a,c,"next",t)}function c(t){ar(i,n,o,a,c,"throw",t)}a(void 0)}))}}var sr={methods:{commit:function(){return cr(ir().mark((function t(){return ir().wrap((function(t){while(1)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)})))()}}};function ur(t){return ur="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ur(t)}function lr(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */lr=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(L){s=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var i=e&&e.prototype instanceof h?e:h,a=Object.create(i.prototype),c=new E(o||[]);return n(a,"_invoke",{value:_(t,r,c)}),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(L){return{type:"throw",arg:L}}}t.wrap=u;var f={};function h(){}function p(){}function d(){}var y={};s(y,i,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(S([])));m&&m!==e&&r.call(m,i)&&(y=m);var g=d.prototype=h.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,c){var s=l(t[n],t,i);if("throw"!==s.type){var u=s.arg,f=u.value;return f&&"object"==ur(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return o("throw",t,a,c)}))}c(s.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function _(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=x(a,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=l(t,e,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=l(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function S(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return p.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:p,configurable:!0}),p.displayName=s(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,s(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),s(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),s(g,c,"Generator"),s(g,i,(function(){return this})),s(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=S,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:S(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function fr(t,e,r,n,o,i,a){try{var c=t[i](a),s=c.value}catch(u){return void r(u)}c.done?e(s):Promise.resolve(s).then(n,o)}function hr(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){fr(i,n,o,a,c,"next",t)}function c(t){fr(i,n,o,a,c,"throw",t)}a(void 0)}))}}function pr(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function dr(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?pr(Object(r),!0).forEach((function(e){yr(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):pr(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function yr(t,e,r){return e=vr(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function vr(t){var e=mr(t,"string");return"symbol"===ur(e)?e:String(e)}function mr(t,e){if("object"!==ur(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==ur(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var gr={create:["createonly","write","deepwrite"],update:["updateonly","write","deepwrite"]},br={mixins:[He,nr,sr],data:function(){return{action:null,actioning:!1,submitting:!1,actionViewMode:"modal",actionViewType:"Form",actionViewWidget:"normal-form",actionViewVisible:!1,actionModel:null,actionParams:{},actionViewShowRules:[],actionSubmited:0,actionConfirmMode:!1,actionRowEditing:!1,actionCommitResult:{template:null,data:null},defaultModel:null,unwatchs:[],editions:[],preview:!1}},computed:{actions:function(){var t=this,e=this.model.actions?this.model.actions.filter((function(e){return("none"===e.selected&&!t.selections.length&&!t.profile||"single"===e.selected&&(1===t.selections.length||t.profile&&"profile"!==e.action)||"somewhat"===e.selected&&(t.selections.length||t.profile)||"mulpitle"===e.selected&&t.selections.length>1||!e.selected)&&t.showAction(e)&&!t.actionRowEditing})):[];return e},bulkActions:function(){var t=this.model.actions;return t?t.filter((function(t){return["somewhat","mulpitle"].includes(t.selected)})):[]},backActions:function(){return[{key:"_back",name:"返回",icon:"left",action:"back"}]},navActions:function(){return this.previous||this.next?[{key:"_previous",name:"",icon:"left",action:"previous",disabled:!this.previous},{key:"_next",name:"",icon:"right",action:"next",disabled:!this.next}]:[]},settingActions:function(){var t=[{key:"",name:"保存",icon:"save",method:"PUT",action:"saveEdit",primary:"1"},{key:"_cancle",name:"取消",icon:"stop",action:"cancelEdit",group:"1"}];return this.actionRowEditing?this.editions.length?t:t.filter((function(t){return["cancelEdit"].includes(t.action)})):[{key:"_refresh",name:"",icon:"reload",action:"refresh"}]},inlineActions:function(){return this.model.actions&&this.model.actions.filter((function(t){return["single","somewhat"].includes(t.selected)}))},sheetActions:function(){},firstAction:function(){},lastAction:function(){},actionOkButtonProps:function(){return{props:{loading:this.committing,icon:"check"}}},actionCancelButtonProps:function(){return{props:{disabled:this.committing,icon:"close"}}}},methods:{rowActions:function(t){var e=this;return this.inlineActions.filter((function(r){return e.showAction(r,t)}))},showAction:function(t,e){var r=t.params&&!!t.params.show,n=t.params&&(t.params.show||t.params.hide),o=this.params||this,i=o.$parent;if(!n)return!0;var a=this.profile?[this.profile]:e?[e]:this.selections||[],c=r;return a.length?c=a.every((function(t){return me(n,dr(dr({},t),{},{$parent:i}))})):i&&(c=me(n,{$parent:i})),r?c:!c},actionBeforeDriver:function(t){var e=this;return hr(lr().mark((function r(){var n,o,i,a,c,s,u;return lr().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,e.$api.get("/dataset/".concat(t,"?").concat(j.a.stringify(e.$store.state.user)));case 3:if(n=r.sent,o=n.data.data,i=void 0===o?[]:o,!i.length){r.next=14;break}if("500"!==i[0].code){r.next=12;break}return e.$message.error(i[0].content),r.abrupt("return",!1);case 12:if("200"!==i[0].code){r.next=14;break}return r.abrupt("return",!0);case 14:r.next=22;break;case 16:r.prev=16,r.t0=r["catch"](0),r.t0.response||e.$message.error("网络请求错误,请检查您的网络连接。"),a=r.t0.response,c=a.status,s=a.data,u=s&&s.content||"系统错误请与管理员联系。",e.$message.error("".concat(c,", ").concat(u));case 22:case"end":return r.stop()}}),r,null,[[0,16]])})))()},handleRowAction:function(t,e,r){var n=r.target.getElementsByTagName("input");if(this.selections=[e],"file"!==t.action)return this.handleAction(t,e);r.stopPropagation(),n[0]&&void 0===n[0].click()||r.path&&r.path[1].getElementsByTagName("input")[0].click()},handleAction:function(t,e,r){var n=this;return hr(lr().mark((function o(){var i,a,c,s,u;return lr().wrap((function(o){while(1)switch(o.prev=o.next){case 0:if(n.action=t,i=n.action.params,a=void 0===i?{}:i,c=a.actionBeforeDriver,s=void 0===c?"":c,!s){o.next=8;break}return o.next=5,n.actionBeforeDriver(s);case 5:if(u=o.sent,u){o.next=8;break}return o.abrupt("return",!1);case 8:return e||(e=n.profile||n.selections[0]||{}),["modal","drawer","fullscreen"].includes(t.display)&&(n.actionViewMode=t.display),n.actionModel=dr(dr(dr({},e),r),n.defaults),n.actionParams=dr(dr({},t.params),{},{$parent:n.params.$parent}),"page"===t.display?n.routeAction(t):n.dispatchAction(t),o.abrupt("return",n);case 14:case"end":return o.stop()}}),o)})))()},handleCellChange:function(t,e,r){var n=this.idName,o=this.editions.find((function(t){return t[n]===r[n]}));o||(o=dr({},r),this.editions.push(o)),o[e]=t},trigger:function(t){var e=this.actions.find((function(e){return e.key===t}));return this.dispatchAction(e),this},dispatchAction:function(t){var e={POST:"handleCreate",PUT:"handleUpdate",DELETE:"handleDelete","e.send-email":"handleSendMail","e.flow-report":"handleFlowReport","e.flow-query":"handleFlowQuery","e.flow-submit":"handleFlowCheck","e.flow-check":"handleFlowCheck","e.flow-open":"handleFlowCheck","e.flow-reassign":"handleFlowReassign",viewSelect:"handleViewPicker",algorithm:"handleAlgorithm"};try{if(t.action&&e[t.action])this[e[t.action]](t);else if(t.action){var r=t.action.replace(/^\S/,(function(t){return t.toUpperCase()}));this["handle".concat(r)](t)}else this[e[t.method]](t)}catch(n){this.$message.error("前端事件异常【".concat(t.name,"】"))}return this},routeAction:function(t){return this.$router.push({path:t.key}),this},showActionView:function(){this.actionViewVisible=!0},submitActionView:function(){this.submitting=!0,this.actionSubmited=(new Date).getTime()},commitActionView:function(t){var e=arguments,r=this;return hr(lr().mark((function n(){var o,i,a,c,s,u,l,f,h,p,d,y,v,m,g,b,w,_,x,O,k,E,S;return lr().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return o=e.length>1&&void 0!==e[1]?e[1]:null,o&&(r.preview=o.preview),i=r.selections,a=r.actionModel,c=r.idName,s=r.editions,u=r.action,l=u.key,f=u.method,h=u.params,p=void 0===h?{}:h,d=p.commit,y=void 0===d?{}:d,v=y.type,m=y.redirectProfile,g=p.autofill,b=r.schema,i.length>1?(delete t[c],t=i.map((function(e){return dr(dr({},e),t)}))):a&&!s.length&&(t=dr(dr({},a),t)),w=Object.keys(t).every((function(e){return!(t[e]instanceof File)&&!(t[e]&&t[e]instanceof Array&&t[e].some((function(t){return t instanceof File})))})),_={},x=Object.keys(t).find((function(e){return t[e]&&t[e]instanceof Array&&t[e].some((function(t){return t instanceof File}))}))?"1":"0","1"===x&&(_.multiple=x),w||(t=r.transformData(t)),n.next=11,r.saveData({data:t,key:l,method:f,query:_,type:v,params:o});case 11:if(O=n.sent,O){if(g){for(S in k=dr({},O),E=r.filterColumns().map((function(t){return t.name})),k)E.includes(S)||delete k[S];localStorage.setItem("form_".concat(b.id),JSON.stringify(k))}r.actionCommitResult.data=function(){return{data:O}},m&&r.handleModelProfile&&r.handleModelProfile(O),r.id&&v&&"remove"===v&&r.handleBack()}case 13:case"end":return n.stop()}}),n)})))()},filterColumns:function(){var t=this.action,e=this.params,r=this.model,n=this.hide,o=this.formMode,i=t&&t.view?t.view.model.attrs:e&&e.attrs?e.attrs:r.attrs?r.attrs:[];if(t&&t.list){var a=this.action.list.split(",");return i.filter((function(t){return!n.includes(t.name)&&a.includes(t.name)}))}return i.filter((function(t){return gr[o].includes(t.access)&&!n.includes(t.name)&&"collection"!==t.metaType&&"model"!==t.metaType&&"link"!==t.type}))},transformData:function(t){var e=new FormData;for(var r in t)if("object"!==ur(t[r])||t[r]instanceof File)e.append("".concat(r),t[r]);else for(var n in t[r])Array.isArray(t[r])?e.append("".concat(r),t[r][n]instanceof File||"object"!==ur(t[r][n])?t[r][n]:JSON.stringify(t[r][n])):e.append("".concat(r,".").concat(n),t[r][n]instanceof File||"object"!==ur(t[r][n])?t[r][n]:JSON.stringify(t[r][n]));return e},closeActionView:function(t){return this.action=null,this.formModal=null,this.actionViewVisible=!1,this.submitting=!1,this.actionViewMode="modal",this.actionViewType="Form",this.actionViewWidget="normal-form",this.actionViewStoreNamespace=null,this.actionParams={},this.actionCommitResult={template:null,data:null},this.actionRowEditing=!1,this.editions=[],this.clearSelection&&this.clearSelection(),this.defaultModel=null,this},handleUpdateStatus:function(t){t>399&&this.message&&(this.$message.error(this.message),this.resetStatus())},handleUpdateMessage:function(t){var e=this.action&&this.action.configs,r=e&&e.find((function(t){return"result"===t.key}));200===this.status&&t&&(!this.actionConfirmMode&&this.$message.success(t),r?this.actionCommitResult.template=r.value:this.actionConfirmMode||!this.preview&&this.closeActionView()),this.resetStatus()}},activated:function(){this.unwatchs=[this.$watch("status",this.handleUpdateStatus),this.$watch("message",this.handleUpdateMessage)]},deactivated:function(){this.unwatchs.map((function(t){return t()})),this.unwatchs=[]}},wr=function(t,e){var r=t,n=e.list.split(",").map((function(t){return t.split(":")}));return r=n.find((function(e){return String(e[0])===String(t)})),r=r?r[1]?r[1]:r[0]:"-",r},_r=function(t,e){var r=t,n=e.typeObject.model.attrs.find((function(t){return"title"===t.display})),o=e.typeObject.model.idName;function i(t,e){for(var r=null,n=0;n<e.length;n++)if(String(e[n][o])===String(t)?r=e[n]:e[n]._childList&&(r=i(t,e[n]._childList)),r)return r;return r}return r=i(t,e.typeObject.data.collection),r=r?r[n?n.name:e.typeObject.model.idName]:t?"-":"",r},xr=function(t,e,r){var n;switch(e.dataType){case"year":n="YYYY";break;case"month":n="YYYY-MM";break;case"date":n="YYYY-MM-DD";break;case"datetime":n="YYYY-MM-DD HH:mm";break;default:n="YYYY-MM-DD HH:mm";break}return r(t).format(n)},Or={methods:{formatter:function(t,e,r){var n=e;r.list&&e&&(n=["checkbox","multiple","tree-suggests"].includes(r.control)?e&&e.split(",").map((function(t){return wr(t,r)})).join(","):wr(e,r)),"wordbook"===r.dataType&&r.typeObject&&e&&(n=["checkbox","multiple","tree-suggests"].includes(r.control)?e.split(",").map((function(t){return _r(t,r)})).join(","):_r(e,r));var o=["year","month","date","datetime","time"];return o.includes(r.dataType)&&(e||0===e)&&(n=xr(e,r,this.moment)),n}}},kr=function(){var t=this,e=t._self._c;return e("a-table",t._b({class:{"list-table-header-selection-checkbox":t.$attrs.rowSelection&&t.$attrs.rowSelection.type&&"checkbox"===t.$attrs.rowSelection.type&&t.showSelectionText},attrs:{pagination:!1,size:"middle"}},"a-table",t.$attrs,!1))},Er=[],Sr={computed:{showSelectionText:function(){if(this.$store.state.app.config.length){var t=Object.fromEntries(this.$store.state.app.config.map((function(t){return[t.config_key,t.config_value]})));return"1"===t["show-selection-text"]||!1}return!1}}},jr=Sr;function Lr(t,e,r,n,o,i,a,c){var s,u="function"===typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=r,u._compiled=!0),n&&(u.functional=!0),i&&(u._scopeId="data-v-"+i),a?(s=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},u._ssrRegister=s):o&&(s=c?function(){o.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:o),s)if(u.functional){u._injectStyles=s;var l=u.render;u.render=function(t,e){return s.call(e),l(t,e)}}else{var f=u.beforeCreate;u.beforeCreate=f?[].concat(f,s):[s]}return{exports:t,options:u}}var Pr=Lr(jr,kr,Er,!1,null,null,null),Nr=Pr.exports,Ar=function(){var t=this,e=t._self._c;return e("a-list",t._b({attrs:{itemLayout:"horizontal",pagination:!1,size:"default",split:!1},scopedSlots:t._u([{key:"renderItem",fn:function(r){var n=r.item;return[e("a-list-item",[e(t.component,{tag:"component",attrs:{item:n}})],1)]}}])},"a-list",t.$attrs,!1))},Cr=[],Tr={props:["item"],computed:{component:function(){return{props:["item"],template:this.item||"<div></div>"}}}},Ir=Tr,Mr=Lr(Ir,Ar,Cr,!1,null,null,null),Dr=Mr.exports,qr={ListTable:Nr,ListNormal:Dr},Rr=function(){var t=this,e=t._self._c;return e("a-form-model",{attrs:{layout:t.layout}},[t._l(t.attrs,(function(r,n){return e("Item",{key:"".concat(n,"-").concat(r.name),attrs:{formModel:t.actionModel,prop:r.name,schema:r,params:t.params,labelType:!1,isFilter:""},on:{change:function(e){return t.handleItemChange(e,r)},fill:function(e){return t.handleItemFill(e,r)}},model:{value:t.actionModel[r.name],callback:function(e){t.$set(t.actionModel,r.name,e)},expression:"actionModel[col.name]"}})})),t.view.configs["filters.collapse"]?e("a-form-model-item",[e("a-popover",{attrs:{trigger:"click",placement:"bottomRight"},scopedSlots:t._u([{key:"content",fn:function(){return t._l(t.columns.slice(t.view.configs["filters.collapse"]),(function(r,n){return e("Item",{key:"".concat(n,"-").concat(r.name),attrs:{formModel:t.actionModel,prop:r.name,schema:r,params:t.params,labelType:!1,isFilter:""},on:{change:function(e){return t.handleItemChange(e,r)},fill:function(e){return t.handleItemFill(e,r)}},model:{value:t.actionModel[r.name],callback:function(e){t.$set(t.actionModel,r.name,e)},expression:"actionModel[col.name]"}})}))},proxy:!0}],null,!1,2124004358),model:{value:t.collapse,callback:function(e){t.collapse=e},expression:"collapse"}},[e("a-button",{attrs:{type:"link",icon:"filter"}},[t._v(" 更多筛选")])],1)],1):t._e()],2)},Br=[];function Fr(t){return Fr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fr(t)}function $r(t){return zr(t)||Gr(t)||Ur(t)||Vr()}function Vr(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Ur(t,e){if(t){if("string"===typeof t)return Kr(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Kr(t,e):void 0}}function Gr(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function zr(t){if(Array.isArray(t))return Kr(t)}function Kr(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Hr(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Hr=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(L){s=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var i=e&&e.prototype instanceof h?e:h,a=Object.create(i.prototype),c=new E(o||[]);return n(a,"_invoke",{value:_(t,r,c)}),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(L){return{type:"throw",arg:L}}}t.wrap=u;var f={};function h(){}function p(){}function d(){}var y={};s(y,i,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(S([])));m&&m!==e&&r.call(m,i)&&(y=m);var g=d.prototype=h.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,c){var s=l(t[n],t,i);if("throw"!==s.type){var u=s.arg,f=u.value;return f&&"object"==Fr(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return o("throw",t,a,c)}))}c(s.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function _(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=x(a,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=l(t,e,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=l(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function S(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return p.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:p,configurable:!0}),p.displayName=s(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,s(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),s(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),s(g,c,"Generator"),s(g,i,(function(){return this})),s(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=S,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:S(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function Yr(t,e,r,n,o,i,a){try{var c=t[i](a),s=c.value}catch(u){return void r(u)}c.done?e(s):Promise.resolve(s).then(n,o)}function Wr(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){Yr(i,n,o,a,c,"next",t)}function c(t){Yr(i,n,o,a,c,"throw",t)}a(void 0)}))}}function Zr(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Xr(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Zr(Object(r),!0).forEach((function(e){Jr(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Zr(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Jr(t,e,r){return e=Qr(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Qr(t){var e=tn(t,"string");return"symbol"===Fr(e)?e:String(e)}function tn(t,e){if("object"!==Fr(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Fr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var en={model:{prop:"values",event:"change"},props:{action:{type:Object},columns:{type:Array},values:{type:Object},mode:{type:String,enum:["fully","normal","simple"],default:"normal"},layout:{type:String,enum:["horizontal","vertical","inline"],default:"horizontal"},params:{type:[Object],default:function(){return{}}},submited:{type:Number},continueText:{type:String},submitText:{type:String},resetText:{type:String},footer:{type:String},onContinue:{type:Function},onSubmit:{type:Function},onReset:{type:Function}},data:function(){return{actionModel:Xr({},this.values)||{},hasFile:!1}},created:function(){if(this.defaultValues)for(var t in this.defaultValues)void 0===this.actionModel[t]&&this.$set(this.actionModel,t,this.defaultValues[t])},computed:{defaultValues:function(){var t=this.columns?this.columns.filter((function(t){return!!t.value})).map((function(t){return[t.name,t.value]})):[];return t.length?Object.fromEntries(t):null},rules:function(){var t={};return this.columns.forEach((function(e){var r,n=["date","time","month","week","range","tree-suggest"].includes(e.control);(t[e.name]=[],e.required&&t[e.name].push({required:!0,message:"".concat(e.alias,"不能为空"),trigger:n?"change":"blur"}),e.maxLength&&e.minLength)&&(r=e.maxLength&&e.minLength?"长度在 ".concat(e.minLength," 到 ").concat(e.maxLength," 个字符"):e.maxLength?"长度不多于 ".concat(e.maxLength," 个字符"):"长度不少于 ".concat(e.minLength," 个字符"),t[e.name].push({min:e.minLength,max:e.maxLength,message:r,trigger:"blur"}))})),t},configs:function(){return Object.fromEntries(this.action.configs.map((function(t){return[t.key,t.value]})))}},provide:function(){return{form:this}},inject:["view"],methods:{setModel:function(t,e){this.actionModel[t]?this.actionModel[t]=e:this.$set(this.actionModel,t,e)},handleItemChange:function(t,e){var r=e.name;this.setModel(r,t)},handleItemFill:function(t){var e=this;t.forEach((function(t){return e.setModel(t.name,t.value)}))},handleSubmit:function(){var t=this;return Wr(Hr().mark((function e(){return Hr().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!t.$refs.form){e.next=3;break}return e.next=3,t.$refs.form.validate();case 3:t.handleCommit();case 4:case"end":return e.stop()}}),e)})))()},handleCommit:function(){var t=this;return Wr(Hr().mark((function e(){var r,n,o,i,a;return Hr().wrap((function(e){while(1)switch(e.prev=e.next){case 0:Array.isArray(t.actionModel)?r=t.actionModel:(n=t.params,o=void 0===n?{}:n,i=o.valuesName,a=i?[].concat($r(t.columns),[{name:i}]):t.columns,r=Object.fromEntries(a.map((function(e){var r=void 0===t.actionModel[e.name]?null:t.actionModel[e.name];return[e.name,r]})))),t.$emit("commit",r);case 2:case"end":return e.stop()}}),e)})))()}},watch:{submited:function(){this.handleSubmit()},actionModel:{handler:function(t){this.$emit("change",t)},deep:!0},values:{handler:function(t){for(var e in t)this.setModel(e,t[e])},deep:!0}}},rn=function(){var t=this,e=t._self._c;return(t.changeMode?t.multiConditionStatus:t.showModel)?e("a-form-model-item",{ref:"item",attrs:{label:t.label,help:t.help,extra:t.extra,"validate-status":t.validateStatus,colon:!1,"has-feedback":!1,prop:t.prop,rules:t.rules}},[["select","chosen"].includes(t.schema.control)?e("a-select",{staticStyle:{width:"100%","min-width":"199px"},attrs:{value:t.value,allowClear:"",showSearch:"chosen"===t.schema.control,optionFilterProp:"children",filterOption:t.filterOption,disabled:t.readonly,dropdownMatchSelectWidth:!1,placeholder:t.placeholder},on:{change:function(e){return t.$emit("change",e)}}},t._l(t.options,(function(r,n){return e("a-select-option",{key:n,attrs:{title:r.label,value:r.value}},[t._v(" "+t._s(r.label)+" ")])})),1):["multiple"].includes(t.schema.control)?e("a-select",{staticStyle:{width:"100%","min-width":"199px"},attrs:{mode:"multiple",allowClear:"",defaultValue:t.value&&t.value.split(","),disabled:t.readonly,dropdownMatchSelectWidth:!1,placeholder:t.placeholder},on:{change:function(e){return t.$emit("change",e.join(","))}}},t._l(t.options,(function(r,n){return e("a-select-option",{key:n,attrs:{title:r.label,value:r.value}},[t._v(" "+t._s(r.label)+" ")])})),1):"Boolean"===t.schema.metaType?e("a-switch",{attrs:{disabled:t.readonly,defaultChecked:t.value},on:{change:function(e){return t.$emit("change",e.target.value)}}}):"daterange"===t.schema.control?e("a-range-picker",{staticStyle:{width:"100%","min-width":"199px"},attrs:{disabled:t.readonly,valueFormat:"YYYY-MM-DD",placeholder:["开始".concat(t.placeholder),"结束".concat(t.placeholder)],defaultValue:t.value&&t.value.split(",").every((function(t){return t}))?t.value.split(",").map((function(e){return t.moment(Number(e)||e)})):null,disabledDate:function(e){return t.disableDateFn(e)},allowClear:""},on:{change:function(e,r){t.$emit("change",r.join(","))}}}):["date","datetime"].includes(t.schema.control)||"date"===t.schema.dataType?e("a-date-picker",{staticStyle:{width:"100%","min-width":"199px"},attrs:{disabled:t.readonly,format:"datetime"===t.schema.control?"YYYY-MM-DD HH:mm":"YYYY-MM-DD",valueFormat:"datetime"===t.schema.control?"YYYY-MM-DD HH:mm":"YYYY-MM-DD",value:t.value?t.moment(Number(t.value)||t.value):null,showTime:"datetime"===t.schema.control&&{format:"HH:mm"},allowClear:"",placeholder:t.placeholder,disabledDate:function(e){return t.disableDateFn(e)}},on:{change:function(e,r){t.$emit("change",r)}}}):"year"===t.schema.control?e("a-date-picker",{staticStyle:{width:"100%","min-width":"199px"},attrs:{disabled:t.readonly,format:"YYYY",mode:"year",value:t.value?t.moment(t.value):null,allowClear:"",placeholder:t.placeholder,open:t.yearPickerPanelOpen,disabledDate:function(e){return t.disableDateFn(e)}},on:{panelChange:function(e){t.$emit("change",t.moment(e).format("YYYY")),t.yearPickerPanelOpen=!1},openChange:function(e){return t.yearPickerPanelOpen=e}}}):["birthday"].includes(t.schema.control)?e("a-date-picker",{staticStyle:{width:"100%","min-width":"199px"},attrs:{disabled:t.readonly,format:"YYYY-MM-DD HH:mm",valueFormat:"YYYY-MM-DD HH:mm",defaultValue:t.value?t.moment(t.value):null,showTime:{format:"HH:mm"},allowClear:"",disabledDate:function(e){return t.disableDateFn(e)},placeholder:t.placeholder},on:{change:function(e,r){t.$emit("change",r)}}}):["month"].includes(t.schema.control)||"month"===t.schema.dataType?e("a-month-picker",{staticStyle:{width:"100%","min-width":"199px"},attrs:{disabled:t.readonly,defaultValue:t.value?t.moment(Number(t.value)||t.value):null,allowClear:"",placeholder:t.placeholder,disabledDate:function(e){return t.disableDateFn(e)}},on:{change:function(e,r){t.$emit("change",r)}}}):["week"].includes(t.schema.control)||"week"===t.schema.dataType?e("a-week-picker",{staticStyle:{width:"100%","min-width":"199px"},attrs:{disabled:t.readonly,defaultValue:t.value?t.moment(Number(t.value)||t.value,"YYYY-w"):null,format:"YYYY-w",allowClear:"",placeholder:t.placeholder,disabledDate:function(e){return t.disableDateFn(e)}},on:{change:function(e,r){t.$emit("change",r)}}}):["time"].includes(t.schema.control)?e("a-time-picker",{staticStyle:{width:"100%","min-width":"199px"},attrs:{allowClear:"",placeholder:t.placeholder,format:"HH:mm",disabled:t.readonly,defaultValue:t.value?t.moment(t.value,"HH:mm"):null,disabledDate:function(e){return t.disableDateFn(e)}},on:{change:function(e,r){t.$emit("change",r)}}}):"multiple"===t.schema.control?e("a-checkbox-group",{attrs:{options:t.options,defaultValue:t.value},on:{change:function(e){return t.$emit("change",e)}}}):"radio"===t.schema.control?e("a-radio-group",{attrs:{defaultValue:t.value},on:{change:function(e){return t.$emit("change",e.target.value)}}},[t._l(t.options,(function(r){return e("a-radio",{key:r.value,attrs:{disabled:t.readonly,value:["Number","Integer"].includes(t.schema.metaType)?Number(r.value):r.value}},[t._v(" "+t._s(r.label)+" ")])})),e("a-radio",{directives:[{name:"show",rawName:"v-show",value:0,expression:"0"}],key:"_empty",attrs:{value:""}},[t._v(" 全部 ")])],2):"radio-image"===t.schema.control?e("a-radio-group",{staticClass:"radio-image",attrs:{defaultValue:t.value},on:{change:function(e){return t.$emit("change",e.target.value)}}},t._l(t.options,(function(r){return e("a-radio-button",{key:r.value,attrs:{disabled:t.readonly,value:["Number","Integer"].includes(t.schema.metaType)?Number(r.value):r.value}},[e("a-avatar",{attrs:{size:48,src:r.label,shape:"square"}})],1)})),1):"button-group"===t.schema.control?e("a-radio-group",{attrs:{defaultValue:t.value},on:{change:function(e){return t.$emit("change",e.target.value)}}},[e("a-radio-button",{key:"_empty",attrs:{value:""}},[t._v(" 全部 ")]),t._l(t.options,(function(r){return e("a-radio-button",{key:r.value,attrs:{disabled:t.readonly,value:r.value}},[t._v(" "+t._s(r.label)+" ")])}))],2):"file"===t.schema.control?[t.value&&!t.reUpload?e("span",[e("a",{attrs:{href:"".concat(t.view.apiURL,"/").concat(t.formModel[t.view.idName],"?_file=").concat(t.schema.name,"&_mode=inline"),target:"_blank"}},[t._v(" 下载查看 ")]),t.readonly?t._e():e("span",[t._v(" - "),e("a",{attrs:{href:"javascript:void(0);"},on:{click:t.handleReupload}},[t._v(" 重新上传 ")])])]):e("a-input",{staticStyle:{margin:"4px 0"},attrs:{type:"file",accept:t.schema.params&&t.schema.params.fileType?t.schema.params.fileType:"*",disabled:t.readonly},on:{change:function(e){return t.handleFilesChange(e,t.schema.params&&t.schema.params.fileSize?t.schema.params.fileSize:null)}}})]:"files"===t.schema.control?e("div",[e("a-upload",{attrs:{beforeUpload:t.beforeFilesUpload,multiple:"",showUploadList:!1,accept:t.schema.params&&t.schema.params.fileType?t.schema.params.fileType:"*"}},[e("a-button",{on:{click:function(e){return t.setFileSize(t.schema.params&&t.schema.params.fileSize?t.schema.params.fileSize:null)}}},[e("a-icon",{attrs:{type:"upload"}}),t._v(" 批量上传 ")],1)],1),t.defaultFileList.length?e("a-list",{attrs:{"item-layout":"horizontal","data-source":t.defaultFileList,size:"small"},scopedSlots:t._u([{key:"renderItem",fn:function(r){return e("a-list-item",{},[e("a-list-item-meta",[e("span",{attrs:{slot:"title"},slot:"title"},[t._v(t._s(r.file_name||r.name))]),e("a-space",{attrs:{slot:"description",size:"middle"},slot:"description"},[e("span",{attrs:{slot:"description"},slot:"description"},[e("a-icon",{attrs:{type:"user"}}),t._v(" "+t._s(r.creator_name||t.$store.state.user.name)+" ")],1),e("span",{attrs:{slot:"description"},slot:"description"},[e("a-icon",{attrs:{type:"clock-circle"}}),t._v(" "+t._s(t.moment(r.create_time).format("YYYY-MM-DD HH:mm"))+" ")],1)])],1),t.schema.params&&t.schema.params.control&&t.schema.params.control.deleteActionRoles&&t.schema.params.control.deleteActionRoles.includes(t.$store.state.user.roleId)||!(t.schema.params&&t.schema.params.control&&t.schema.params.control.deleteActionRoles)?e("a-icon",{staticStyle:{color:"#f5222d"},attrs:{slot:"actions",type:"close-circle"},on:{click:function(e){return t.handleRemove(t.index)}},slot:"actions"}):t._e()],1)}}],null,!1,2665482914)}):t._e()],1):"image"===t.schema.control?e("a-upload",{staticClass:"avatar-uploader",attrs:{accept:"image/*","list-type":"picture-card","default-file-list":t.defaultFileList,"before-upload":t.beforeUpload,remove:function(){return t.$emit("change",null)}}},[t.formModel[t.schema.name]?t._e():e("div",[e("a-icon",{attrs:{type:"plus"}}),e("div",{staticClass:"ant-upload-text"},[t._v("上传")])],1)]):"view-select"!==t.schema.control||t.readonly?"textarea"===t.schema.control?e("a-textarea",{staticStyle:{width:"100%","min-width":"199px"},attrs:{placeholder:t.placeholder,defaultValue:t.value,disabled:t.readonly,maxLength:t.schema.maxLength?t.schema.maxLength:512,"auto-size":{minRows:t.schema.params&&t.schema.params.control&&t.schema.params.control.minRows||1,maxRows:t.schema.params&&t.schema.params.control&&t.schema.params.control.maxRows||10},allowClear:""},on:{blur:function(e){return t.$emit("change",e.target.value)},pressEnter:function(e){return t.$emit("change",e.target.value)}}}):"csv-json"===t.schema.control?e("span",[e("a-textarea",{staticStyle:{width:"100%","min-width":"199px"},attrs:{defaultValue:t.value,placeholder:t.placeholder,disabled:t.readonly,maxLength:t.schema.maxLength?t.schema.maxLength:512,"auto-size":{minRows:t.schema.params&&t.schema.params.control&&t.schema.params.control.minRows||1,maxRows:t.schema.params&&t.schema.params.control&&t.schema.params.control.maxRows||10},allowClear:""},on:{blur:function(e){return t.$emit("change",e.target.value)},pressEnter:function(e){return t.$emit("change",e.target.value)}}})],1):"tree-suggest"===t.schema.control?e("a-tree-select",{staticStyle:{width:"100%","min-width":"199px"},attrs:{placeholder:t.placeholder,dropdownStyle:{maxHeight:"300px",overflow:"auto"},treeData:t.async?t.asyncTreeData:t.treeData,loadData:t.async&&t.handleAsyncLoadData||null,allowClear:"",value:t.value},on:{change:function(e){return t.$emit("change",e)}}}):"tree-suggests"===t.schema.control?e("a-tree-select",{staticStyle:{width:"100%","min-width":"199px"},attrs:{placeholder:t.placeholder,dropdownStyle:{maxHeight:"300px",overflow:"auto"},treeData:t.async?t.asyncTreeData:t.treeData,loadData:t.async&&t.handleAsyncLoadData||null,allowClear:"",multiple:"",value:t.value?t.value.split(","):void 0},on:{change:function(e){return t.$emit("change",e?e.join(","):void 0)}}}):"tree-select"===t.schema.control?e("div",[t._e(),e("a-tree",{attrs:{replaceFields:{title:"label"},treeData:t.treeUrl?t.loadTreeData:t.async?t.asyncTreeData:t.treeData,selectedKeys:[t.defaultValue],loadData:t.async&&t.handleAsyncLoadData||null,defaultExpandedKeys:t.treeUrl?[t.loadTreeData[0]&&t.loadTreeData[0].key]:[t.treeData[0]&&t.treeData[0].key]},on:{select:t.handleTreeSelect}})],1):"password"===t.schema.control?e("a-input-password",{tag:"component",staticStyle:{width:"100%","min-width":"199px"},attrs:{name:t.schema.name,placeholder:t.placeholder,allowClear:""},on:{change:function(e){return t.$emit("change",e.target.value)}}}):"editor"===t.schema.control?e("Editor",{staticStyle:{width:"100%","min-width":"199px"},attrs:{value:t.formModel[t.schema.name],placeholder:t.placeholder,disabled:t.readonly,params:t.schema.params||void 0},on:{change:function(e){return t.$emit("change",e)}}}):"verify"===t.schema.control?e("VerificationCode",{staticStyle:{width:"100%","min-width":"199px"},attrs:{placeholder:t.placeholder,url:t.schema.params.url,time:t.schema.params.time,phone:t.formModel[t.schema.params.phoneName]},on:{change:function(e){return t.$emit("change",e)}}}):"map-marker"===t.schema.control?e("MapMarker",{staticStyle:{width:"100%","min-width":"199px"},attrs:{placeholder:t.placeholder,name:t.schema.name,mapCenter:t.schema.params&&(t.schema.params.mapCenter?JSON.parse(t.schema.params.mapCenter):t.schema.params.control.mapCenter)},on:{change:function(e){return t.$emit("change",e)},map:t.handleMapComplete},model:{value:t.formModel[t.schema.name],callback:function(e){t.$set(t.formModel,t.schema.name,e)},expression:"formModel[schema.name]"}}):"map-polygon"===t.schema.control?e("MapPolygon",{staticStyle:{width:"100%","min-width":"199px"},attrs:{placeholder:t.placeholder,name:t.schema.name,mapCenter:t.schema.params&&(t.schema.params.mapCenter?JSON.parse(t.schema.params.mapCenter):t.schema.params.control.mapCenter)},on:{change:function(e){return t.$emit("change",e)}},model:{value:t.formModel[t.schema.name],callback:function(e){t.$set(t.formModel,t.schema.name,e)},expression:"formModel[schema.name]"}}):"transfer"===t.schema.control?e("Transfer",{staticStyle:{width:"100%","min-width":"199px"},attrs:{placeholder:t.placeholder,treeUrl:t.schema.params.control.url,titleName:t.schema.params.control.displayValue,keyName:t.schema.params.control.realValue},on:{submit:t.handlePickerComplete,selected:t.handlePickerSelected},model:{value:t.formModel[t.schema.name],callback:function(e){t.$set(t.formModel,t.schema.name,e)},expression:"formModel[schema.name]"}}):e("a-".concat(t.type),{ref:"aInput",tag:"component",staticClass:"form-item",attrs:{defaultValue:t.value,name:t.schema.name,placeholder:t.placeholder,disabled:t.readonly,allowClear:""},on:{blur:function(e){return t.$emit("change",e.target.value)},pressEnter:function(e){return t.$emit("change",e.target.value)}}}):e("a-input",{staticStyle:{width:"100%","min-width":"199px"},attrs:{placeholder:t.placeholder,"read-only":"",value:t.valueLabel,allowClear:""}},[e("a-icon",{attrs:{slot:"addonAfter",type:"search"},on:{click:function(e){return t.handlePickerShow(t.schema)}},slot:"addonAfter"})],1),t.pickerViewShow?e("Popup",{attrs:{visible:t.pickerViewShow,title:t.schema.alias,type:"modal",okButtonProps:{props:{icon:"check"}},cancelButtonProps:{props:{icon:"close"}}},on:{ok:t.handlePickerComplete,close:t.handlePickerClose,cancel:t.handlePickerClose}},[t.pickerViewShow?e("Picker",t._b({ref:"picker",attrs:{viewKey:t.schema.name,params:{filters:t.pickerFilter,route:t.pickerRoute},mode:"picker"},on:{selected:t.handlePickerSelected}},"Picker",t.pickerViewOptions,!1)):t._e()],1):t._e()],2):t._e()},nn=[];function on(t){return on="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},on(t)}function an(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */an=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(L){s=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var i=e&&e.prototype instanceof h?e:h,a=Object.create(i.prototype),c=new E(o||[]);return n(a,"_invoke",{value:_(t,r,c)}),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(L){return{type:"throw",arg:L}}}t.wrap=u;var f={};function h(){}function p(){}function d(){}var y={};s(y,i,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(S([])));m&&m!==e&&r.call(m,i)&&(y=m);var g=d.prototype=h.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,c){var s=l(t[n],t,i);if("throw"!==s.type){var u=s.arg,f=u.value;return f&&"object"==on(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return o("throw",t,a,c)}))}c(s.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function _(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=x(a,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=l(t,e,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=l(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function S(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return p.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:p,configurable:!0}),p.displayName=s(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,s(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),s(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),s(g,c,"Generator"),s(g,i,(function(){return this})),s(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=S,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:S(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function cn(t){return fn(t)||ln(t)||un(t)||sn()}function sn(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function un(t,e){if(t){if("string"===typeof t)return hn(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?hn(t,e):void 0}}function ln(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function fn(t){if(Array.isArray(t))return hn(t)}function hn(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function pn(t,e,r,n,o,i,a){try{var c=t[i](a),s=c.value}catch(u){return void r(u)}c.done?e(s):Promise.resolve(s).then(n,o)}function dn(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){pn(i,n,o,a,c,"next",t)}function c(t){pn(i,n,o,a,c,"throw",t)}a(void 0)}))}}function yn(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function vn(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?yn(Object(r),!0).forEach((function(e){mn(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):yn(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function mn(t,e,r){return e=gn(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function gn(t){var e=bn(t,"string");return"symbol"===on(e)?e:String(e)}function bn(t,e){if("object"!==on(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==on(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var wn={props:{schema:{type:Object},formModel:{type:Object},type:{type:String,enum:["cell","divider","computed","text","number","checkbox","radio","switch","textarea","rate","select","slider","upload","cascader","transfer","color","search","date","time","month","week","range","signature","view","tree","box","html","markdown","code","location","mentions","face","photos","files","conditions","flow","array","matrix","table","sheet","nested"],default:"input"},prop:{type:String},labelType:{type:[String,Boolean],default:!0},value:{type:[String,Boolean,Array,Number,Object,FileList,File]},params:{type:[Object],default:function(){return{}}},required:{type:Boolean,default:!1},isFilter:{type:Boolean,default:!1}},model:{prop:"value",event:"change"},inject:["view"],data:function(){return{pickerViewOptions:{},pickerViewShow:!1,filterRules:[],showRules:[],hideRules:[],requireRules:[],swiftRules:[],showModel:!0,requireModel:this.required,reUpload:!1,selections:[],valueLabel:null,valueReal:null,defaultFileList:[],defaultValue:this.formModel[this.schema.name]||"",defaultFileSize:null,asyncTreeData:[],loadTreeData:[],multiConditionCheck:{},multiConditionStatus:!0,changeMode:"",yearPickerPanelOpen:!1}},computed:{placeholder:function(){return this.schema.alias||this.schema.name},label:function(){return!1===this.labelType?null:this.schema.alias||this.schema.name},help:function(){return""},extra:function(){return""},readonly:function(){return!!this.schema.params&&this.schema.params.readonly},validateStatus:function(){return null},options:function(){var t=this;if(this.schema.list){var e,r=this.swiftRules[0];return r&&this.formModel[r.key]&&(e=r.value.find((function(e){return e.value===t.formModel[r.key]}))),this.schema.list.split(",").filter((function(t){return!e||e.items.includes(t.split(":")[0])})).map((function(e){var r=e.split(":");return"radio-image"===t.schema.control?{label:r[1]?"".concat(r[1],":").concat(r[2]):r[0],value:r[0]}:{label:r[1]?r[1]:r[0],value:r[0]}}))}if("wordbook"===this.schema.dataType&&this.schema.typeObject){var n=this.schema.typeObject.model.attrs.find((function(t){return"title"===t.display})),o=this.schema.typeObject.model.idName;n=n.name||o;var i=this.filterRules.length?this.schema.typeObject.data.collection.filter((function(e){return t.filterRules.every((function(r){return me(Object.fromEntries([[r.key,e[r.value]]]),vn(vn({},t.formModel),{},{$parent:t.params.$parent}))}))})):this.schema.typeObject.data.collection;return i.map((function(t){return{label:t[n],value:t[o]}}))}return this.schema.params&&this.schema.params.control&&this.schema.params.control.options?this.formModel[this.schema.params.control.options].split(",").map((function(t){var e=t.split(":");return{label:"".concat(e[0]," (").concat(e[1],")"),value:e[1]}})):[]},treeData:function(){var t=this;if("wordbook"===this.schema.dataType&&this.schema.typeObject){var e=this.schema.typeObject.model.attrs.find((function(t){return"title"===t.display})),r=this.schema.typeObject.model.idName;e=e.name||r;var n=function n(o){return o.map((function(o){return{label:o[e],value:o[r],key:o[r],disabled:t.schema.params&&t.schema.params.control.leafCheck&&!!o._childList,children:o._childList?n(o._childList):null}}))},o=this.schema.typeObject.data,i=o.node,a=o.collection,c=this.async&&i?[{label:i[e],value:i[r],key:i[r],children:n(a)}]:n(a);return c}return[]},rules:function(){var t=["date","time","month","week","range","datetime"].includes(this.schema.control),e={required:!0,message:"".concat(this.schema.alias,"不能为空"),trigger:t?"change":"blur"};return!this.isFilter&&this.requireModel?[e]:null},configs:function(){return this.schema.configs&&this.schema.configs.length&&Object.fromEntries(this.schema.configs.map((function(t){return[t.key,t.value]})))},pickerFilter:function(){var t=this.schema.params,e=t&&t.control&&t.control.filters,r={};if(!e)return null;for(var n in e){var o=e[n].split(".").reduce((function(t,e){return t&&t[e]||void 0}),vn(vn(vn({},this.view.params),this.params),this.formModel));r[n]=void 0===o?e[n]:o}return r},pickerRoute:function(){var t=this.schema.params,e=t&&t.control&&t.control.route?t.control.route:null;return e},async:function(){var t=this.schema,e=t.dataType,r=t.typeObject;return"wordbook"===e&&r&&r.model.sync||!1},treeUrl:function(){if(!this.schema.params)return null;var t=this.schema.params.treeUrl;return t||null},defaultValueUrl:function(){var t=this.schema.params,e=void 0===t?{}:t,r=e.control,n=void 0===r?{}:r,o=n.defaultValueUrl,i=void 0===o?"":o;return i}},created:function(){this.init()},methods:{init:function(){var t=this.schema,e=t.control,r=t.metaType;this.defaultValueUrl&&!this.defaultValue&&this.getDefaultValueUrl(),this.watch(),"view-select"===e&&this.initPicker(),"Boolean"!==r&&"switch"!==e||this.initSwitch(),["image","file","files"].includes(e)&&this.initFile(),this.configs&&this.configs.required&&(this.requireModel=!0),this.async&&this.treeData&&(this.asyncTreeData=this.treeData),this.treeUrl&&this.handleLoadTreeData()},initPicker:function(){var t=this.schema,e=t.params,r=void 0===e?{}:e,n=r.control,o=void 0===n?{}:n,i=o.displayValue,a=o.realValue,c=o.labelValue,s=t.name,u=c||i||s,l=a;this.valueLabel=this.formModel[u],this.valueReal=this.formModel[l]},initSwitch:function(){void 0===this.formModel[this.schema.name]&&this.$emit("change",!1)},initFile:function(){var t=this.view,e=this.schema.name,r=this.formModel,n=r[e],o="".concat(t.apiURL,"/").concat(r[t.idName],"?_file=").concat(e,"&_mode=inline");if(n)try{var i=JSON.parse(n);Array.isArray(i)&&(this.defaultFileList=i)}catch(a){this.defaultFileList=[{uid:0,url:o,name:n}]}},initDate:function(){},reset:function(){},watch:function(){var t=this,e=this.schema.params,r=void 0===e?{}:e,n=r.control,o=void 0===n?{}:n,i=o.events,a=o.changeMode;if(a&&(this.changeMode=a),i){var c=function(){var e=s.split(":"),r=i[s].split(";");r.forEach((function(r){var n=r.split("|");"filter"===n[0]?t.filterRules.push({key:e[1],value:n[1]}):"show"===n[0]?t.showRules.push({key:e[1],value:n[1]}):"hide"===n[0]?t.hideRules.push({key:e[1],value:n[1]}):"require"===n[0]?t.requireRules.push({key:e[1],value:n[1]}):"swift"===n[0]&&t.swiftRules.push({key:e[1],value:n[1].split("/").map((function(t){var e=t.split(":");return{value:e[0],items:e[1].split(",")}}))})}))};for(var s in i)c()}this.showRules.forEach((function(e){t.$watch("formModel.".concat(e.key),(function(){t.show(e.key,e.value.split(","))})),t.show(e.key,e.value.split(","))})),this.hideRules.forEach((function(e){t.$watch("formModel.".concat(e.key),(function(){t.hide(e.key,e.value.split(","))})),t.hide(e.key,e.value.split(","))})),this.requireRules.forEach((function(e){t.$watch("formModel.".concat(e.key),(function(){t.require(e.key,e.value.split(","))})),t.require(e.key,e.value.split(","))})),this.filterRules.forEach((function(e){t.$watch("formModel.".concat(e.key),(function(){if(t.schema.required&&t.options.length){var e=t.options.find((function(e){return e.value===t.value}));t.$emit("change",e&&t.value||t.options[0].value)}else t.$emit("change","")}))})),this.swiftRules.forEach((function(e){t.$watch("formModel.".concat(e.key),(function(e){t.schema.required&&t.options.length&&e?t.$emit("change",t.options[0].value):t.$emit("change","")}))}))},require:function(t,e){var r=this.params.$parent;e.includes(vn(vn({},r),this.formModel)[t])?this.requireModel=!0:"filter"!==this.type&&(this.requireModel=!1)},show:function(t,e){var r=this.params.$parent;e.includes(vn(vn({},r),this.formModel)[t])?(this.showModel=!0,this.$emit("change",this.defaultValue)):"filter"!==this.type&&(this.showModel=!1,this.$emit("change","")),this.handleMultiConditionCheck(t,this.showModel,"show")},hide:function(t,e){var r=this.params.$parent;e.includes(vn(vn({},r),this.formModel)[t])?(this.showModel=!1,this.$emit("change","")):"filter"!==this.type&&(this.showModel=!0,this.$emit("change",this.defaultValue)),this.handleMultiConditionCheck(t,this.showModel,"hide")},handleMultiConditionCheck:function(t,e,r){t in this.multiConditionCheck?this.multiConditionCheck[t]=e:this.$set(this.multiConditionCheck,t,e),"every"===this.changeMode?this.multiConditionStatus=Object.values(this.multiConditionCheck).every((function(t){return t})):"some"===this.changeMode&&(this.multiConditionStatus=Object.values(this.multiConditionCheck).some((function(t){return t})))},fill:function(){},filterOption:function(t,e){return e.componentOptions.children[0].text.toLowerCase().indexOf(t.toLowerCase())>=0},expression:function(){},handlePickerShow:function(){var t=this.schema.params,e=void 0===t?{}:t,r=e.control,n=void 0===r?{}:r,o=n.multiple;this.pickerViewOptions={schema:this.schema,filters:this.pickerFilter,pickerMode:o?"multiple":"single"},this.pickerViewShow=!0},handlePickerSelected:function(t){this.selections=t},handlePickerClose:function(){this.pickerViewShow=!1,this.selections=[]},handlePickerComplete:function(){var t=this.schema,e=t.control,r=t.params,n=void 0===r?{}:r,o=n.control,i=void 0===o?{}:o,a=i.displayValue,c=i.realValue,s=i.multiple,u=i.fills,l=this.$refs.picker&&this.$refs.picker.$refs.view,f=c||l.idName,h=a||l.titleName||l.idName;if(!this.selections.length)return"transfer"===e&&this.$emit("change",""),this.$message.error("请选择数据");if(u){var p=this.selections[0],d=Object.keys(u).map((function(t){return{name:t,value:p[u[t]]}}));this.$emit("fill",d)}this.$emit("change",s?this.selections.map((function(t){return t[f]})).join(","):this.selections[0][f]),this.valueLabel=s?this.selections.map((function(t){return t[h]})).join(","):this.selections[0][h],this.valueReal=s?this.selections.map((function(t){return t[f]})).join(","):this.selections[0][f],this.$refs.item&&this.$refs.item.clearValidate(),this.handlePickerClose()},handleMapComplete:function(t){var e=this.schema.params,r=void 0===e?{}:e,n=r.control,o=void 0===n?{}:n,i=o.fills;if(i){var a=Object.keys(i).map((function(e){return{name:e,value:t[i[e]]}}));this.$emit("fill",a)}},handleChange:function(){},handleReupload:function(){this.reUpload=!0},handleAsyncLoadData:function(t){var e=this;return dn(an().mark((function r(){var n,o,i,a,c,s,u;return an().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return n=e.schema.typeObject.model,o=n.attrs,i=n.idName,a=e.view.apiURL,c=o.find((function(t){return"title"===t.display})),c=c.name||i,r.next=6,e.$api.get("".concat(a,"/").concat(e.schema.name,"?_node=").concat(t.eventKey),{baseURL:""});case 6:return s=r.sent,u=s.data.collection,t.dataRef.children=u.map((function(t){return{label:t[c],value:t[i],key:t[i]}})),e.asyncTreeData=cn(e.asyncTreeData),r.abrupt("return",new Promise((function(t){return t()})));case 11:case"end":return r.stop()}}),r)})))()},handleLoadTreeData:function(){var t=this;return dn(an().mark((function e(){var r,n,o,i,a,c,s;return an().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!t.treeUrl||!t.schema.typeObject){e.next=12;break}return e.next=3,t.$api.get("".concat(t.treeUrl,"?").concat(j.a.stringify(t.pickerFilter)));case 3:r=e.sent,n=r.data.collection,o=t.schema.typeObject.model.attrs.find((function(t){return"title"===t.display})),i=t.schema.typeObject.model.idName,o=o.name||i,a=function e(r){return r.map((function(r){return{label:r[o],value:r[i],key:r[i],disabled:t.schema.params&&t.schema.params.control.leafCheck&&!!r._childList,children:r._childList?e(r._childList):null}}))},c=t.schema.typeObject.data.node,s=t.async&&c?[{label:c[o],value:c[i],key:c[i],children:a(n)}]:a(n),t.loadTreeData=cn(s);case 12:case"end":return e.stop()}}),e)})))()},handleFilesChange:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=this.$el.getElementsByTagName("input")[0],n=r.files[0].size,o=e?this.unitConversion(e):0;e&&n>o?(this.$message.error("上传文件大小不能超过".concat(e)),this.reUpload=!1):this.$emit("change",r.files[0])},transformList:function(){},clearValidate:function(){},beforeUpload:function(t){return this.$emit("change",t),this.$refs.item.clearValidate(),!1},handleRemove:function(t){this.defaultFileList.splice(t,1),this.$emit("change",this.defaultFileList)},beforeFilesUpload:function(t){var e=t.size,r=t.name,n=this.defaultFileSize?this.unitConversion(this.defaultFileSize):0;return this.defaultFileSize&&e>n?this.$message.error("上传 ".concat(r," 文件大小不能超过").concat(this.defaultFileSize),5):this.defaultFileList.push(t),this.$emit("change",this.defaultFileList),this.$refs.item.clearValidate(),!1},setFileSize:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.defaultFileSize=t},unitConversion:function(t){var e=0;return e=-1!==t.indexOf("KB")?1024*Number(t.split("KB")[0]):-1!==t.indexOf("MB")?1024*Number(t.split("MB")[0])*1024:Number(t),e},handleTreeSelect:function(t){this.schema.required&&!t.length||(this.defaultValue=t[0],this.$emit("change",t[0]))},getDefaultValueUrl:function(){var t=this;return dn(an().mark((function e(){var r,n,o,i,a,c,s;return an().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.$api.get("/dataset/".concat(t.defaultValueUrl,"?").concat(j.a.stringify(t.$store.state.user)));case 3:r=e.sent,n=r.data.data,o=void 0===n?[]:n,o.length&&t.$emit("change",o[0].start_time),e.next=15;break;case 9:e.prev=9,e.t0=e["catch"](0),e.t0.response||t.$message.error("网络请求错误,请检查您的网络连接。"),i=e.t0.response,a=i.status,c=i.data,s=c&&c.content||"系统错误请与管理员联系。",t.$message.error("".concat(a,", ").concat(s));case 15:case"end":return e.stop()}}),e,null,[[0,9]])})))()},disableDateFn:function(t){var e=this.schema.params&&this.schema.params.control?this.schema.params.control:null;if(e&&e.disableDateValidate){var r=e.disableDateValidate,n=new Function("current","moment","return ".concat(r));return n(t,this.moment)}return null}}},_n=function(){var t=this,e=t._self._c;return e("div",{staticClass:"form-quill-editor"},[e("quill-editor",{ref:"quillEditor",attrs:{options:t.editorOption},on:{change:function(e){return t.onEditorChange(e)},ready:function(e){return t.onEditorReady(e)}}}),e("a-input",{staticStyle:{display:"none"},attrs:{type:"file",multiple:""},on:{change:t.handleUploadChange}})],1)},xn=[],On=(r("690b"),r("521b"),r("55ab"),r("37eb"));function kn(t){return kn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},kn(t)}function En(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */En=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(L){s=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var i=e&&e.prototype instanceof h?e:h,a=Object.create(i.prototype),c=new E(o||[]);return n(a,"_invoke",{value:_(t,r,c)}),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(L){return{type:"throw",arg:L}}}t.wrap=u;var f={};function h(){}function p(){}function d(){}var y={};s(y,i,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(S([])));m&&m!==e&&r.call(m,i)&&(y=m);var g=d.prototype=h.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,c){var s=l(t[n],t,i);if("throw"!==s.type){var u=s.arg,f=u.value;return f&&"object"==kn(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return o("throw",t,a,c)}))}c(s.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function _(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=x(a,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=l(t,e,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=l(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function S(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return p.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:p,configurable:!0}),p.displayName=s(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,s(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),s(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),s(g,c,"Generator"),s(g,i,(function(){return this})),s(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=S,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:S(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function Sn(t,e,r,n,o,i,a){try{var c=t[i](a),s=c.value}catch(u){return void r(u)}c.done?e(s):Promise.resolve(s).then(n,o)}function jn(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){Sn(i,n,o,a,c,"next",t)}function c(t){Sn(i,n,o,a,c,"throw",t)}a(void 0)}))}}function Ln(t,e){var r="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=Pn(t))||e&&t&&"number"===typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){c=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(c)throw i}}}}function Pn(t,e){if(t){if("string"===typeof t)return Nn(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Nn(t,e):void 0}}function Nn(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var An={props:{value:{type:String,default:""},placeholder:{type:String,default:"请编辑内容"},disabled:{type:Boolean},params:{type:Object}},components:{quillEditor:On["quillEditor"]},computed:{editorParams:function(){return this.params&&this.params.control&&this.params.control.toolbar?JSON.parse(this.params.control.toolbar):null}},data:function(){return{content:this.value,editorOption:{placeholder:this.disabled?"当前为不可编辑状态":this.placeholder,modules:{toolbar:[["bold","italic","underline","strike"],["blockquote","code-block"],[{header:1},{header:2}],[{list:"ordered"},{list:"bullet"}],[{script:"sub"},{script:"super"}],[{indent:"-1"},{indent:"+1"}],[{direction:"rtl"}],[{size:["small",!1,"large","huge"]}],[{header:[1,2,3,4,5,6,!1]}],[{color:[]},{background:[]}],[{font:[]}],[{align:[]}],["clean"],["image","video"]]}},baseUrl:window.location.origin,quill:null,pos:0}},created:function(){this.editorParams&&(this.editorOption.modules.toolbar=this.editorParams)},mounted:function(){this.$refs.quillEditor.quill.getModule("toolbar").addHandler("image",this.handleImage),this.quill=this.$refs.quillEditor.quill,this.disabled&&this.$refs.quillEditor.quill.enable(!1)},methods:{onEditorChange:function(t){t.editor;var e=t.html;t.text;this.$emit("change",e)},onEditorReady:function(t){t.container.querySelector(".ql-blank").innerHTML=this.content},handleImage:function(){var t=document.querySelector('.form-quill-editor input[type="file"]')||null;t&&t.click()},handleUploadChange:function(t){var e=new FormData,r=t.target.files;if(r&&r.length){var n,o=Ln(r);try{for(o.s();!(n=o.n()).done;){var i=n.value;e.append(i.lastModified+i.size,i)}}catch(a){o.e(a)}finally{o.f()}}this.getfileurl(e)},getfileurl:function(t){var e=this;return jn(En().mark((function r(){var n,o,i;return En().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return r.next=2,e.$api.post("".concat(e.baseUrl,"/file/getfileurl"),t);case 2:n=r.sent,o=n.data,i=n.status,200===i&&o.forEach((function(t){e.insertEmbedImage("".concat(e.baseUrl).concat(t))}));case 6:case"end":return r.stop()}}),r)})))()},insertEmbedImage:function(t){this.pos=this.quill.getSelection().index,this.quill.insertEmbed(this.pos,"image",t),this.quill.setSelection(this.pos+1)}}},Cn=An,Tn=(r("2f24"),Lr(Cn,_n,xn,!1,null,null,null)),In=Tn.exports,Mn=function(){var t=this,e=t._self._c;return e("a-input-group",{attrs:{compact:""}},[e("a-input",{staticStyle:{width:"60%"},attrs:{placeholder:t.placeholder,allowClear:""},on:{change:function(e){return t.$emit("change",e.target.value)}}}),e("a-button",{staticStyle:{width:"40%"},attrs:{disabled:t.disabled},on:{click:t.getVerification}},[t._v(" "+t._s(t.text)+" ")])],1)},Dn=[];function qn(t){return qn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qn(t)}function Rn(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Rn=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(L){s=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var i=e&&e.prototype instanceof h?e:h,a=Object.create(i.prototype),c=new E(o||[]);return n(a,"_invoke",{value:_(t,r,c)}),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(L){return{type:"throw",arg:L}}}t.wrap=u;var f={};function h(){}function p(){}function d(){}var y={};s(y,i,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(S([])));m&&m!==e&&r.call(m,i)&&(y=m);var g=d.prototype=h.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,c){var s=l(t[n],t,i);if("throw"!==s.type){var u=s.arg,f=u.value;return f&&"object"==qn(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return o("throw",t,a,c)}))}c(s.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function _(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=x(a,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=l(t,e,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=l(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function S(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return p.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:p,configurable:!0}),p.displayName=s(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,s(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),s(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),s(g,c,"Generator"),s(g,i,(function(){return this})),s(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=S,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:S(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function Bn(t,e,r,n,o,i,a){try{var c=t[i](a),s=c.value}catch(u){return void r(u)}c.done?e(s):Promise.resolve(s).then(n,o)}function Fn(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){Bn(i,n,o,a,c,"next",t)}function c(t){Bn(i,n,o,a,c,"throw",t)}a(void 0)}))}}var $n={mixins:[en],props:{phone:{type:String,default:""},url:{type:String},time:{type:String,default:"60"},placeholder:{type:String}},data:function(){return{disabled:!1,timer:this.time}},computed:{text:function(){return this.disabled?"".concat(this.timer,"秒后重新获取"):"获取短信验证码"}},methods:{getVerification:function(){var t=this;return Fn(Rn().mark((function e(){var r,n,o,i,a;return Rn().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(""!==t.phone){e.next=3;break}return t.$message.error("手机号码不能为空"),e.abrupt("return");case 3:return t.disabled=!0,r=setInterval((function(){t.timer--,t.timer<=0&&t.reset(r)}),1e3),e.prev=5,e.next=8,t.$api.post(t.url,{phone:t.phone});case 8:n=e.sent,o=n.data,i=n.status,200===i&&t.$message.success(o.content),e.next=22;break;case 14:if(e.prev=14,e.t0=e["catch"](5),e.t0.response){e.next=19;break}return t.$message.error("网络请求错误,请检查您的网络连接。"),e.abrupt("return");case 19:a=e.t0.response.data,t.$message.error(a.content),t.reset(r);case 22:case"end":return e.stop()}}),e,null,[[5,14]])})))()},reset:function(t){this.disabled=!1,this.timer=this.time,clearInterval(t)}}},Vn=$n,Un=Lr(Vn,Mn,Dn,!1,null,null,null),Gn=Un.exports;function zn(t){return zn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zn(t)}function Kn(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Hn(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Kn(Object(r),!0).forEach((function(e){Yn(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Kn(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Yn(t,e,r){return e=Wn(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Wn(t){var e=Zn(t,"string");return"symbol"===zn(e)?e:String(e)}function Zn(t,e){if("object"!==zn(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==zn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var Xn=function(){var t=this,e=t._self._c;return e("div",[e("a-input",{attrs:{placeholder:t.placeholder,allowClear:""},on:{change:t.handleChange},model:{value:t.markerVal,callback:function(e){t.markerVal=e},expression:"markerVal"}},[e("a-icon",{attrs:{slot:"addonAfter",type:"environment"},on:{click:t.showModal},slot:"addonAfter"})],1),e("a-modal",t._b({attrs:{title:t.placeholder},on:{ok:t.submit,cancel:t.cancel},model:{value:t.visible,callback:function(e){t.visible=e},expression:"visible"}},"a-modal",Hn({},t.fullscreenOptions),!1),[e("el-amap-search-box",{staticClass:"amap-search-box",attrs:{"search-option":t.searchOption,"on-search-result":t.handleSearch}}),e("el-amap",{staticClass:"amap-box",attrs:{vid:"amap-vue-marker".concat(t._uid),center:t.center,plugin:t.plugin,zoom:t.zoom,"amap-manager":t.amapManager,events:t.events}},t._l(t.markers,(function(t){return e("el-amap-marker",{key:t.id,attrs:{position:t.path,title:t.title}})})),1)],1)],1)},Jn=[],Qn=r("5aeb"),to={model:{prop:"value",event:"change"},props:{placeholder:{type:String,default:""},name:{type:String,default:""},value:{type:String,default:""},mapCenter:{type:Array,default:function(){return[116.405285,39.904989]}},mapZoom:{type:Number,default:18}},data:function(){var t=this;return{visible:!1,markerVal:this.value,fullscreenOptions:{width:"100%",bodyStyle:{height:"".concat(document.body.clientHeight-108,"px"),overflowY:"auto",padding:"0"},dialogStyle:{padding:0},centered:!0},mapInstance:null,center:this.mapCenter,zoom:this.mapZoom,amapManager:null,markers:[],mouseTool:null,geocoder:null,geolocation:null,plugin:[{pName:"Scale"},{pName:"ToolBar",position:"RB"}],events:{init:function(e){t.mapInstance=e,t.initMap()},zoomend:function(){t.zoom=t.mapInstance.getZoom()}},searchOption:{citylimit:!1,autoFitView:!0},position:{lng:0,lat:0,name:""}}},mounted:function(){this.amapManager=new Qn["AMapManager"]},methods:{handleChange:function(t){var e=t.target.value;this.markerVal=e,this.markerVal||this.initDefault(),this.$emit("change",this.markerVal)},initMap:function(){var t=this;Qn["lazyAMapApiLoaderInstance"]&&Qn["lazyAMapApiLoaderInstance"].load().then((function(){t.markerVal&&t.initMarkers(),AMap.plugin(["AMap.MouseTool"],(function(){t.mouseTool=new AMap.MouseTool(t.mapInstance),t.drawMarker()})),t.geocoder=new AMap.Geocoder}))},drawMarker:function(){var t=this;this.mouseTool.marker({visible:!1}),this.mouseTool.on("draw",(function(e){var r=e.obj.w.position,n=r.lng,o=r.lat;t.position.lat=o,t.position.lng=n,t.getAddress(n,o),t.markers.length&&(t.markers=[]),t.markers.push({id:t._uid,path:[n,o],title:"[".concat(n,",").concat(o,"]")})}))},initMarkers:function(){var t=this.markerVal.split("/");this.zoom=t.length&&t[1]?t[1]:18;var e=t.length&&t[0]&&t[0].split(",");e.length&&(this.center=[Number(e[0]),Number(e[1])],this.markers=[{id:this._uid,path:[Number(e[0]),Number(e[1])],title:"[".concat(Number(e[0]),",").concat(Number(e[1]),"]")}])},showModal:function(){this.visible=!0,this.markerVal&&this.initMarkers()},submit:function(t){if(this.markers.length){var e=this.markers[0]&&this.markers[0].path[0],r=this.markers[0]&&this.markers[0].path[1],n="".concat(e,", ").concat(r,"/").concat(this.zoom);this.markerVal=n,this.$emit("change",this.markerVal);var o=Object.assign({zoom:this.zoom},this.position);this.$emit("map",o)}else this.initDefault();this.visible=!1},cancel:function(){this.markers.length&&!this.markerVal&&this.initDefault(),this.visible=!1},initDefault:function(){this.markers=[],this.center=this.mapCenter,this.zoom=this.mapZoom},handleSearch:function(t){if(this.markers=[],t&&t.length){var e=t[0],r=e.lat,n=e.lng;this.position.lat=r,this.position.lng=n,this.getAddress(n,r),this.center=[n,r],this.markers.push({id:this._uid,path:[n,r],title:"[".concat(n,",").concat(r,"]")})}},getAddress:function(t,e){var r=this;this.geocoder.getAddress([t,e],(function(t,e){"complete"===t&&e.regeocode?r.position.name=e.regeocode.formattedAddress:r.$message.error("根据经纬度查询地址失败")}))}}},eo=to,ro=(r("cf3f"),Lr(eo,Xn,Jn,!1,null,"09b502b8",null)),no=ro.exports;function oo(t){return oo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},oo(t)}function io(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function ao(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?io(Object(r),!0).forEach((function(e){co(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):io(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function co(t,e,r){return e=so(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function so(t){var e=uo(t,"string");return"symbol"===oo(e)?e:String(e)}function uo(t,e){if("object"!==oo(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==oo(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var lo=function(){var t=this,e=t._self._c;return e("div",[e("a-input",{attrs:{placeholder:t.placeholder,allowClear:""},on:{change:t.handleChange},model:{value:t.markers,callback:function(e){t.markers=e},expression:"markers"}},[e("a-icon",{attrs:{slot:"addonAfter",type:"environment"},on:{click:t.showModal},slot:"addonAfter"})],1),e("a-modal",t._b({attrs:{title:t.placeholder},on:{ok:t.submit,cancel:t.cancel},model:{value:t.visible,callback:function(e){t.visible=e},expression:"visible"}},"a-modal",ao({},t.fullscreenOptions),!1),[e("el-amap-search-box",{staticClass:"amap-search-box",attrs:{"search-option":t.searchOption,"on-search-result":t.handleSearch}}),e("el-amap",{staticClass:"amap-box",attrs:{vid:"amap-vue-polygon".concat(t._uid),center:t.center,plugin:t.plugin,zoom:t.zoom,"amap-manager":t.amapManager,events:t.events}})],1)],1)},fo=[];function ho(t){return ho="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ho(t)}function po(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function yo(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?po(Object(r),!0).forEach((function(e){vo(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):po(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function vo(t,e,r){return e=mo(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function mo(t){var e=go(t,"string");return"symbol"===ho(e)?e:String(e)}function go(t,e){if("object"!==ho(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==ho(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var bo={model:{prop:"value",event:"change"},props:{placeholder:{type:String,default:""},name:{type:String,default:""},value:{type:String,default:""},mapCenter:{type:Array,default:function(){return[116.405285,39.904989]}},mapZoom:{type:Number,default:18}},data:function(){var t=this;return{visible:!1,fullscreenOptions:{width:"100%",bodyStyle:{height:"".concat(document.body.clientHeight-108,"px"),overflowY:"auto",padding:"0"},dialogStyle:{padding:0},centered:!0},mapInstance:null,center:this.mapCenter,zoom:this.mapZoom,markers:this.value,polygonInstance:null,polygons:null,amapManager:null,mouseTool:null,polygonOption:{fillColor:"#2B6CDD",fillOpacity:.5,strokeColor:"#2B6CDD",strokeWeight:1},plugin:[{pName:"Scale"},{pName:"ToolBar",position:"RB"}],events:{init:function(e){t.mapInstance=e,t.initMap()},zoomend:function(){t.zoom=t.mapInstance.getZoom()}},searchOption:{citylimit:!1,autoFitView:!0}}},mounted:function(){this.amapManager=new Qn["AMapManager"]},methods:{initMap:function(){var t=this;Qn["lazyAMapApiLoaderInstance"].load().then((function(){AMap.plugin(["AMap.MouseTool"],(function(){t.mouseTool=new AMap.MouseTool(t.mapInstance),t.drawPolygon()}))}))},handleChange:function(t){var e=t.target.value;this.markers=e,this.markers||this.initDefault(),this.$emit("change",this.markers)},drawPolygon:function(){var t=this;this.mouseTool.polygon(),this.mouseTool.on("draw",(function(e){var r=e.obj.w.path,n=r.map((function(t){return[t.lng,t.lat]}));t.initPolygon(n),t.mouseTool.close(!0)}))},initPolygon:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];setTimeout((function(){t.mapInstance&&(t.polygonInstance&&t.mapInstance.remove(t.polygonInstance),t.polygonEditor&&t.polygonEditor.close(),t.polygonInstance=new AMap.Polygon(yo({map:t.mapInstance,path:e},t.polygonOption)),t.polygons=e,t.polygonEditor=new AMap.PolyEditor(t.mapInstance,t.polygonInstance),t.polygonEditor.open(),t.polygonEditor.on("adjust",(function(e){var r=e.target.w.path;t.polygons=r})),t.polygonEditor.on("end",(function(e){e.type,e.target;t.drawPolygon()})))}),500)},showModal:function(){if(this.visible=!0,this.markers){var t=this.markers.split("/"),e=t.length&&t[0];this.zoom=t.length&&t[1]?t[1]:18;var r=JSON.parse(e);this.center=r[0]?[Number(r[0][0]),Number(r[0][1])]:[98.5868,24.434008],this.initPolygon(r)}},submit:function(t){if(this.polygons){var e=this.polygons.map((function(t){return[t.lng,t.lat]}));this.markers=JSON.stringify(e)+"/".concat(this.zoom),this.polygonEditor&&this.polygonEditor.close()}else this.initDefault();this.$emit("change",this.markers),this.visible=!1},cancel:function(){this.markers||this.initDefault(),this.polygonEditor&&this.polygonEditor.close(),this.visible=!1},initDefault:function(){this.polygonInstance&&this.mapInstance&&this.mapInstance.remove(this.polygonInstance),this.polygonEditor&&this.polygonEditor.close(),this.polygons=null,this.center=this.mapCenter,this.zoom=this.mapZoom},handleSearch:function(t){if(t&&t.length){var e=t[0],r=e.lat,n=e.lng;this.center=[n,r]}}}},wo=bo,_o=(r("fa93"),Lr(wo,lo,fo,!1,null,"03415b3c",null)),xo=_o.exports;function Oo(t){return jo(t)||So(t)||Eo(t)||ko()}function ko(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Eo(t,e){if(t){if("string"===typeof t)return Lo(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Lo(t,e):void 0}}function So(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function jo(t){if(Array.isArray(t))return Lo(t)}function Lo(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Po=function(){var t=this,e=t._self._c;return e("div",[e("a-input",{attrs:{placeholder:t.placeholder,"read-only":""},model:{value:t.checkedValues,callback:function(e){t.checkedValues=e},expression:"checkedValues"}},[e("a-icon",{attrs:{slot:"addonAfter",type:"search"},on:{click:function(e){t.visible=!0}},slot:"addonAfter"})],1),e("a-modal",{attrs:{title:t.placeholder},on:{ok:t.handleSubmit,cancel:t.handleCancel},model:{value:t.visible,callback:function(e){t.visible=e},expression:"visible"}},[e("a-transfer",{staticClass:"tree-transfer",attrs:{"data-source":t.dataSource,"target-keys":t.checkedKeys,render:function(t){return t.title},"show-select-all":!1,"list-style":{maxHeight:"450px",overflowY:"auto"},"show-search":""},on:{change:t.onChange,search:t.handleSearch},scopedSlots:t._u([{key:"children",fn:function(r){var n=r.props,o=n.direction,i=n.selectedKeys,a=r.on.itemSelect;return["left"===o?e("a-spin",{attrs:{spinning:t.leftLoding}},[e("a-tree",{attrs:{blockNode:"",checkable:"",checkStrictly:"",checkedKeys:[].concat(Oo(i),Oo(t.checkedKeys)),treeData:t.filterTreeNodes},on:{check:function(e,r){t.onChecked(e,r,[].concat(Oo(i),Oo(t.checkedKeys)),a)},select:function(e,r){t.onChecked(e,r,[].concat(Oo(i),Oo(t.checkedKeys)),a)}}})],1):t._e()]}}])})],1)],1)},No=[];function Ao(t){return Ao="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ao(t)}function Co(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Co=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(L){s=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var i=e&&e.prototype instanceof h?e:h,a=Object.create(i.prototype),c=new E(o||[]);return n(a,"_invoke",{value:_(t,r,c)}),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(L){return{type:"throw",arg:L}}}t.wrap=u;var f={};function h(){}function p(){}function d(){}var y={};s(y,i,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(S([])));m&&m!==e&&r.call(m,i)&&(y=m);var g=d.prototype=h.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,c){var s=l(t[n],t,i);if("throw"!==s.type){var u=s.arg,f=u.value;return f&&"object"==Ao(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return o("throw",t,a,c)}))}c(s.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function _(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=x(a,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=l(t,e,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=l(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function S(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return p.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:p,configurable:!0}),p.displayName=s(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,s(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),s(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),s(g,c,"Generator"),s(g,i,(function(){return this})),s(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=S,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:S(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function To(t,e,r,n,o,i,a){try{var c=t[i](a),s=c.value}catch(u){return void r(u)}c.done?e(s):Promise.resolve(s).then(n,o)}function Io(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){To(i,n,o,a,c,"next",t)}function c(t){To(i,n,o,a,c,"throw",t)}a(void 0)}))}}var Mo=r("9f89"),Do=/\${([\s\S]+?)}/g,qo={model:{prop:"value",event:"change"},props:{placeholder:{type:String,default:"请选择数据"},treeUrl:{type:String,default:""},value:{type:String,default:""},titleName:{type:String,default:""},keyName:{type:String,default:""},selected:{type:Object,default:function(){return{}}}},data:function(){return{visible:!1,dataSource:[],checkedKeys:[],treeData:[],inputValue:"",leftLoding:!1,checkedValues:""}},computed:{treeNodes:function(){var t=this.treeData,e=this.titleName,r=this.keyName,n=this.checkedKeys,o=this.selected,i=function t(i){return i.map((function(i){var a;return i._childList&&(a=t(i._childList)),{title:i[e],key:i[r],children:a,disabled:n.includes(i[r])||o&&!me(o,i)}}))};return i(t)},filterTreeNodes:function(){var t=this;return this.inputValue?this.treeNodes.filter((function(e){return-1!==e.title.indexOf(t.inputValue)})):this.treeNodes},flattenTreeData:function(){var t=this,e=[];return this.treeData.forEach((function(r){e.push(r),r.children&&t.flatten(r.children)})),e}},created:function(){this.load()},methods:{load:function(){var t=this;return Io(Co().mark((function e(){var r,n;return Co().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(r=t.treeUrl,n=null,!r){e.next=6;break}return e.next=5,t.$api.get(Mo(r,{reInterpolate:Do})());case 5:n=e.sent;case 6:n&&n.data&&(t.treeData=n.data.collection,t.treeNodes&&t.flatten(JSON.parse(JSON.stringify(t.treeNodes)))),t.value&&(t.checkedKeys=t.value.split(","),t.setCheckValues());case 8:case"end":return e.stop()}}),e)})))()},getSelections:function(){var t=this;return this.flattenTreeData.filter((function(e){return t.checkedKeys.includes(e[t.keyName])}))},setCheckValues:function(){var t=this;this.checkedValues=this.treeNodes&&this.treeNodes.filter((function(e){return t.checkedKeys.includes(e.key)})).map((function(t){return t.title})).join(",")},onChange:function(t){this.checkedKeys=t,this.$emit("selected",this.getSelections())},isChecked:function(t,e){return-1!==t.indexOf(e)},onChecked:function(t,e,r,n){var o=e.node.eventKey;n(o,!this.isChecked(r,o))},flatten:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];e.forEach((function(e){t.dataSource.push({title:e.title,key:e.key}),e.children&&t.flatten(e.children)}))},handleSubmit:function(){this.setCheckValues(),this.$emit("submit",this.getSelections()),this.visible=!1},handleCancel:function(){this.$emit("selected",this.getSelections()),this.value?(this.checkedKeys=this.value.split(","),this.setCheckValues()):this.checkedKeys=[],this.visible=!1},handleSearch:function(t,e){var r=this,n=null;"left"===t&&(this.leftLoding=!0,n=setTimeout((function(){n&&clearTimeout(n),r.inputValue=e,r.leftLoding=!1}),1e3))}}},Ro=qo,Bo=(r("014f"),Lr(Ro,Po,No,!1,null,"d5aa2650",null)),Fo=Bo.exports,$o=function(){var t=this,e=t._self._c;return e("layout-view-blank",{tag:"component"},[e("a-spin",{staticStyle:{width:"100%"},attrs:{spinning:t.loading,delay:100}},["multiple"===t.pickerMode?t._l(t.selections,(function(r){return e("a-tag",{key:r[t.idName],attrs:{closable:""},on:{close:function(e){return t.handleRemove(r)}}},[t._v(" "+t._s(r[t.titleName||t.idName])+" ")])})):t._e(),e("keep-alive",[t.loading?t._e():e(t.createView,t._g(t._b({ref:"view",tag:"component",attrs:{pageKey:t.pageKey,viewKey:t.viewKey,pickerMode:t.pickerMode,mode:t.mode,layout:"layout-view-model-list-embed"},on:{selected:t.handleSelected}},"component",t.$attrs,!1),t.$listeners))],1)],2)],1)},Vo=[],Uo={props:{schema:{type:Object},pickerMode:{type:String,enum:["single","multiple"],default:"single"},mode:{type:String,default:"picker"}}};function Go(t){return Go="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Go(t)}function zo(t){return Wo(t)||Yo(t)||Ho(t)||Ko()}function Ko(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Ho(t,e){if(t){if("string"===typeof t)return Zo(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Zo(t,e):void 0}}function Yo(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function Wo(t){if(Array.isArray(t))return Zo(t)}function Zo(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Xo(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Xo=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(L){s=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var i=e&&e.prototype instanceof h?e:h,a=Object.create(i.prototype),c=new E(o||[]);return n(a,"_invoke",{value:_(t,r,c)}),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(L){return{type:"throw",arg:L}}}t.wrap=u;var f={};function h(){}function p(){}function d(){}var y={};s(y,i,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(S([])));m&&m!==e&&r.call(m,i)&&(y=m);var g=d.prototype=h.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,c){var s=l(t[n],t,i);if("throw"!==s.type){var u=s.arg,f=u.value;return f&&"object"==Go(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return o("throw",t,a,c)}))}c(s.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function _(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=x(a,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=l(t,e,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=l(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function S(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return p.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:p,configurable:!0}),p.displayName=s(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,s(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),s(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),s(g,c,"Generator"),s(g,i,(function(){return this})),s(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=S,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:S(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function Jo(t,e,r,n,o,i,a){try{var c=t[i](a),s=c.value}catch(u){return void r(u)}c.done?e(s):Promise.resolve(s).then(n,o)}function Qo(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){Jo(i,n,o,a,c,"next",t)}function c(t){Jo(i,n,o,a,c,"throw",t)}a(void 0)}))}}function ti(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function ei(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ti(Object(r),!0).forEach((function(e){ri(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ti(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function ri(t,e,r){return e=ni(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ni(t){var e=oi(t,"string");return"symbol"===Go(e)?e:String(e)}function oi(t,e){if("object"!==Go(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Go(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var ii={mixins:[Uo],components:ei({},bh),data:function(){return{pageKey:null,viewKey:null,storeNamespace:null,loading:!0,selections:[],idName:"",titleName:""}},created:function(){this.initView()},computed:{createView:function(){return{extends:$t(bh.ModelList)("".concat(this.storeNamespace))}}},methods:{create:$t,initView:function(){var t=this;return Qo(Xo().mark((function e(){var r,n,o;return Xo().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(r=t.schema.configs.find((function(t){return"picker.view"===t.key})),n=r?r.value:"",o="p-".concat(n),t.$store.hasModule(o)){e.next=7;break}return X(t.$store,o,!0),e.next=7,t.$store.dispatch("".concat(o,"/loadSchema"));case 7:t.pageKey=n,t.viewKey=n,t.storeNamespace="v-".concat(n),t.loading=!1;case 11:case"end":return e.stop()}}),e)})))()},handleSelected:function(t){this.idName=this.$refs.view.idName,this.titleName=this.$refs.view.titleName,this.selections="multiple"===this.pickerMode&&"picker"!==this.$refs.view.mode?Array.from(new Set([].concat(zo(this.selections),zo(t)).map((function(t){return JSON.stringify(t)})))).map((function(t){return JSON.parse(t)})):t,this.$emit("selected",this.selections)},handleRemove:function(t){var e=this.idName,r=this.selections,n=r.findIndex((function(r){return r[e]===t[e]}));-1!==n&&r.splice(n,1),this.$emit("selected",r)}}},ai=ii,ci=Lr(ai,$o,Vo,!1,null,null,null),si=ci.exports;function ui(t){return ui="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ui(t)}function li(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function fi(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?li(Object(r),!0).forEach((function(e){hi(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):li(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function hi(t,e,r){return e=pi(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function pi(t){var e=di(t,"string");return"symbol"===ui(e)?e:String(e)}function di(t,e){if("object"!==ui(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==ui(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var yi=function(){var t=this,e=t._self._c;return e(t.options.component,t._g(t._b({tag:"component",scopedSlots:t._u([{key:"title",fn:function(){return[t._t("title",(function(){return[t._v(t._s(t.title))]}))]},proxy:!0},t.$slots.footer?{key:"footer",fn:function(){return[t._t("footer")]},proxy:!0}:null],null,!0)},"component",fi(fi({},t.options),t.$attrs),!1),t.$listeners),[t._t("default")],2)},vi=[],mi={props:{type:{type:String,enum:["modal","drawer","fullscreen"],default:"modal"},title:{type:String},committing:{type:Boolean,default:!1},width:{type:String},footer:{type:String}},data:function(){return{modalOptions:{component:"a-modal",width:"750px",bodyStyle:{maxHeight:this.width||"500px",overflowY:"auto"},centered:!0,footer:this.footer,maskClosable:!1},fullscreenOptions:{component:"a-modal",width:"100%",bodyStyle:{height:this.footer&&"hide"===this.footer?"".concat(document.body.clientHeight-53,"px"):"".concat(document.body.clientHeight-108,"px"),overflowY:"auto"},dialogStyle:{padding:0},centered:!0,footer:this.footer},drawerOptions:{component:"a-drawer",width:this.width||"750px",destroyOnClose:!0,bodyStyle:{padding:0},footer:this.footer},viewOptions:{component:"div"}}},computed:{options:function(){return this["".concat(this.type,"Options")]}}},gi=mi,bi=Lr(gi,yi,vi,!1,null,null,null),wi=bi.exports,_i={mixins:[wn],components:{Editor:In,Picker:si,Popup:wi,VerificationCode:Gn,MapMarker:no,MapPolygon:xo,Transfer:Fo},watch:{value:function(t,e){var r=this.$refs.aInput;r&&(r.setValue(t),this.$refs.item.clearValidate())}}},xi=_i,Oi=(r("fa0b"),Lr(xi,rn,nn,!1,null,null,null)),ki=Oi.exports,Ei={mixins:[en],components:{Item:ki},props:{columns:{type:Array},layout:{type:String,default:"inline"}},computed:{attrs:function(){return this.view.configs["filters.collapse"]?this.columns.slice(0,this.view.configs["filters.collapse"]):this.columns}},data:function(){return{collapse:!1}}},Si=Ei,ji=Lr(Si,Rr,Br,!1,null,null,null),Li=ji.exports,Pi=function(){var t=this,e=t._self._c;return e("div",{staticStyle:{display:"inline-block"}},t._l(t.groups,(function(r,n){return e("a-button-group",{key:"group-".concat(n),staticStyle:{"margin-right":"16px"}},t._l(r.actions,(function(r){return e("a-button",{key:r.id,attrs:{type:r.primary?"primary":"default",icon:r.icon,disabled:r.disabled},on:{click:function(e){return t.handleClick(r,e)}}},[t._v(" "+t._s(r.name)+" "),"file"===r.action?e("input",{staticStyle:{display:"none"},attrs:{type:"file",name:"file"},on:{change:function(e){t.onFileChange(r,e.target.files),e.target.value=""}}}):t._e()])})),1)})),1)},Ni=[];function Ai(t){return Ai="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ai(t)}function Ci(t,e,r){return e=Ti(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ti(t){var e=Ii(t,"string");return"symbol"===Ai(e)?e:String(e)}function Ii(t,e){if("object"!==Ai(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Ai(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var Mi={props:{actions:{type:Array,default:function(){return[]}},type:{type:String,default:"button"}},computed:{groups:function(){var t=[];return this.actions.forEach((function(e,r){var n=t.length-1;e.group||!r?t.push({actions:[e]}):t[n].actions.push(e)})),t}},methods:{handleClick:function(t,e){var r=e.target.getElementsByTagName("input");"file"===t.action?(e.stopPropagation(),r[0]&&void 0===r[0].click()||e.path&&e.path[1].getElementsByTagName("input")[0].click()):this.$emit("action",t)},onFileChange:function(t,e){var r=t.list?t.list:"file";this.$emit("action",t,null,Ci({},r,e))}}},Di=Mi,qi=Lr(Di,Pi,Ni,!1,null,null,null),Ri=qi.exports,Bi=function(){var t=this,e=t._self._c;return e("div",[t.$attrs.params.actionViewTip?e("a-alert",{staticStyle:{margin:"0 -24px 8px"},attrs:{message:t.$attrs.params.actionViewTip,"show-icon":"",banner:""}}):t._e(),e(t.createView,t._g(t._b({tag:"component",attrs:{pageKey:t.page.pageKey,viewKey:t.action.key||t.action.method.toLowerCase(),delay:!0,action:t.action}},"component",t.$attrs,!1),t.$listeners))],1)},Fi=[],$i={inject:["page","view"],props:{action:{type:Object},modelViewType:{type:String}},computed:{createView:function(){return{extends:$t(bh["Model".concat(this.modelViewType)])("".concat(this.view.storeNamespace))}}}},Vi=$i,Ui=Lr(Vi,Bi,Fi,!1,null,null,null),Gi=Ui.exports,zi=function(){var t=this,e=t._self._c;return e("a-pagination",t._g(t._b({attrs:{"show-quick-jumper":""}},"a-pagination",t.$attrs,!1),t.$listeners))},Ki=[],Hi={},Yi=Lr(Hi,zi,Ki,!1,null,null,null),Wi=Yi.exports,Zi=function(){var t=this,e=t._self._c;return e("span",[t.editable&&["write","updateonly"].includes(t.schema.access)?e("Item",{attrs:{formModel:t.editRow,prop:t.schema.name,schema:t.schema,params:{},labelType:!1},on:{change:function(e){return t.$emit("change",e)},fill:function(e){return t.$emit("fill",e)}},model:{value:t.editValue,callback:function(e){t.editValue=e},expression:"editValue"}}):t.component?e(t.component,t._b({tag:"component",attrs:{text:t.text}},"component",t.$props,!1)):t.script?e("span",{domProps:{innerHTML:t._s(t.text)}}):"title"===t.schema.display?e("a",{on:{click:function(e){return t.$emit("profile")}}},[t._v(" "+t._s(t.text)+" ")]):e("span",[t._v(t._s(t.text))])],1)},Xi=[];function Ji(t){return Ji="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ji(t)}function Qi(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function ta(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Qi(Object(r),!0).forEach((function(e){ea(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Qi(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function ea(t,e,r){return e=ra(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ra(t){var e=na(t,"string");return"symbol"===Ji(e)?e:String(e)}function na(t,e){if("object"!==Ji(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Ji(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var oa={mixins:[Or],components:{Item:ki},props:["editable","value","row","schema","mode","viewURL","idName","vid","rowIndex"],data:function(){return{component:null,script:null,editValue:this.value}},computed:{text:function(){return this.formatter(this.row,this.value,this.schema)},editRow:function(){return ta({},this.row)}},created:function(){var t=this;if(this.schema&&this.schema.format){var e=this.schema.format.slice(0,8);"function"===e?this.script=this.schema.format:this.component={props:["editable","value","row","schema","mode","viewURL","idName","text","vid","rowIndex"],data:function(){return{model:{}}},methods:{profile:function(){t.$emit("profile")}},template:"title"===this.schema.display?'<a @click="profile">'.concat(this.schema.format,"</a> "):this.schema.format}}},watch:{value:function(t,e){t!==e&&(this.editValue=t)},editable:function(t){t&&this.editValue!==this.editRow[this.schema.name]&&(this.editValue=this.editRow[this.schema.name])}}},ia=oa,aa=Lr(ia,Zi,Xi,!1,null,null,null),ca=aa.exports;function sa(t){return sa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sa(t)}function ua(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function la(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ua(Object(r),!0).forEach((function(e){fa(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ua(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function fa(t,e,r){return e=ha(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ha(t){var e=pa(t,"string");return"symbol"===sa(e)?e:String(e)}function pa(t,e){if("object"!==sa(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==sa(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var da={mixins:[Gt,zt,ye,br,Or,ce,se],components:la(la(la({},qr),bh),{},{FilterForm:Li,ActionGroup:Ri,ActionView:Gi,PaginationSize:Wi,Popup:wi,Cell:ca})},ya=da,va=(r("ca3b"),Lr(ya,Vt,Ut,!1,null,null,null)),ma=va.exports,ga=function(){var t=this,e=t._self._c;return e("a-spin",{attrs:{spinning:t.actioning}},[e(t.layout,{tag:"component",scopedSlots:t._u([{key:"actions-none",fn:function(){return[t.routeId?e("ActionGroup",{attrs:{actions:t.backActions},on:{action:t.handleAction}}):t._e(),t.navActions.length?e("ActionGroup",{attrs:{actions:t.navActions},on:{action:t.handleAction}}):t._e()]},proxy:!0},t.actions.length?{key:"actions-single",fn:function(){return[e("ActionGroup",{attrs:{actions:t.actions},on:{action:t.handleAction}})]},proxy:!0}:null,{key:"actions-setting",fn:function(){return[e("ActionGroup",{attrs:{actions:t.settingActions},on:{action:t.handleAction}})]},proxy:!0}],null,!0)},[e("a-spin",{staticStyle:{width:"100%"},attrs:{spinning:!t.profile}},[t.profile?e("profile-".concat(t.configs["profile.widget"]||"normal"),{tag:"component",attrs:{groups:t.groups,columns:t.columns,subviews:t.subviews,loading:t.loading,profile:t.profile,column:t.parentIds?1:2,configs:t.configs},scopedSlots:t._u([{key:"cell",fn:function(r){var n=r.value,o=r.column;return[e("Cell",{attrs:{row:t.profile,schema:o,value:n}})]}},{key:"action",fn:function(){return[e("ActionGroup",{attrs:{actions:t.actions},on:{action:t.handleAction}})]},proxy:!0}],null,!1,1366521354)}):t._e()],1),t.actionViewVisible?e("Popup",{class:{"ant-modal-tip":t.actionParams.actionViewTip},attrs:{visible:t.actionViewVisible,title:t.action.name,type:t.actionViewMode,okButtonProps:t.actionOkButtonProps,cancelButtonProps:t.actionCancelButtonProps,footer:"hide"===t.actionParams.footer?null:void 0},on:{ok:t.submitActionView,close:t.closeActionView,cancel:t.closeActionView}},[t.actionViewVisible?e("ActionView",{attrs:{action:t.action,submited:t.actionSubmited,values:t.actionModel,modelViewType:t.actionViewType,widget:t.actionViewWidget,parentIds:t.parentIds,params:t.actionParams,selections:t.profile,schema:t.schema,commitResult:t.actionCommitResult},on:{commit:t.commitActionView}}):t._e(),t.action.params&&t.action.params.autofill?e("a-row",{attrs:{slot:"footer",type:"flex",justify:"space-between",align:"middle"},slot:"footer"},[e("a-col",[e("a-checkbox",{on:{change:t.handleAutoFill}},[t._v(" 自动填充表单 ")])],1),e("a-col",[e("a-space",[e("a-button",{attrs:{icon:"close",disabled:t.committing},on:{click:t.closeActionView}},[t._v(" 取消 ")]),e("a-button",{attrs:{type:"primary",icon:"check",loading:t.committing},on:{click:t.submitActionView}},[t._v(" 确认 ")])],1)],1)],1):t._e()],1):t._e()],1)],1)},ba=[];function wa(t){return wa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wa(t)}function _a(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_a=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(L){s=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var i=e&&e.prototype instanceof h?e:h,a=Object.create(i.prototype),c=new E(o||[]);return n(a,"_invoke",{value:_(t,r,c)}),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(L){return{type:"throw",arg:L}}}t.wrap=u;var f={};function h(){}function p(){}function d(){}var y={};s(y,i,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(S([])));m&&m!==e&&r.call(m,i)&&(y=m);var g=d.prototype=h.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,c){var s=l(t[n],t,i);if("throw"!==s.type){var u=s.arg,f=u.value;return f&&"object"==wa(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return o("throw",t,a,c)}))}c(s.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function _(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=x(a,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=l(t,e,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=l(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function S(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return p.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:p,configurable:!0}),p.displayName=s(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,s(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),s(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),s(g,c,"Generator"),s(g,i,(function(){return this})),s(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=S,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:S(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function xa(t,e,r,n,o,i,a){try{var c=t[i](a),s=c.value}catch(u){return void r(u)}c.done?e(s):Promise.resolve(s).then(n,o)}function Oa(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){xa(i,n,o,a,c,"next",t)}function c(t){xa(i,n,o,a,c,"throw",t)}a(void 0)}))}}var ka={props:{profileId:{type:String},values:{type:Object},hasList:{type:Boolean,default:!0},editMode:{type:String,default:"none",enum:["none","item","action","default"]},tileMode:{type:String,enum:["normal","portal","navigation"]},groupMode:{type:String,enum:["layout","tabs","steps"]},groupLayout:{type:String,enum:["horizontal","vertical"]},detailGroupName:{type:String,default:"详情"},detailLayout:{type:String,enum:["header","first-group","mix"]},layout:{type:String,default:"layout-view-model-list"}},data:function(){return{setProfileID:null,routeId:null,unwatchRoute:null}},computed:{columns:function(){var t=this.model.attrs.filter((function(t){return!["all"].includes(t.hidden)&&"model"!==t.metaType&&"link"!==t.type}));return t},subviews:function(){var t=this;return this.model.attrs.filter((function(e){var r=e.params,n=void 0===r?{}:r,o=n.show;return!["all"].includes(e.hidden)&&["collection","link"].includes(e.type)&&(!o||me(o,t.profile))}))},groups:function(){var t=[];return this.columns.forEach((function(e,r){var n=t.length-1;e.group||!r?t.push({name:e.group,columns:[e]}):t[n].columns.push(e)})),t},layouts:function(){},id:function(){var t=this.values,e=this.idName,r=this.profileId,n=this.routeId,o=this.findAll;return t?t[e]:r||n||o[0]&&o[0][e]},profile:function(){var t=this.values||this.findOne(this.id)||null;return this.params.$parent&&(t.$parent=this.params.$parent),t},next:function(){var t=this,e=this.findAll.findIndex((function(e){return e[t.idName]===t.id}));return this.findAll[e+1]},previous:function(){var t=this,e=this.findAll.findIndex((function(e){return e[t.idName]===t.id}));return this.findAll[e-1]},backActions:function(){return[{key:"_back",name:"返回",icon:"left",action:"list"}]}},methods:{showColumn:function(){},navigationTo:function(t){this.parentIds||"page"!==this.mode?this.$emit("profile",t):this.$router.replace({params:{id:t[this.idName]}})},handleNext:function(){this.next&&this.navigationTo(this.next)},handlePrevious:function(){this.previous&&this.navigationTo(this.previous)},handleList:function(){this.parentIds||"page"!==this.mode?this.$emit("close"):this.$router.replace(this.$route.meta.key)},load:function(){var t=arguments,e=this;return Oa(_a().mark((function r(){var n,o,i;return _a().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return n=t.length>0&&void 0!==t[0]&&t[0],r.next=3,e.loadData({key:e.id,mute:n});case 3:if(o=r.sent,!(o instanceof Error)){r.next=8;break}return i=o.response.data.code,404===i&&e.handleBack(),r.abrupt("return");case 8:return r.abrupt("return",o);case 9:case"end":return r.stop()}}),r)})))()}},created:function(){this.routeId=this.$route.params.id},activated:function(){var t=this;this.routeId=this.$route.params.id,!this.profile&&this.id&&this.load(),this.unwatchRoute=this.$watch("$route.params.id",(function(e){t.routeId=e}))},deactivated:function(){this.unwatchRoute&&this.unwatchRoute()}};function Ea(t){return Pa(t)||La(t)||ja(t)||Sa()}function Sa(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function ja(t,e){if(t){if("string"===typeof t)return Na(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Na(t,e):void 0}}function La(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function Pa(t){if(Array.isArray(t))return Na(t)}function Na(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Aa=function(){var t=this,e=t._self._c;return e("div",[e("a-spin",{attrs:{spinning:t.loading}},t._l(t.groups,(function(r,n){return e("Descriptions",{key:"g-".concat(n),staticClass:"profile-normal-descriptions",staticStyle:{"margin-bottom":"16px"},attrs:{column:t.column,size:"small",bordered:"",profile:""}},[r.name?e("div",{attrs:{slot:"title"},slot:"title"},[e("strong",[t._v(t._s(r.name))])]):t._e(),t._l(r.columns,(function(r,o){return[!t.collapse||t.showDescItems["showDescItem".concat(n)]||o<t.collapse?e("DescriptionsItem",{key:r.name,attrs:{span:r.column?r.column/12:1,label:r.alias||r.name,tooltip:r.legend}},[t._t("cell",null,{value:t.profile[r.name],column:r})],2):t._e()]})),t.collapse?e("div",{staticStyle:{"text-align":"center"},attrs:{slot:"footer"},slot:"footer"},[e("a",{staticClass:"showdesc-btn",on:{click:function(e){t.showDescItems["showDescItem".concat(n)]=!t.showDescItems["showDescItem".concat(n)]}}},[e("a-icon",{attrs:{type:t.showDescItems["showDescItem".concat(n)]?"double-left":"double-right"}})],1)]):t._e()],2)})),1),t.tabs.length?e("a-card",{attrs:{size:"small",type:"inner"}},[e("a-tabs",{attrs:{animated:!1,"default-active-key":t.activeTabKey,size:"small"},on:{change:t.handleChange}},t._l(t.tabs,(function(r,n){return e("a-tab-pane",{key:String(n),attrs:{tab:r.tab}},["link"===r.type?e("Frame",{attrs:{url:t.templateURL(r.value,t.profile),height:t.iframeHeight(r.value)}}):e("keep-alive",[e(t.Views[n],{tag:"component",attrs:{layout:"layout-view-model-list-embed",parentIds:[].concat(Ea(t.parentIds||[]),[t.id]),pageKey:t.pageKey,viewKey:r.name,params:{$parent:t.profile}}})],1)],1)})),1)],1):t._e()],1)},Ca=[],Ta={DESCRIPTIONS_ITEM:!0,props:{label:String,span:{type:Number,default:1},align:{type:String,default:"left"},tooltip:{type:String,default:""}},render:function(){return this.$slots.default},renderError:function(){}},Ia=function(){var t=this,e=t._self._c;return e("tr",{staticClass:"ant-descriptions-row"},[t._t("default")],2)},Ma=[],Da={},qa=Da,Ra=Lr(qa,Ia,Ma,!1,null,null,null),Ba=Ra.exports;function Fa(t){return Fa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fa(t)}function $a(t,e,r){return e=Va(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Va(t){var e=Ua(t,"string");return"symbol"===Fa(e)?e:String(e)}function Ua(t,e){if("object"!==Fa(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Fa(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var Ga=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=[],n=[],o=e,i=t.filter((function(t){var e=t.componentOptions||{Ctor:{}},r=e.Ctor.options;return!!r&&r.DESCRIPTIONS_ITEM}));return i.forEach((function(t,a){var c=t.componentOptions.propsData.span||1;if(a===i.length-1)return n.push(t),void r.push(n);c<o?(o-=c,n.push(t)):(n.push(t),r.push(n),o=e,n=[])})),r},za={DescriptionsItem:Ta,components:{Row:Ba},props:{title:String,bordered:{type:Boolean,default:!1},column:{type:[Number,Object],default:3},size:{type:[Boolean,String],default:!1,enum:["default","middle","small"]},layout:{type:String,default:"horizontal",enum:["horizontal","vertical"]},inline:{type:Boolean,default:!0},colon:{type:Boolean,default:!0},profile:{type:Boolean,default:!1}},render:function(t){var e,r=this.title,n=this.bordered,o=this.size,i=this.colon,a=this.layout,c=this.inline,s=this.column,u=this.$slots,l=this.profile,f=Ga(u.default,s);return t("div",{class:(e={"ant-descriptions":!0},$a(e,"ant-descriptions-".concat(o),!0),$a(e,"ant-descriptions-bordered",!!n),$a(e,"ant-descriptions-profile",!!l),e)},[r&&t("div",{class:"ant-descriptions-title"},[r]),!r&&u.title&&t("div",{class:"ant-descriptions-title"},[u.title]),t("div",{class:"ant-descriptions-view"},[t("table",[t("tbody",[f.map((function(e){return"vertical"===a?[t(Ba,[" ",e.map((function(e){var r=e.componentOptions.propsData,n=r.span,o=r.label,i=r.align,a=r.tooltip;return t("th",{class:"ant-descriptions-item-label",style:{"text-align":i},attrs:{colSpan:n}},a?[o,t("a-tooltip",{attrs:{placement:"right"}},[t("template",{slot:"title"},[t("span",[a])]),t("a-icon",{attrs:{theme:"filled",type:"question-circle"},style:"margin-left:8px;color:#d8d8d8;"})])]:[o])}))," "]),t(Ba,[" ",e.map((function(e){var r=e.componentOptions.propsData,n=r.span,o=r.align;return t("td",{class:"ant-descriptions-item-content",style:{"text-align":o,"white-space":"pre-wrap"},attrs:{colSpan:n}},[e])}))," "])]:t(Ba,[" ",e.map((function(e){var r=e.componentOptions.propsData,o=r.label,a=r.span,s=r.align,u=r.tooltip;return n||!c?[t("th",{class:"ant-descriptions-item-label"},u?[o,t("a-tooltip",{attrs:{placement:"right"}},[t("template",{slot:"title"},[t("span",[u])]),t("a-icon",{attrs:{theme:"filled",type:"question-circle"},style:"margin-left:8px;color:#d8d8d8;"})])]:[o]),t("td",{class:"ant-descriptions-item-content",style:{"text-align":s,"white-space":"pre-wrap"},attrs:{colSpan:a?2*a-1:""}},[e])]:t("td",{class:"ant-descriptions-item",attrs:{colSpan:a},style:{"text-align":s}},u?[t("span",{class:{"ant-descriptions-item-label":!0,"ant-descriptions-item-colon":i}},[o,t("a-tooltip",{attrs:{placement:"right"}},[t("template",{slot:"title"},[t("span",[u])]),t("a-icon",{attrs:{theme:"filled",type:"question-circle"},style:"margin-left:8px;color:#d8d8d8;"})])]),t("span",{class:"ant-descriptions-item-content",style:"white-space:pre-wrap"},[e])]:[t("span",{class:{"ant-descriptions-item-label":!0,"ant-descriptions-item-colon":i}},[o]),t("span",{class:"ant-descriptions-item-content",style:"white-space:pre-wrap"},[e])])}))," "])}))])])]),u.footer&&t("div",[u.footer])])},renderError:function(){}},Ka=function(){var t=this,e=t._self._c;return e("a-spin",{attrs:{spinning:t.loading,delay:50}},[e("iframe",{style:{height:t.height},attrs:{frameborder:"0",src:"".concat(t.url),width:"100%"},on:{load:t.handleLoad}})])},Ha=[],Ya={props:{url:String,query:Object,height:{type:[Number,String],default:"100vh"}},data:function(){return{loading:!0}},methods:{handleLoad:function(){this.loading=!1,this.$emit("load")}}},Wa=Ya,Za=Lr(Wa,Ka,Ha,!1,null,null,null),Xa=Za.exports;function Ja(t){return Ja="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ja(t)}function Qa(t){return nc(t)||rc(t)||ec(t)||tc()}function tc(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function ec(t,e){if(t){if("string"===typeof t)return oc(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?oc(t,e):void 0}}function rc(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function nc(t){if(Array.isArray(t))return oc(t)}function oc(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function ic(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function ac(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ic(Object(r),!0).forEach((function(e){cc(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ic(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function cc(t,e,r){return e=sc(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function sc(t){var e=uc(t,"string");return"symbol"===Ja(e)?e:String(e)}function uc(t,e){if("object"!==Ja(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Ja(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var lc,fc,hc=za.DescriptionsItem,pc={components:ac({Descriptions:za,DescriptionsItem:hc,Frame:Xa},bh),inject:["page","view"],props:{groups:{type:Array},columns:{type:Array},subviews:{type:Array},profile:{type:Object},column:{type:[Number,Object],default:2},loading:{type:Boolean,default:!1}},data:function(){return{activeTabKey:"0",views:Qa(this.subviews),id:this.view.id,parentIds:this.view.parentIds&&Qa(this.view.parentIds),storeNamespace:this.view.storeNamespace,pageKey:this.page.pageKey,showDescItems:{}}},methods:{handleChange:function(t){this.activeTabKey=t},templateURL:function(t,e){return be(t,e)},iframeHeight:function(t){var e;if(t&&t.split("?")[1]){var r=t.split("?")[1].split("&").find((function(t){return t.includes("height")}))||void 0;r&&(e=r.split("=")[1])}return e}},created:function(){var t=this;if(this.groups.length&&this.collapse&&this.groups.forEach((function(e,r){t.$set(t.showDescItems,"showDescItem".concat(r),!1)})),this.$route.query&&this.$route.query.activeTabKey){var e=this.tabs.find((function(e){return e.name===t.$route.query.activeTabKey}));e&&(this.activeTabKey=e.key)}},computed:{tabs:function(){return this.views.map((function(t,e){return ac(ac({},t),{},{key:String(e),tab:t.alias||t.name})}))},Views:function(){var t=this;return this.views.map((function(e){return{extends:$t(bh.ModelList)("".concat(t.storeNamespace,"/:id/").concat(e.name))}}))},collapse:function(){return this.view.configs["profile.collapse"]?Number(this.view.configs["profile.collapse"]):null}},watch:{profile:function(){this.views=Qa(this.subviews),this.id=this.view.id}}},dc=pc,yc=(r("5dd0"),Lr(dc,Aa,Ca,!1,null,null,null)),vc=yc.exports,mc={},gc=Lr(mc,lc,fc,!1,null,null,null),bc=gc.exports;function wc(t){return kc(t)||Oc(t)||xc(t)||_c()}function _c(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function xc(t,e){if(t){if("string"===typeof t)return Ec(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ec(t,e):void 0}}function Oc(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function kc(t){if(Array.isArray(t))return Ec(t)}function Ec(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Sc=function(){var t=this,e=t._self._c;return e("a-row",[t.view.configs["profile.tile.hideAnchor"]?t._e():e("a-col",{attrs:{span:3}},[e("a-anchor",{attrs:{affix:t.affix,getContainer:t.getContainer,offsetTop:t.view.configs["profile.tile.offsetTop"]&&Number(t.view.configs["profile.tile.offsetTop"])||0},on:{change:t.handleChange,click:t.handleClick}},[t._l(t.groups,(function(t,r){return e("a-anchor-link",{key:"anchor-g-".concat(r),attrs:{href:"#profile-tile-group-".concat(r),title:t.name}})})),t._l(t.tabs,(function(t,r){return e("a-anchor-link",{key:"anchor-t-".concat(r),attrs:{href:"#profile-tile-tab-".concat(r),title:t.tab}})}))],2)],1),e("a-col",{attrs:{span:t.view.configs["profile.tile.hideAnchor"]?24:21}},[e("a-spin",{attrs:{spinning:t.loading}},t._l(t.groups,(function(r,n){return e("a-card",{key:"g-".concat(n),staticClass:"gs-card",attrs:{size:"small",id:"profile-tile-group-".concat(n),title:r.name,bordered:!1,headStyle:{borderBottom:0}}},[t._e(),e("Descriptions",{staticStyle:{"margin-bottom":"16px"},attrs:{column:t.column,size:"small",bordered:"",profile:""}},[t._l(r.columns,(function(r,o){return[!t.collapse||t.showDescItems["showDescItem".concat(n)]||o<t.collapse?e("DescriptionsItem",{key:r.name,attrs:{span:r.column?r.column/12:1,label:r.alias||r.name,tooltip:r.legend}},[t._t("cell",null,{value:t.profile[r.name],column:r})],2):t._e()]})),t.collapse?e("div",{staticStyle:{"text-align":"center"},attrs:{slot:"footer"},slot:"footer"},[e("a",{staticClass:"showdesc-btn",on:{click:function(e){t.showDescItems["showDescItem".concat(n)]=!t.showDescItems["showDescItem".concat(n)]}}},[e("a-icon",{attrs:{type:t.showDescItems["showDescItem".concat(n)]?"double-left":"double-right"}})],1)]):t._e()],2)],1)})),1),t._l(t.tabs,(function(r,n){return e("a-card",{key:String(n),staticClass:"gs-card",attrs:{tab:r.tab,size:"small",id:"profile-tile-tab-".concat(n),title:r.tab,bordered:!1,headStyle:{borderBottom:0}}},["link"===r.type?e("Frame",{attrs:{url:t.templateURL(r.value,t.profile),height:t.iframeHeight(r.value)}}):e("keep-alive",[e(t.Views[n],{tag:"component",attrs:{layout:"layout-view-model-list-embed",parentIds:[].concat(wc(t.parentIds||[]),[t.id]),pageKey:t.pageKey,viewKey:r.name,params:{$parent:t.profile}}})],1)],1)}))],2)],1)},jc=[];function Lc(t){return Lc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Lc(t)}function Pc(t){return Tc(t)||Cc(t)||Ac(t)||Nc()}function Nc(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Ac(t,e){if(t){if("string"===typeof t)return Ic(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ic(t,e):void 0}}function Cc(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function Tc(t){if(Array.isArray(t))return Ic(t)}function Ic(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Mc(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Dc(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Mc(Object(r),!0).forEach((function(e){qc(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Mc(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function qc(t,e,r){return e=Rc(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Rc(t){var e=Bc(t,"string");return"symbol"===Lc(e)?e:String(e)}function Bc(t,e){if("object"!==Lc(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Lc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var Fc=za.DescriptionsItem,$c={components:Dc({Descriptions:za,DescriptionsItem:Fc,Frame:Xa},bh),inject:["page","view","container"],props:{groups:{type:Array},columns:{type:Array},subviews:{type:Array},profile:{type:Object},column:{type:[Number,Object],default:2},loading:{type:Boolean,default:!1}},data:function(){return{activeTabKey:"0",views:Pc(this.subviews),id:this.view.id,parentIds:this.view.parentIds&&Pc(this.view.parentIds),storeNamespace:this.view.storeNamespace,pageKey:this.page.pageKey,affix:!0,showDescItems:{}}},created:function(){var t=this;this.groups.length&&this.collapse&&this.groups.forEach((function(e,r){t.$set(t.showDescItems,"showDescItem".concat(r),!1)}))},methods:{handleChange:function(t){},templateURL:function(t,e){return be(t,e)},handleClick:function(t,e){t.preventDefault()},getContainer:function(){var t=this.container&&this.container.$refs.container;return t&&t.$el||t||window},iframeHeight:function(t){var e;if(t&&t.split("?")[1]){var r=t.split("?")[1].split("&").find((function(t){return t.includes("height")}))||void 0;r&&(e=r.split("=")[1])}return e}},computed:{tabs:function(){return this.views.map((function(t,e){return Dc(Dc({},t),{},{key:String(e),tab:t.alias||t.name})}))},Views:function(){var t=this;return this.views.map((function(e){return{extends:$t(bh.ModelList)("".concat(t.storeNamespace,"/:id/").concat(e.name))}}))},collapse:function(){return this.view.configs["profile.collapse"]?Number(this.view.configs["profile.collapse"]):null}},watch:{profile:function(){this.views=Pc(this.subviews),this.id=this.view.id}},activated:function(){this.affix=!0},deactivated:function(){this.affix=!1}},Vc=$c,Uc=(r("e41e"),Lr(Vc,Sc,jc,!1,null,null,null)),Gc=Uc.exports;function zc(t){return Wc(t)||Yc(t)||Hc(t)||Kc()}function Kc(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Hc(t,e){if(t){if("string"===typeof t)return Zc(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Zc(t,e):void 0}}function Yc(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function Wc(t){if(Array.isArray(t))return Zc(t)}function Zc(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Xc=function(){var t=this,e=t._self._c;return t.tabs.length?e("div",[t.basicAttrsColumns.length?e("Descriptions",{staticStyle:{"margin-bottom":"16px"},attrs:{column:t.column,size:"small",bordered:"",profile:""}},[t._l(t.basicAttrsColumns,(function(r){return[e("DescriptionsItem",{key:r.name,attrs:{span:r.column?r.column/12:1,label:r.alias||r.name,tooltip:r.legend}},[t._t("cell",null,{value:t.profile[r.name],column:r})],2)]}))],2):t._e(),e("a-tabs",{attrs:{animated:!1,"default-active-key":t.activeTabKey},on:{change:t.handleChange}},t._l(t.tabs,(function(r,n){return e("a-tab-pane",{key:String(n),attrs:{tab:r.tab}},["profile"===r.type?e("a-spin",{attrs:{spinning:t.loading}},t._l(t.groups,(function(r,n){return e("Descriptions",{key:"g-".concat(n),staticStyle:{"margin-bottom":"16px"},attrs:{column:t.column,size:"small",bordered:"",profile:""}},[r.name?e("div",{attrs:{slot:"title"},slot:"title"},[e("strong",[t._v(t._s(r.name))])]):t._e(),t._l(t.subAttrsColumns(r.columns),(function(r,o){return[!t.collapse||t.showDescItems["showDescItem".concat(n)]||o<t.collapse?e("DescriptionsItem",{key:r.name,attrs:{span:r.column?r.column/12:1,label:r.alias||r.name,tooltip:r.legend}},[t._t("cell",null,{value:t.profile[r.name],column:r})],2):t._e()]})),t.collapse?e("div",{staticStyle:{"text-align":"center"},attrs:{slot:"footer"},slot:"footer"},[e("a",{staticClass:"showdesc-btn",on:{click:function(e){t.showDescItems["showDescItem".concat(n)]=!t.showDescItems["showDescItem".concat(n)]}}},[e("a-icon",{attrs:{type:t.showDescItems["showDescItem".concat(n)]?"double-left":"double-right"}})],1)]):t._e()],2)})),1):"link"===r.type?e("Frame",{attrs:{url:t.templateURL(r.value,t.profile),height:t.iframeHeight(r.value)}}):e("keep-alive",[e(t.Views[n],{tag:"component",attrs:{layout:"layout-view-model-list-embed",parentIds:[].concat(zc(t.parentIds||[]),[t.id]),pageKey:t.pageKey,viewKey:r.name,params:{$parent:t.profile}}})],1)],1)})),1)],1):t._e()},Jc=[];function Qc(t){return Qc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qc(t)}function ts(t){return os(t)||ns(t)||rs(t)||es()}function es(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function rs(t,e){if(t){if("string"===typeof t)return is(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?is(t,e):void 0}}function ns(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function os(t){if(Array.isArray(t))return is(t)}function is(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function as(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function cs(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?as(Object(r),!0).forEach((function(e){ss(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):as(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function ss(t,e,r){return e=us(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function us(t){var e=ls(t,"string");return"symbol"===Qc(e)?e:String(e)}function ls(t,e){if("object"!==Qc(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Qc(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var fs=za.DescriptionsItem,hs={components:cs({Descriptions:za,DescriptionsItem:fs,Frame:Xa},bh),inject:["page","view"],props:{groups:{type:Array},columns:{type:Array},subviews:{type:Array},profile:{type:Object},column:{type:[Number,Object],default:2},loading:{type:Boolean,default:!1},configs:{type:Object}},data:function(){return{activeTabKey:"0",views:[{name:"详情",type:"profile"}].concat(ts(this.subviews)),id:this.view.id,parentIds:this.view.parentIds&&ts(this.view.parentIds),storeNamespace:this.view.storeNamespace,pageKey:this.page.pageKey,showDescItems:{}}},methods:{handleChange:function(t){this.activeTabKey=t},templateURL:function(t,e){return be(t,e)},iframeHeight:function(t){var e;if(t&&t.split("?")[1]){var r=t.split("?")[1].split("&").find((function(t){return t.includes("height")}))||void 0;r&&(e=r.split("=")[1])}return e},subAttrsColumns:function(t){var e=this;return this.basicAttrs.length?t.filter((function(t){return!e.basicAttrs.includes(t.name)})):t}},created:function(){var t=this;if(this.groups.length&&this.collapse&&this.groups.forEach((function(e,r){t.$set(t.showDescItems,"showDescItem".concat(r),!1)})),this.$route.query&&this.$route.query.activeTabKey){var e=this.tabs.find((function(e){return e.name===t.$route.query.activeTabKey}));e&&(this.activeTabKey=e.key)}},computed:{tabs:function(){return this.views.map((function(t,e){return cs(cs({},t),{},{key:String(e),tab:t.alias||t.name})}))},Views:function(){var t=this;return this.views.map((function(e){return{extends:$t(bh.ModelList)("".concat(t.storeNamespace,"/:id/").concat(e.name))}}))},collapse:function(){return this.view.configs["profile.collapse"]?Number(this.view.configs["profile.collapse"]):null},basicAttrs:function(){var t=[];return this.view.configs&&this.view.configs["profile.tabs.basicAttrs"]&&(t=this.view.configs["profile.tabs.basicAttrs"].split(",")),t},basicAttrsColumns:function(){var t=this;return this.basicAttrs.length?this.columns.filter((function(e){return t.basicAttrs.includes(e.name)})):[]}},watch:{profile:function(){this.views=[{name:"详情",type:"profile"}].concat(ts(this.subviews)),this.id=this.view.id}}},ps=hs,ds=(r("540a"),Lr(ps,Xc,Jc,!1,null,null,null)),ys=ds.exports,vs={ProfileNormal:vc,ProfilePortal:bc,ProfileTile:Gc,ProfileTabs:ys};function ms(t){return ms="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ms(t)}function gs(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function bs(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?gs(Object(r),!0).forEach((function(e){ws(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):gs(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function ws(t,e,r){return e=_s(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function _s(t){var e=xs(t,"string");return"symbol"===ms(e)?e:String(e)}function xs(t,e){if("object"!==ms(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==ms(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var Os={mixins:[Gt,zt,ye,br,Or,ka],components:bs({ActionGroup:Ri,ActionView:Gi,Popup:wi,Cell:ca},vs)},ks=Os,Es=(r("a613"),Lr(ks,ga,ba,!1,null,null,null)),Ss=Es.exports,js=function(){var t=this,e=t._self._c;return e("layout-view-blank",{tag:"component"},[t.commitResult.template&&t.commitResult.data?e("a-result",{attrs:{status:"success",title:t.message}},[e(t.commitResult,{tag:"component"})],1):e(t.formWidget||t.widget,t._g(t._b({tag:"component",attrs:{action:t.action,columns:t.columns,params:t.params}},"component",t.$attrs,!1),t.$listeners))],1)},Ls=[],Ps={create:["createonly","updateonly","write","deepwrite"],update:["updateonly","write","deepwrite"]},Ns={model:{event:"change"},props:{value:{type:[Object,Array]},action:{type:Object},layout:{type:String,enum:["horizontal","vertical","inline","group"]},editType:{type:String,default:"create",enum:["create","update","bulk","save"]},submitType:{type:String,default:"submit",enum:["change","submit"]},allowUnsubmittedCache:{type:Boolean,default:!0},allowPreviousCache:{type:Boolean,default:!1},displayReadonly:{type:String,default:"none",enum:["none","readonly","all"]},isGroup:{type:Boolean,default:!1},commitResult:{type:Object},submitActions:{type:Array,default:function(){return[{name:"确定",icon:"",handle:"submit"},{name:"取消",icon:"",handle:"cancel"}]}}},created:function(){"create"===this.editType&&this.allowUnsubmittedCache&&this.getLocalStore()},computed:{columns:function(){var t=this.action,e=this.params,r=this.model,n=this.editType,o=this.hide,i=t&&t.view?t.view.model.attrs:e&&e.attrs?e.attrs:r.attrs?r.attrs:[];if(t&&t.list){var a=this.action.list.split(",");return i.filter((function(t){return!o.includes(t.name)&&a.includes(t.name)}))}return i.filter((function(t){return Ps[n].includes(t.access)&&!o.includes(t.name)&&"collection"!==t.metaType&&"model"!==t.metaType&&"link"!==t.type}))},rules:function(){},formWidget:function(){var t=Object.fromEntries(this.action.configs.map((function(t){return[t.key,t.value]})))||[],e=t["form.widget"]||this.configs["form.widget"]||null;return e}},methods:{setLocalStore:function(){},getLocalStore:function(){},reset:function(){},validate:function(){},handleChange:function(){this.$emit("change")},handleSubmit:function(){this.$emit("submited")},handleCommit:function(){this.$emit("commited")}}},As=function(){var t=this,e=t._self._c;return e("a-form-model",{ref:"form",attrs:{rules:t.rules,model:t.actionModel}},[e("a-row",{attrs:{gutter:24}},t._l(t.columns,(function(r){return e("a-col",{key:r.name,staticStyle:{"min-height":"0"},attrs:{span:r.column||12}},[e("Item",{attrs:{formModel:t.actionModel,prop:r.name,schema:r,params:t.params},on:{change:function(e){return t.handleItemChange(e,r)},fill:function(e){return t.handleItemFill(e,r)}},model:{value:t.actionModel[r.name],callback:function(e){t.$set(t.actionModel,r.name,e)},expression:"actionModel[col.name]"}})],1)})),1)],1)},Cs=[],Ts={mixins:[en],components:{Item:ki}},Is=Ts,Ms=Lr(Is,As,Cs,!1,null,null,null),Ds=Ms.exports,qs=function(){var t=this,e=t._self._c;return e("div",[e("a-upload",{attrs:{multiple:"",beforeUpload:t.beforeUpload,showUploadList:!1}},[e("a-button",[e("a-icon",{attrs:{type:"upload"}}),t._v(" 批量上传 ")],1)],1),t._l(t.fileList,(function(r,n){return e("div",{key:n,staticClass:"form-file-upload"},[e("a-row",{attrs:{type:"flex",justify:"space-between",align:"middle"}},[e("a-col",["uploading"===r.status?e("a-icon",{attrs:{type:"loading"}}):"done"===r.status?e("a-icon",{attrs:{type:"paper-clip"}}):t._e(),t._v(" "+t._s(r.file.name)+" ")],1),e("a-col",[r.status?t._e():e("a-icon",{attrs:{type:"close"},on:{click:function(e){return t.handleRemove(n)}}})],1)],1)],1)}))],2)},Rs=[];function Bs(t){return Bs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bs(t)}function Fs(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Fs=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(L){s=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var i=e&&e.prototype instanceof h?e:h,a=Object.create(i.prototype),c=new E(o||[]);return n(a,"_invoke",{value:_(t,r,c)}),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(L){return{type:"throw",arg:L}}}t.wrap=u;var f={};function h(){}function p(){}function d(){}var y={};s(y,i,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(S([])));m&&m!==e&&r.call(m,i)&&(y=m);var g=d.prototype=h.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,c){var s=l(t[n],t,i);if("throw"!==s.type){var u=s.arg,f=u.value;return f&&"object"==Bs(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return o("throw",t,a,c)}))}c(s.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function _(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=x(a,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=l(t,e,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=l(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function S(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return p.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:p,configurable:!0}),p.displayName=s(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,s(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),s(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),s(g,c,"Generator"),s(g,i,(function(){return this})),s(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=S,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:S(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function $s(t,e,r,n,o,i,a){try{var c=t[i](a),s=c.value}catch(u){return void r(u)}c.done?e(s):Promise.resolve(s).then(n,o)}function Vs(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){$s(i,n,o,a,c,"next",t)}function c(t){$s(i,n,o,a,c,"throw",t)}a(void 0)}))}}var Us={mixins:[en],data:function(){return{fileList:[]}},methods:{handleRemove:function(t){var e=this.fileList.slice();e.splice(t,1),this.fileList=e},beforeUpload:function(t){return this.fileList.push({file:t,status:""}),!1},handleSubmit:function(){var t=this;return Vs(Fs().mark((function e(){var r;return Fs().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(r=t.view.view.selections,0!==t.fileList.length){e.next=3;break}return e.abrupt("return",t.$message.error("请选择文件"));case 3:if(!(r&&r.length>1)){e.next=5;break}return e.abrupt("return",t.$message.error("请选择一条文件进行上传"));case 5:t.handleCommit();case 6:case"end":return e.stop()}}),e)})))()},handleCommit:function(){var t=this;return Vs(Fs().mark((function e(){var r,n,o,i,a,c,s,u,l,f,h,p;return Fs().wrap((function(e){while(1)switch(e.prev=e.next){case 0:p=function(){return p=Vs(Fs().mark((function t(e){var r,p,d;return Fs().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.status="uploading",r=o.key,p=o.method,d=new FormData,d.append("file",e.file),a&&d.append("data[".concat(i,"]"),a[i]),t.next=7,n({data:d,key:r,method:p,mute:!0});case 7:f++,e.status="done",f>=l.length?(c(),s(),u.success("上传完成")):h(l[f]);case 10:case"end":return t.stop()}}),t)}))),p.apply(this,arguments)},h=function(t){return p.apply(this,arguments)},r=t.view.view,n=r.saveData,o=r.action,i=r.idName,a=r.actionModel,c=r.closeActionView,s=r.load,u=r.$message,l=t.fileList,f=0,h(l[f]);case 6:case"end":return e.stop()}}),e)})))()}}},Gs=Us,zs=Lr(Gs,qs,Rs,!1,null,null,null),Ks=zs.exports,Hs=function(){var t=this,e=t._self._c;return e("Picker",t._g(t._b({attrs:{viewKey:t.action.key||t.action.method.toLowerCase(),schema:t.action,params:{filters:t.pickerFilter},pickerMode:t.pickerMode},on:{selected:t.handleViewPickerSelected}},"Picker",t.$attrs,!1),t.$listeners))},Ys=[];function Ws(t){return Ws="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ws(t)}function Zs(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Xs(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Zs(Object(r),!0).forEach((function(e){Js(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Zs(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Js(t,e,r){return e=Qs(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Qs(t){var e=tu(t,"string");return"symbol"===Ws(e)?e:String(e)}function tu(t,e){if("object"!==Ws(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Ws(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var eu={mixins:[en],components:{Picker:si},computed:{pickerFilter:function(){var t=this.action.params,e=t&&t.filters,r={};if(!e)return null;for(var n in e){var o=e[n].split(".").reduce((function(t,e){return t&&t[e]||void 0}),Xs(Xs({},this.params),this.actionModel));r[n]=void 0===o?e[n]:o}return r},pickerMode:function(){var t=this.action.params,e=void 0===t?{}:t,r=e.multiple,n=e.pickerMode;return"none"===n?null:r?"multiple":"single"}},methods:{handleSubmit:function(){if(!this.actionModel||!this.actionModel.length)return this.$message.error("请选择数据");this.handleCommit()},handleViewPickerSelected:function(t){var e=this.configs["picker.view.value"],r=e;this.actionModel=r?t.map((function(t){return Js({},r,t[e])})):t}}},ru=eu,nu=Lr(ru,Hs,Ys,!1,null,null,null),ou=nu.exports,iu=function(){var t=this,e=t._self._c;return e("div",[e("a-steps",{attrs:{current:t.current}},t._l(t.steps,(function(r){return e("a-step",{key:r.title,attrs:{title:r.title}},["核心解读"===r.title?e("a-badge",{attrs:{slot:"subTitle","number-style":t.badgeStyle,count:t.algorithmCount.coreAlgorithmCount},slot:"subTitle"}):t._e(),"描述解读"===r.title?e("a-badge",{attrs:{slot:"subTitle","number-style":t.badgeStyle,count:t.algorithmCount.describeAlgorithmCount},slot:"subTitle"}):t._e(),"排盘数据"===r.title?e("a-badge",{attrs:{slot:"subTitle","number-style":t.badgeStyle,count:t.algorithmCount.paipanDataCount},slot:"subTitle"}):t._e(),"术数分析"===r.title?e("a-badge",{attrs:{slot:"subTitle","number-style":t.badgeStyle,count:t.algorithmCount.surgeryAnalysisCount},slot:"subTitle"}):t._e()],1)})),1),Object.keys(t.algorithmList).length&&t.current<t.steps.length-1?e("div",{staticClass:"algorithm-preview"},[e("strong",[t._v("算法集合预览:")]),t._v(t._s(t.algorithmList)+" ")]):t._e(),e("a-spin",{attrs:{spinning:t.loading}},[0===t.current?e("div",{staticClass:"steps-content"},[e("a-input",{staticStyle:{margin:"0 16px 16px 0",width:"200px"},attrs:{placeholder:"输入算法标题搜索",allowClear:""},model:{value:t.nameKeyword,callback:function(e){t.nameKeyword="string"===typeof e?e.trim():e},expression:"nameKeyword"}}),e("a-input",{staticStyle:{margin:"0 16px 16px 0",width:"200px"},attrs:{placeholder:"输入算法编号算法",allowClear:""},model:{value:t.codeKeyword,callback:function(e){t.codeKeyword="string"===typeof e?e.trim():e},expression:"codeKeyword"}}),e("a-button",{attrs:{type:"primary"},on:{click:t.onSearch}},[t._v(" 搜索 ")]),t.algorithmData.length?[e("a-tabs",{attrs:{defaultActiveKey:"".concat(t.algorithmData[0].children[0].name,"0"),"tab-position":"left"}},t._l(t.algorithmData[0].children,(function(r,n){return e("a-tab-pane",{key:r.name+n.toString()},[e("span",{attrs:{slot:"tab"},slot:"tab"},[t._v(" "+t._s(r.name)+" "),e("a-badge",{staticStyle:{"margin-left":"4px"},attrs:{"number-style":t.badgeStyle,count:t.algorithmTotal(r.children)}})],1),e("CheckboxGroup",{attrs:{title:r.name,data:r.children,defaultCheckedList:t.defaultCheckedList},on:{change:function(e){return t.handleChange(e,t.steps[t.current].title,r.name,n)}}})],1)})),1)]:e("a-empty")],2):t._e(),1===t.current?e("div",{staticClass:"steps-content"},[e("a-input",{staticStyle:{margin:"0 16px 16px 0",width:"200px"},attrs:{placeholder:"输入算法标题搜索",allowClear:""},model:{value:t.nameKeyword,callback:function(e){t.nameKeyword="string"===typeof e?e.trim():e},expression:"nameKeyword"}}),e("a-input",{staticStyle:{margin:"0 16px 16px 0",width:"200px"},attrs:{placeholder:"输入算法编号算法",allowClear:""},model:{value:t.codeKeyword,callback:function(e){t.codeKeyword="string"===typeof e?e.trim():e},expression:"codeKeyword"}}),e("a-button",{attrs:{type:"primary"},on:{click:t.onSearch}},[t._v(" 搜索 ")]),t.algorithmData.length?[e("a-tabs",{attrs:{defaultActiveKey:"".concat(t.algorithmData[0].children[0].name,"0"),"tab-position":"left"}},t._l(t.algorithmData[0].children,(function(r,n){return e("a-tab-pane",{key:r.name+n.toString()},[e("span",{attrs:{slot:"tab"},slot:"tab"},[t._v(" "+t._s(r.name)+" "),e("a-badge",{staticStyle:{"margin-left":"4px"},attrs:{"number-style":t.badgeStyle,count:t.algorithmTotal(r.children)}})],1),e("CheckboxGroup",{attrs:{title:r.name,data:r.children,defaultCheckedList:t.defaultCheckedList},on:{change:function(e){return t.handleChange(e,t.steps[t.current].title,r.name,n)}}})],1)})),1)]:e("a-empty")],2):t._e(),2===t.current?e("div",{staticClass:"steps-content"},[e("a-input",{staticStyle:{margin:"0 16px 16px 0",width:"200px"},attrs:{placeholder:"输入算法标题搜索",allowClear:""},model:{value:t.nameKeyword,callback:function(e){t.nameKeyword="string"===typeof e?e.trim():e},expression:"nameKeyword"}}),e("a-input",{staticStyle:{margin:"0 16px 16px 0",width:"200px"},attrs:{placeholder:"输入算法编号算法",allowClear:""},model:{value:t.codeKeyword,callback:function(e){t.codeKeyword="string"===typeof e?e.trim():e},expression:"codeKeyword"}}),e("a-button",{attrs:{type:"primary"},on:{click:t.onSearch}},[t._v(" 搜索 ")]),t.algorithmData.length?[e("a-tabs",{attrs:{defaultActiveKey:"".concat(t.algorithmData[0].children[0].name,"0"),"tab-position":"left"}},t._l(t.algorithmData[0].children,(function(r,n){return e("a-tab-pane",{key:r.name+n.toString()},[e("span",{attrs:{slot:"tab"},slot:"tab"},[t._v(" "+t._s(r.name)+" "),e("a-badge",{staticStyle:{"margin-left":"4px"},attrs:{"number-style":t.badgeStyle,count:t.algorithmTotal(r.children)}})],1),e("CheckboxGroup",{attrs:{title:r.name,data:r.children,defaultCheckedList:t.defaultCheckedList},on:{change:function(e){return t.handleChange(e,t.steps[t.current].title,r.name,n)}}})],1)})),1)]:e("a-empty")],2):t._e(),3===t.current?e("div",{staticClass:"steps-content"},[e("a-input",{staticStyle:{margin:"0 16px 16px 0",width:"200px"},attrs:{placeholder:"输入算法标题搜索",allowClear:""},model:{value:t.nameKeyword,callback:function(e){t.nameKeyword="string"===typeof e?e.trim():e},expression:"nameKeyword"}}),e("a-input",{staticStyle:{margin:"0 16px 16px 0",width:"200px"},attrs:{placeholder:"输入算法编号算法",allowClear:""},model:{value:t.codeKeyword,callback:function(e){t.codeKeyword="string"===typeof e?e.trim():e},expression:"codeKeyword"}}),e("a-button",{attrs:{type:"primary"},on:{click:t.onSearch}},[t._v(" 搜索 ")]),t.algorithmData.length?[e("a-tabs",{attrs:{defaultActiveKey:"".concat(t.algorithmData[0].children[0].name,"0"),"tab-position":"left"}},t._l(t.algorithmData[0].children,(function(r,n){return e("a-tab-pane",{key:r.name+n.toString()},[e("span",{attrs:{slot:"tab"},slot:"tab"},[t._v(" "+t._s(r.name)+" "),e("a-badge",{staticStyle:{"margin-left":"4px"},attrs:{"number-style":t.badgeStyle,count:t.algorithmTotal(r.children)}})],1),e("CheckboxGroup",{attrs:{title:r.name,data:r.children,defaultCheckedList:t.defaultCheckedList},on:{change:function(e){return t.handleChange(e,t.steps[t.current].title,r.name,n)}}})],1)})),1)]:e("a-empty")],2):t._e(),4===t.current?e("div",{staticClass:"steps-content"},[e("AlgorithmForm",{attrs:{algorithmList:t.algorithmList},on:{close:function(e){return t.$emit("close")}}})],1):t._e()]),e("div",{staticClass:"steps-action"},[t.current>0?e("a-button",{staticStyle:{"margin-right":"8px"},on:{click:t.prev}},[t._v(" 上一步 ")]):t._e(),t.current<t.steps.length-1?e("a-button",{attrs:{type:"primary"},on:{click:t.next}},[t._v(" 下一步 ")]):t._e()],1)],1)},au=[];function cu(t){return cu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},cu(t)}function su(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */su=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(L){s=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var i=e&&e.prototype instanceof h?e:h,a=Object.create(i.prototype),c=new E(o||[]);return n(a,"_invoke",{value:_(t,r,c)}),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(L){return{type:"throw",arg:L}}}t.wrap=u;var f={};function h(){}function p(){}function d(){}var y={};s(y,i,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(S([])));m&&m!==e&&r.call(m,i)&&(y=m);var g=d.prototype=h.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,c){var s=l(t[n],t,i);if("throw"!==s.type){var u=s.arg,f=u.value;return f&&"object"==cu(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return o("throw",t,a,c)}))}c(s.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function _(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=x(a,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=l(t,e,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=l(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function S(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return p.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:p,configurable:!0}),p.displayName=s(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,s(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),s(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),s(g,c,"Generator"),s(g,i,(function(){return this})),s(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=S,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:S(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function uu(t,e,r,n,o,i,a){try{var c=t[i](a),s=c.value}catch(u){return void r(u)}c.done?e(s):Promise.resolve(s).then(n,o)}function lu(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){uu(i,n,o,a,c,"next",t)}function c(t){uu(i,n,o,a,c,"throw",t)}a(void 0)}))}}var fu={namespaced:!0,state:{loading:!1,data:{},district:[],status:200,message:""},mutations:{setLoading:function(t,e){t.loading=e},setData:function(t,e){var r=e.key,n=e.rows;t.data[r]?t.data[r]=n:P.a.set(t.data,r,n)},setDistrict:function(t,e){t.district=e},setStatus:function(t,e){var r=e.status,n=e.message;t.status=r,t.message=n}},actions:{loadData:function(t){var e=arguments;return lu(su().mark((function r(){var n,o,i,a,c,s,u,l;return su().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return n=t.commit,o=t.dispatch,i=e.length>1&&void 0!==e[1]?e[1]:{},a=i.methods,c=void 0===a?"get":a,s=i.key,u=i.query,n("setLoading",!0),r.prev=4,r.next=7,E[c](u?"/api/".concat(s?"".concat(s):"","?").concat(j.a.stringify(u)):"/api/".concat(s?"".concat(s):""));case 7:l=r.sent,l.data&&s&&n("setData",{rows:l.data,key:s}),r.next=14;break;case 11:r.prev=11,r.t0=r["catch"](4),o("handleError",r.t0);case 14:return r.prev=14,n("setLoading",!1),r.finish(14);case 17:case"end":return r.stop()}}),r,null,[[4,11,14,17]])})))()},loadDistrict:function(t){return lu(su().mark((function e(){var r,n,o,i;return su().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=t.commit,n=t.dispatch,r("setLoading",!0),e.prev=2,e.next=5,E.get("/dataset/%E8%A1%8C%E6%94%BF%E5%8C%BA%E5%88%92");case 5:o=e.sent,i=o.data,i&&r("setDistrict",i.data),e.next=13;break;case 10:e.prev=10,e.t0=e["catch"](2),n("handleError",e.t0);case 13:return e.prev=13,r("setLoading",!1),e.finish(13);case 16:case"end":return e.stop()}}),e,null,[[2,10,13,16]])})))()},getResult:function(t){var e=arguments;return lu(su().mark((function r(){var n,o,i,a,c,s;return su().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return n=t.commit,o=t.dispatch,i=e.length>1&&void 0!==e[1]?e[1]:{},a=i.key,c=i.params,n("setLoading",!0),r.prev=4,r.next=7,E.post(a,c,{});case 7:if(s=r.sent,!s||!s.data){r.next=10;break}return r.abrupt("return",s.data);case 10:r.next=15;break;case 12:r.prev=12,r.t0=r["catch"](4),o("handleError",r.t0);case 15:return r.prev=15,n("setLoading",!1),r.finish(15);case 18:case"end":return r.stop()}}),r,null,[[4,12,15,18]])})))()},handleError:function(t,e){var r=t.commit;if(!e.response)return r("setStatus",{status:0,message:"网络请求错误,请检查您的网络连接。"});var n=e.response,o=n.status,i=n.data,a=i&&i.content||"系统错误请与管理员联系。";r("setStatus",{status:o,message:a})}}};function hu(t){return hu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hu(t)}function pu(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function du(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?pu(Object(r),!0).forEach((function(e){yu(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):pu(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function yu(t,e,r){return e=vu(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function vu(t){var e=mu(t,"string");return"symbol"===hu(e)?e:String(e)}function mu(t,e){if("object"!==hu(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==hu(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}for(var gu=Object(l["createNamespacedHelpers"])("m-algorithm"),bu=gu.mapState,wu=gu.mapActions,_u=["loading","data","message"],xu=["loadData","loadDistrict","getResult"],Ou={computed:du({},bu(_u)),methods:du({},wu(xu)),beforeCreate:function(){this.$store.state["m-algorithm"]||this.$store.registerModule("m-algorithm",fu)}},ku=function(){var t=this,e=t._self._c;return e("div",{staticClass:"algorithm-checkbox"},[e("a-row",{staticStyle:{width:"100%",padding:"0 32px"},attrs:{gutter:24}},t._l(t.data,(function(r){return e("a-col",{key:r.id,staticClass:"algorithm-item",class:{"algorithm-item-actived":r.checked},attrs:{span:6}},[e("a-row",{attrs:{gutter:24}},[e("a-col",{attrs:{span:20}},[e("a-checkbox",{staticClass:"text-ellipsis",attrs:{checked:r.checked},on:{change:function(e){return t.onCheckChange(e,r)}}},[e("a-tooltip",[e("template",{slot:"title"},[t._v(" "+t._s(r.name)+" ")]),t._v(" "+t._s(r.name)+" ")],2)],1)],1),e("a-col",{staticClass:"params-setting",attrs:{span:4},on:{click:function(e){return t.showDrawer(r.read_id)}}},[r.checked?e("a-icon",{staticClass:"algorithm-item-action",attrs:{type:"setting"}}):t._e()],1)],1)],1)})),1),e("a-drawer",{attrs:{title:"高级配置",placement:"right",visible:t.visible,width:"512",bodyStyle:{overflow:"auto"}},on:{close:function(e){t.visible=!1}}},[e("h3",{staticStyle:{"margin-bottom":"16px"}},[t._v("解读详情")]),e("Descriptions",{staticStyle:{"margin-bottom":"16px"},attrs:{size:"small",column:1,bordered:""}},[e("DescriptionsItem",{attrs:{label:"编码"}},[t._v(t._s(t.algorithmDetail.code))]),e("DescriptionsItem",{attrs:{label:"名称"}},[t._v(t._s(t.algorithmDetail.name))]),e("DescriptionsItem",{attrs:{label:"解读分类"}},[t._v(t._s(t.algorithmDetail.classify))]),e("DescriptionsItem",{attrs:{label:"算法类别"}},[t._v(t._s(t.algorithmDetail.type))]),e("DescriptionsItem",{attrs:{label:"作者"}},[t._v(t._s(t.algorithmDetail.author))]),e("DescriptionsItem",{attrs:{label:"标签"}},[t._v(t._s(t.algorithmDetail.core_basis))]),e("DescriptionsItem",{attrs:{label:"解读维度"}},[t._v(t._s(t.algorithmDetail.latitude))]),e("DescriptionsItem",{attrs:{label:"解读赋值"}},[t._v(t._s(t.algorithmDetail.app_product))])],1),e("h3",{staticStyle:{"margin-bottom":"16px"}},[t._v("参数配置")]),e("a-tabs",{attrs:{type:"editable-card"},on:{edit:t.onEdit},model:{value:t.activeKey,callback:function(e){t.activeKey=e},expression:"activeKey"}},t._l(t.panes,(function(r,n){return e("a-tab-pane",{key:r.key,attrs:{tab:"".concat(r.title,"_").concat(n+1),closable:0!==n}},[e("AlgorithmParams",{attrs:{algorithmParams:r.algorithmParams,algorithmParamsKey:r.key},on:{submit:t.submitForm}})],1)})),1),e("div",{style:{position:"absolute",right:0,bottom:0,width:"100%",borderTop:"1px solid #e9e9e9",padding:"10px 16px",background:"#fff",textAlign:"right",zIndex:1}},[e("a-button",{style:{marginRight:"8px"},on:{click:function(e){t.visible=!1}}},[t._v(" 取消 ")]),e("a-button",{attrs:{type:"primary",loading:t.btnLoading},on:{click:function(e){return t.submitParams(t.copyPaneParams)}}},[t._v(" 确定 ")])],1)],1)],1)},Eu=[],Su=function(){var t=this,e=t._self._c;return e("a-form-model",{ref:"dynamicValidateForm",attrs:{model:t.dynamicValidateForm}},[t._l(t.dynamicValidateForm.algorithms,(function(r,n){return e("a-form-model-item",{key:r.key,attrs:{prop:"algorithms."+n+".value",rules:{required:!0,message:"请输入算法参数",trigger:"blur"}}},[e("a-input",{staticStyle:{width:"60%","margin-right":"8px"},attrs:{placeholder:"请输入算法参数"},on:{blur:function(e){return t.submitForm("dynamicValidateForm")}},model:{value:r.value,callback:function(e){t.$set(r,"value",e)},expression:"domain.value"}}),e("a-icon",{staticClass:"dynamic-delete-button",attrs:{type:"minus-circle-o",disabled:1===t.dynamicValidateForm.algorithms.length},on:{click:function(e){return t.removeDomain(r)}}})],1)})),e("a-form-model-item",[e("a-button",{staticStyle:{width:"60%"},attrs:{type:"dashed"},on:{click:t.addDomain}},[e("a-icon",{attrs:{type:"plus"}}),t._v(" 增加 ")],1)],1),e("a-form-model-item",[e("a-button",{on:{click:function(e){return t.resetForm("dynamicValidateForm")}}},[t._v(" 重置 ")])],1)],2)},ju=[],Lu={props:{algorithmParams:{type:Array,default:function(){return[]}},algorithmParamsKey:{type:[String,Number]}},data:function(){return{dynamicValidateForm:{algorithms:this.algorithmParams}}},methods:{submitForm:function(t){var e=this;this.$refs[t].validate((function(t){if(!t)return!1;e.setParams()}))},setParams:function(){var t=this.dynamicValidateForm.algorithms.map((function(t){return t.value})),e={key:this.algorithmParamsKey,algorithmParams:t};this.$emit("submit",e)},resetForm:function(t){this.$refs[t].resetFields(),this.dynamicValidateForm.algorithms=[],this.setParams()},removeDomain:function(t){var e=this.dynamicValidateForm.algorithms.indexOf(t);-1!==e&&this.dynamicValidateForm.algorithms.splice(e,1),this.setParams()},addDomain:function(){this.dynamicValidateForm.algorithms.push({value:"",key:Date.now()})}},watch:{algorithmParams:function(t){this.dynamicValidateForm.algorithms=t}}},Pu=Lu,Nu=Lr(Pu,Su,ju,!1,null,null,null),Au=Nu.exports,Cu=za.DescriptionsItem,Tu={props:{title:{type:String},data:{type:Array,require:!0},defaultCheckedList:{type:Array}},components:{Descriptions:za,DescriptionsItem:Cu,AlgorithmParams:Au},data:function(){return{checkedList:this.defaultCheckedList||[],visible:!1,btnLoading:!1,algorithmId:null,algorithmParams:[],activeKey:0,panes:[],paneParams:{},copyPaneParams:{}}},computed:{algorithmDetail:function(){var t=this;return this.data.find((function(e){return e.read_id===t.algorithmId}))||{}}},methods:{onCheckChange:function(t,e){if(e.checked=t.target.checked,e.checked)this.checkedList.push(e);else{var r=this.checkedList.findIndex((function(t){return e.read_id===t.read_id}));this.checkedList.splice(r,1)}this.$emit("change",this.checkedList)},showDrawer:function(t){var e=this;this.algorithmId=t;var r=this.checkedList.find((function(e){return e.read_id===t})).values;if(r.length)this.panes=r.map((function(t,r){var n={key:"".concat(e.algorithmId).concat(r),title:"参数",algorithmParams:t.map((function(t,e){return{key:e,value:t}}))};return n}));else{var n={key:"".concat(this.algorithmId,"0"),title:"参数",algorithmParams:[]};this.submitForm(n),this.panes=[n]}this.activeKey=this.panes[0].key,this.visible=!0},submitForm:function(t){var e=t.key;this.paneParams[e]?this.paneParams[e]=t.algorithmParams:this.$set(this.paneParams,e,t.algorithmParams),this.setParams()},setParams:function(){for(var t in this.copyPaneParams=Object.assign({},this.paneParams),this.copyPaneParams)-1===t.indexOf(this.algorithmId)&&delete this.copyPaneParams[t]},submitParams:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.btnLoading=!0;var r=this.checkedList.find((function(e){return e.read_id===t.algorithmId}));e&&(r.values=Object.values(e)),this.$emit("change",this.checkedList),this.visible=this.btnLoading=!1},onEdit:function(t,e){this[e](t)},add:function(){var t=this.panes,e=t.length?t.length:0,r="".concat(this.algorithmId).concat(e),n={title:"参数",algorithmParams:[],key:r};this.submitForm(n),this.panes.push(n),this.panes=t,this.activeKey=r},remove:function(t){delete this.paneParams[t],this.setParams();var e,r=this.activeKey;this.panes.forEach((function(r,n){r.key===t&&(e=n-1)}));var n=this.panes.filter((function(e){return e.key!==t}));n.length&&r===t&&(r=e>=0?n[e].key:n[0].key),this.panes=n,this.activeKey=r}},watch:{}},Iu=Tu,Mu=(r("a59b"),Lr(Iu,ku,Eu,!1,null,null,null)),Du=Mu.exports,qu=function(){var t=this,e=t._self._c;return e("div",[e("a-row",{attrs:{type:"flex"}},[e("a-col",{staticStyle:{padding:"24px","background-color":"#fafafa"},attrs:{span:12}},[e("div",{staticStyle:{"text-align":"center","margin-bottom":"24px"}},[t._v(" 可 "),e("a",{on:{click:function(e){t.pickerVisible=!0}}},[t._v(" 选择系统中现有命例 ")]),t._v(" ,快速填充命例信息。 ")]),e("a-form-model",{ref:"profileForm",attrs:{layout:t.formLayout,model:t.profile,rules:t.profileRules}},[e("a-form-model-item",{attrs:{label:"昵称",prop:"nick_name","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[e("a-input",{attrs:{placeholder:"请输入昵称",allowClear:""},model:{value:t.profile.nick_name,callback:function(e){t.$set(t.profile,"nick_name",e)},expression:"profile.nick_name"}})],1),e("a-form-model-item",{attrs:{label:"性别","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[e("a-radio-group",{model:{value:t.profile.gender,callback:function(e){t.$set(t.profile,"gender",e)},expression:"profile.gender"}},[e("a-radio",{attrs:{value:"male"}},[t._v("男")]),e("a-radio",{attrs:{value:"female"}},[t._v("女")])],1)],1),e("a-form-model-item",{attrs:{label:"公历","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[e("a-radio-group",{on:{change:t.handleLunarChange},model:{value:t.profile.is_lunar,callback:function(e){t.$set(t.profile,"is_lunar",e)},expression:"profile.is_lunar"}},[e("a-radio",{attrs:{value:!1}},[t._v("公历")]),e("a-radio",{attrs:{value:!0}},[t._v("农历")])],1)],1),t.hasDaylight?e("a-form-model-item",{attrs:{label:"夏令时","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[e("a-radio-group",{model:{value:t.profile.is_day_light,callback:function(e){t.$set(t.profile,"is_day_light",e)},expression:"profile.is_day_light"}},[e("a-radio",{attrs:{value:!0}},[t._v("是")]),e("a-radio",{attrs:{value:!1}},[t._v("否")])],1)],1):t._e(),e("a-form-model-item",{attrs:{label:"出生日期",prop:"birthday","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[e("a-popover",{attrs:{trigger:"click",overlayClassName:"custom-popover"},model:{value:t.visible,callback:function(e){t.visible=e},expression:"visible"}},[e("a-input",{attrs:{placeholder:"请选择出生日期",allowClear:""},model:{value:t.profile.birthday,callback:function(e){t.$set(t.profile,"birthday",e)},expression:"profile.birthday"}}),e("DateTimePicker",{attrs:{slot:"content",isLunar:t.profile.is_lunar},on:{change:t.handleDateTimeChange},slot:"content"})],1)],1),t.hasLeap?e("a-form-model-item",{attrs:{label:"是否为闰月","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[e("a-radio-group",{model:{value:t.profile.is_leap,callback:function(e){t.$set(t.profile,"is_leap",e)},expression:"profile.is_leap"}},[e("a-radio",{attrs:{value:!0}},[t._v("是")]),e("a-radio",{attrs:{value:!1}},[t._v("否")])],1)],1):t._e(),e("a-form-model-item",{attrs:{label:"是否为双胞胎","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[e("a-radio-group",{model:{value:t.profile.is_twins,callback:function(e){t.$set(t.profile,"is_twins",e)},expression:"profile.is_twins"}},[e("a-radio",{attrs:{value:!0}},[t._v("是")]),e("a-radio",{attrs:{value:!1}},[t._v("否")])],1),t.profile.is_twins?e("a-input",{attrs:{addonBefore:"第",addonAfter:"胎"},model:{value:t.profile.birth_num,callback:function(e){t.$set(t.profile,"birth_num",e)},expression:"profile.birth_num"}}):t._e()],1),e("a-form-model-item",{attrs:{label:"出生地",prop:"place","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[e("a-cascader",{attrs:{options:t.districts,allowClear:"",placeholder:"请选择出生地"},on:{change:t.handleDistrictChange},model:{value:t.profile.place,callback:function(e){t.$set(t.profile,"place",e)},expression:"profile.place"}})],1),e("a-form-model-item",{attrs:{label:"算法","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[t._v(" "+t._s(t.profile.code)+" ")]),e("a-form-model-item",{attrs:{label:"产品编码",prop:"productCode","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[e("a-input",{attrs:{placeholder:"请输入产品编码",allowClear:""},model:{value:t.profile.productCode,callback:function(e){t.$set(t.profile,"productCode",e)},expression:"profile.productCode"}})],1),e("a-form-model-item",{attrs:{label:"产品名称",prop:"productName","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[e("a-input",{attrs:{placeholder:"请输入产品名称",allowClear:""},model:{value:t.profile.productName,callback:function(e){t.$set(t.profile,"productName",e)},expression:"profile.productName"}})],1),t.showMore?t._e():e("p",{staticStyle:{"text-align":"center"}},[e("a-button",{attrs:{type:"link"},on:{click:function(e){t.showMore=!0}}},[t._v("更多设置")])],1),t.showMore?[e("a-form-model-item",{attrs:{label:"姓",prop:"first_name","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[e("a-input",{attrs:{placeholder:"请输入真实姓",allowClear:""},model:{value:t.profile.first_name,callback:function(e){t.$set(t.profile,"first_name",e)},expression:"profile.first_name"}})],1),e("a-form-model-item",{attrs:{label:"名",prop:"last_name","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[e("a-input",{attrs:{placeholder:"请输入真实名",allowClear:""},model:{value:t.profile.last_name,callback:function(e){t.$set(t.profile,"last_name",e)},expression:"profile.last_name"}})],1),e("a-form-model-item",{attrs:{label:"开始时间",prop:"begin_input_time","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[e("a-popover",{attrs:{trigger:"click",overlayClassName:"custom-popover"},model:{value:t.beginTimeVisible,callback:function(e){t.beginTimeVisible=e},expression:"beginTimeVisible"}},[e("a-input",{attrs:{placeholder:"请选择开始时间",allowClear:""},model:{value:t.profile.begin_input_time,callback:function(e){t.$set(t.profile,"begin_input_time",e)},expression:"profile.begin_input_time"}}),e("DateTimePicker",{attrs:{slot:"content"},on:{change:function(e){return t.profile.begin_input_time=e}},slot:"content"})],1)],1),e("a-form-model-item",{attrs:{label:"结束时间",prop:"end_input_time","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[e("a-popover",{attrs:{trigger:"click",overlayClassName:"custom-popover"},model:{value:t.endTimeVisible,callback:function(e){t.endTimeVisible=e},expression:"endTimeVisible"}},[e("a-input",{attrs:{placeholder:"请选择结束时间",allowClear:""},model:{value:t.profile.end_input_time,callback:function(e){t.$set(t.profile,"end_input_time",e)},expression:"profile.end_input_time"}}),e("DateTimePicker",{attrs:{slot:"content"},on:{change:function(e){return t.profile.end_input_time=e}},slot:"content"})],1)],1),e("a-form-model-item",{attrs:{label:"数字占卜",prop:"yicuojin","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[e("a-input",{attrs:{placeholder:"请输入三个数字,以英文逗号分隔(例如:1, 2, 3)",allowClear:""},model:{value:t.profile.yicuojin,callback:function(e){t.$set(t.profile,"yicuojin",e)},expression:"profile.yicuojin"}})],1),e("a-form-model-item",{attrs:{label:"文王卦",prop:"wenwanggua","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[e("a-input",{attrs:{placeholder:"请输入六个字符,以英文逗号分隔(例如:断, 连, 断, 断, 连, 断)",allowClear:""},model:{value:t.profile.wenwanggua,callback:function(e){t.$set(t.profile,"wenwanggua",e)},expression:"profile.wenwanggua"}})],1),e("a-form-model-item",{attrs:{label:"文王卦类型",prop:"wenwanggualeixing","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[e("a-select",{attrs:{placeholder:"请选择文王卦类型"},on:{change:function(e){return t.profile.wenwanggualeixing=e}}},t._l(t.wenwangguaType,(function(r){return e("a-select-option",{key:r,attrs:{value:r}},[t._v(" "+t._s(r)+" ")])})),1)],1),e("a-form-model-item",{attrs:{label:"大六壬占时",prop:"daliurenzhanshi","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[e("a-input",{attrs:{placeholder:"请输入时辰(例如:子)",allowClear:""},model:{value:t.profile.daliurenzhanshi,callback:function(e){t.$set(t.profile,"daliurenzhanshi",e)},expression:"profile.daliurenzhanshi"}})],1),e("a-form-model-item",{attrs:{label:"当前时间",prop:"now_time","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[e("a-popover",{attrs:{trigger:"click",overlayClassName:"custom-popover"},model:{value:t.nowTimeVisible,callback:function(e){t.nowTimeVisible=e},expression:"nowTimeVisible"}},[e("a-input",{attrs:{placeholder:"请选择当前时间",allowClear:""},model:{value:t.profile.now_time,callback:function(e){t.$set(t.profile,"now_time",e)},expression:"profile.now_time"}}),e("DateTimePicker",{attrs:{slot:"content"},on:{change:function(e){return t.profile.now_time=e}},slot:"content"})],1)],1),e("a-form-model-item",{attrs:{label:"答题测试结果",prop:"test_result","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[e("a-input",{attrs:{placeholder:"请输入测试结果(例如:分数或者 A、B、C、D)",allowClear:""},model:{value:t.profile.test_result,callback:function(e){t.$set(t.profile,"test_result",e)},expression:"profile.test_result"}})],1),e("a-form-model-item",{attrs:{label:"DISC 测试结果",prop:"disc_result","label-col":t.formItemLayout.labelCol,"wrapper-col":t.formItemLayout.wrapperCol}},[e("a-input",{attrs:{placeholder:"请输入测试结果(例如:1,2,3,4)",allowClear:""},model:{value:t.profile.disc_result,callback:function(e){t.$set(t.profile,"disc_result",e)},expression:"profile.disc_result"}})],1)]:t._e()],2),e("div",{staticStyle:{"text-align":"center"}},[e("a-button",{attrs:{type:"primary"},on:{click:function(e){return t.submit("0")}}},[t._v("立即测算")])],1)],1),e("a-col",{attrs:{span:12}},[t.codeValue?e("CodeEditor",{attrs:{width:"100%",value:t.codeValue}}):e("div",{staticStyle:{border:"1px solid #eee",height:"100%",position:"relative"}},[e("a-empty",{staticStyle:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%,-50%)"},attrs:{description:"暂无测试结果"}})],1)],1)],1),e("a-modal",{attrs:{title:"选择命例",width:720,bodyStyle:{maxHeight:"480px",overflow:"auto"}},on:{ok:t.confirm},model:{value:t.pickerVisible,callback:function(e){t.pickerVisible=e},expression:"pickerVisible"}},[e("ProfileSelect",{on:{select:t.handleProfileSelect}})],1),e("a-button",{staticStyle:{position:"fixed",bottom:"10px",left:"106px"},attrs:{type:"primary"},on:{click:function(e){return t.submit("1")}}},[t._v(" 发布产品 ")])],1)},Ru=[],Bu={computed:{districts:function(){var t=this.$store.state["m-algorithm"].district,e=t&&t.filter((function(t){return"1"===t.level})),r=t&&t.filter((function(t){return"2"===t.level})),n=t&&t.filter((function(t){return"3"===t.level}));return e.map((function(t){return{value:t.district_id,label:t.district_name,children:r.filter((function(e){return e.parent===t.district_id})).map((function(t){return{value:t.district_id,label:t.district_name,children:n.filter((function(e){return e.parent===t.district_id})).map((function(t){return{value:t.district_id,label:t.district_name,time_zone:t.time_zone}}))}}))}}))||[]}}},Fu=function(){var t=this,e=t._self._c;return e("div",{ref:"monaco",staticStyle:{border:"1px solid #e8e8e8"},style:{width:t.width,height:t.height}})},$u=[],Vu=r("2364"),Uu=null,Gu={props:{width:{type:String,default:"800px"},height:{type:String,default:"600px"},value:{type:[Array,String],default:function(){return["function x() {",'\tconsole.log("Hello world!");',"}"]}}},mounted:function(){this.getResult(this.value)},methods:{getResult:function(t){Uu&&Uu.dispose();var e=Vu["Uri"].parse("json://grid/settings.json");Uu=Vu["editor"].create(this.$refs.monaco,{value:JSON.stringify(t,null,"\t"),language:"json",Uri:e})}},watch:{value:function(t){this.getResult(t)}}},zu=Gu,Ku=Lr(zu,Fu,$u,!1,null,null,null),Hu=Ku.exports,Yu=function(){var t=this,e=t._self._c;return e("a-row",{staticClass:"custom-datepicker",attrs:{type:"flex"}},[e("a-col",[e("ul",t._l(t.years,(function(r,n){return e("li",{key:n,class:{active:t.value.yearIndex===n},on:{click:function(e){return t.change("year",n)}}},[t._v(" "+t._s(r)+"年 ")])})),0)]),e("a-col",[e("ul",t._l(t.months,(function(r,n){return e("li",{key:r,class:{active:t.value.monthIndex===n},on:{click:function(e){return t.change("month",n)}}},[t._v(" "+t._s(r)+"月 ")])})),0)]),e("a-col",[e("ul",t._l(t.days,(function(r,n){return e("li",{key:r,class:{active:t.value.dayIndex===n},on:{click:function(e){return t.change("day",n)}}},[t._v(" "+t._s(r)+"日 ")])})),0)]),e("a-col",[e("ul",t._l(t.hours,(function(r,n){return e("li",{key:r,class:{active:t.value.hourIndex===n},on:{click:function(e){return t.change("hour",n)}}},[t._v(" "+t._s(r)+"时 ")])})),0)]),e("a-col",[e("ul",t._l(t.minutes,(function(r,n){return e("li",{key:r,class:{active:t.value.minuteIndex===n},on:{click:function(e){return t.change("minute",n)}}},[t._v(" "+t._s(r)+"分 ")])})),0)])],1)},Wu=[],Zu=[],Xu=[],Ju=[],Qu=[],tl=1901;tl<=2030;tl++)Zu.push("".concat(tl));for(var el=1;el<=12;el++)Xu.push(el<10?"0".concat(el):"".concat(el));for(var rl=0;rl<=23;rl++)Ju.push(rl<10?"0".concat(rl):"".concat(rl));for(var nl=0;nl<=59;nl++)Qu.push(nl<10?"0".concat(nl):"".concat(nl));var ol={props:{isLunar:{type:Boolean,default:!1}},data:function(){return{years:Zu,year:"1901",months:Xu,month:"01",day:"01",hours:Ju,hour:"00",minutes:Qu,minute:"00"}},computed:{days:function(){var t=[];if(this.isLunar)for(var e=1;e<=30;e++)t.push(e<10?"0".concat(e):"".concat(e));else if(["01","03","05","07","08","10","12"].includes(this.month))for(var r=1;r<=31;r++)t.push(r<10?"0".concat(r):"".concat(r));else if(["04","06","09","11"].includes(this.month))for(var n=1;n<=30;n++)t.push(n<10?"0".concat(n):"".concat(n));else if("02"===this.month)if(parseInt(this.year)%4===0&&parseInt(this.year)%100!==0||parseInt(this.year)%400===0)for(var o=1;o<=29;o++)t.push(o<10?"0".concat(o):"".concat(o));else for(var i=1;i<=28;i++)t.push(i<10?"0".concat(i):"".concat(i));return t},value:function(){var t=this.years.indexOf(this.year),e=this.months.indexOf(this.month),r=this.days.indexOf(this.day),n=this.hours.indexOf(this.hour),o=this.minutes.indexOf(this.minute);return{yearIndex:t,monthIndex:e,dayIndex:r,hourIndex:n,minuteIndex:o}}},created:function(){},methods:{change:function(t,e){"year"===t?this.year=this.years[e]:"month"===t?this.month=this.months[e]:"day"===t?this.day=this.days[e]:"hour"===t?this.hour=this.hours[e]:"minute"===t&&(this.minute=this.minutes[e]);var r="".concat(this.year,"-").concat(this.month,"-").concat(this.day," ").concat(this.hour,":").concat(this.minute);this.$emit("change",r)}}},il=ol,al=(r("e558"),Lr(il,Yu,Wu,!1,null,null,null)),cl=al.exports,sl=function(){var t=this,e=t._self._c;return e("div",[e("a-input",{staticStyle:{width:"200px","margin-bottom":"24px"},attrs:{placeholder:"昵称",allowClear:""},on:{change:t.handleNameChange},model:{value:t.nickName,callback:function(e){t.nickName=e},expression:"nickName"}}),e("a-table",{attrs:{columns:t.columns,loading:t.loading,"data-source":t.userCase(),rowSelection:t.rowSelection,pagination:{current:t.getPagination?parseInt(t.getPagination.current):1,total:t.getPagination?parseFloat(t.getPagination.count):0,defaultPageSize:15},rowKey:"profile_id"},on:{change:t.handleChange},scopedSlots:t._u([{key:"gender",fn:function(r){return e("span",{},[t._v(" "+t._s("female"===r?"女":"男")+" ")])}}])})],1)},ul=[],ll=[{title:"昵称",dataIndex:"nick_name",key:"nick_name"},{title:"姓氏",dataIndex:"first_name",key:"first_name"},{title:"名字",dataIndex:"last_name",key:"last_name"},{title:"性别",dataIndex:"gender",key:"gender",scopedSlots:{customRender:"gender"}},{title:"生日",dataIndex:"birthday",key:"birthday"}],fl={mixins:[Ou],data:function(){return{columns:ll,rowSelection:{type:"radio",onSelect:this.onSelect},nickName:"",currentPage:1}},created:function(){this.loadData({key:"user-case",query:{$page:1,$limit:this.currentPage}})},computed:{getPagination:function(){return this.data["user-case"]?this.data["user-case"].pagination:null}},methods:{userCase:function(){return this.data["user-case"]?this.data["user-case"].collection:[]},onSelect:function(t){this.$emit("select",t)},handleChange:function(t){this.currentPage=t.current,this.loadData({key:"user-case",query:{$page:1,$limit:this.currentPage}}),this.userCase()},handleNameChange:function(t){this.loadData({key:"user-case",query:{$page:1,$limit:this.currentPage,nick_name:this.nickName}})}}},hl=fl,pl=Lr(hl,sl,ul,!1,null,null,null),dl=pl.exports;function yl(t){return yl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yl(t)}function vl(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */vl=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(L){s=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var i=e&&e.prototype instanceof h?e:h,a=Object.create(i.prototype),c=new E(o||[]);return n(a,"_invoke",{value:_(t,r,c)}),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(L){return{type:"throw",arg:L}}}t.wrap=u;var f={};function h(){}function p(){}function d(){}var y={};s(y,i,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(S([])));m&&m!==e&&r.call(m,i)&&(y=m);var g=d.prototype=h.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,c){var s=l(t[n],t,i);if("throw"!==s.type){var u=s.arg,f=u.value;return f&&"object"==yl(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return o("throw",t,a,c)}))}c(s.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function _(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=x(a,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=l(t,e,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=l(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function S(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return p.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:p,configurable:!0}),p.displayName=s(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,s(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),s(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),s(g,c,"Generator"),s(g,i,(function(){return this})),s(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=S,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:S(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function ml(t,e,r,n,o,i,a){try{var c=t[i](a),s=c.value}catch(u){return void r(u)}c.done?e(s):Promise.resolve(s).then(n,o)}function gl(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){ml(i,n,o,a,c,"next",t)}function c(t){ml(i,n,o,a,c,"throw",t)}a(void 0)}))}}var bl=["流年","流月","商务","健康","婚姻","爱情","工作","出行","学业","财运","家宅"],wl={mixins:[Ou,Bu],props:["algorithmList"],components:{CodeEditor:Hu,DateTimePicker:cl,ProfileSelect:dl},data:function(){return{visible:!1,beginTimeVisible:!1,endTimeVisible:!1,nowTimeVisible:!1,showMore:!1,formLayout:"horizontal",formItemLayout:{labelCol:{span:6},wrapperCol:{span:14}},codeValue:null,wenwangguaType:bl,profile:{nick_name:"",gender:"male",is_lunar:!1,birthday:null,place:[],is_twins:!1,is_leap:!1,birth_num:0,time_zone:8,is_day_light:!1,province:"",city:"",district:"",code:JSON.stringify(this.algorithmList)||"",productCode:"",productName:"",is_submit:"",first_name:"",last_name:"",begin_input_time:"",end_input_time:"",yicuojin:"",wenwanggua:"",wenwanggualeixing:"",daliurenzhanshi:"",now_time:"",test_result:"",disc_result:""},systemProfile:{},profileRules:{productCode:[{required:!0,message:"请输入产品编码",trigger:"blur"}],productName:[{required:!0,message:"请输入产品名称",trigger:"blur"}]},hasLeap:!1,hasDaylight:!1,pickerVisible:!1}},created:function(){this.loadDistrict()},methods:{submit:function(t){var e=this;return gl(vl().mark((function r(){return vl().wrap((function(r){while(1)switch(r.prev=r.next){case 0:e.profile.is_submit=t,e.$refs.profileForm.validate(function(){var r=gl(vl().mark((function r(n){var o;return vl().wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(!n){r.next=10;break}return r.next=3,e.getResult({key:"/api/algorithm-product/algorithm",params:e.profile});case 3:if(o=r.sent,!o||!o.data||"0"!==t){r.next=7;break}return e.codeValue=[JSON.parse(o.data)],r.abrupt("return");case 7:o?(e.$message.success("增加算法产品成功"),e.$emit("close")):e.$message.error(e.message),r.next=11;break;case 10:return r.abrupt("return",!1);case 11:case"end":return r.stop()}}),r)})));return function(t){return r.apply(this,arguments)}}());case 2:case"end":return r.stop()}}),r)})))()},handleDistrictChange:function(t,e){e&&e.length?(this.profile.province=e[0].label,this.profile.city=e[1].label,this.profile.district=e[2].label,this.profile.time_zone=e[e.length-1].time_zone):(this.profile.province="",this.profile.city="",this.profile.district="",this.profile.time_zone=8)},handleDateTimeChange:function(t){this.profile.birthday=t,this.bindHasLunar(this.profile.birthday),this.bindDaylight(this.profile.birthday)},handleLunarChange:function(){this.profile.birthday&&(this.bindHasLunar(this.profile.birthday),this.bindDaylight(this.profile.birthday))},timeStamp:function(t){return new Date(t).getTime()},bindHasLunar:function(t){var e=t?t.substring(4,0):"",r=t?t.substring(5,7):"",n=this.lunarLeapMonthOfYear(e)<10?"0"+this.lunarLeapMonthOfYear(e).toString():this.lunarLeapMonthOfYear(e).toString();this.profile.is_lunar&&(r===n&&"00"!==n?(this.hasLeap=!0,this.profile.is_leap=!0):(this.hasLeap=!1,this.profile.is_leap=!1))},bindDaylight:function(t){if(""!==t){var e=t.replace(/-/g,"/"),r=this.timeStamp(e),n=[];n=this.profile.is_lunar?[{start:this.timeStamp("1986/03/26 02:00"),end:this.timeStamp("1986/08/11 02:00")},{start:this.timeStamp("1987/03/15 02:00"),end:this.timeStamp("1987/07/21 02:00")},{start:this.timeStamp("1988/02/24 02:00"),end:this.timeStamp("1988/08/01 02:00")},{start:this.timeStamp("1989/03/11 02:00"),end:this.timeStamp("1989/08/18 02:00")},{start:this.timeStamp("1990/03/20 02:00"),end:this.timeStamp("1990/07/28 02:00")},{start:this.timeStamp("1991/02/30 02:00"),end:this.timeStamp("1991/08/08 02:00")}]:[{start:this.timeStamp("1986/05/04 02:00"),end:this.timeStamp("1986/09/14 02:00")},{start:this.timeStamp("1987/04/12 02:00"),end:this.timeStamp("1987/09/13 02:00")},{start:this.timeStamp("1988/04/10 02:00"),end:this.timeStamp("1988/09/11 02:00")},{start:this.timeStamp("1989/04/16 02:00"),end:this.timeStamp("1989/09/17 02:00")},{start:this.timeStamp("1990/04/15 02:00"),end:this.timeStamp("1990/09/16 02:00")},{start:this.timeStamp("1991/04/14 02:00"),end:this.timeStamp("1991/09/15 02:00")}],n.length&&(r>=n[0].start&&r<=n[0].end||r>=n[1].start&&r<=n[1].end||r>=n[2].start&&r<=n[2].end||r>=n[3].start&&r<=n[3].end||r>=n[4].start&&r<=n[4].end||r>=n[5].start&&r<=n[5].end)?(this.hasDaylight=!0,this.profile.is_day_light=!0):(this.hasDaylight=!1,this.profile.is_day_light=!1)}},lunarLeapMonthOfYear:function(t){var e=[19416,19168,42352,21717,53856,55632,91476,22176,39632,21970,19168,42422,42192,53840,119381,46400,54944,44450,38320,84343,18800,42160,46261,27216,27968,109396,11104,38256,21234,18800,25958,54432,59984,28309,23248,11104,100067,37600,116951,51536,54432,120998,46416,22176,107956,9680,37584,53938,43344,46423,27808,46416,86869,19872,42448,83315,21200,43432,59728,27296,44710,43856,19296,43748,42352,21088,62051,55632,23383,22176,38608,19925,19152,42192,54484,53840,54616,46400,46496,103846,38320,18864,43380,42160,45690,27216,27968,44870,43872,38256,19189,18800,25776,29859,59984,27480,21952,43872,38613,37600,51552,55636,54432,55888,30034,22176,43959,9680,37584,51893,43344,46240,47780,44368,21977,19360,42416,86390,21168,43312,31060,27296,44368,23378,19296,42726,42208,53856,60005,54576,23200,30371,38608,19415,19152,42192,118966,53840,54560,56645,46496,22224,21938,18864,42359,42160,43600,111189,27936,44448];return 15&e[t-1900]},handleProfileSelect:function(t){this.systemProfile={},this.systemProfile=t},confirm:function(){this.profile.nick_name=this.systemProfile.nick_name||this.systemProfile.nick_name,this.profile.gender=this.systemProfile.gender||this.profile.gender,this.profile.is_lunar=this.systemProfile.is_lunar||this.profile.is_lunar,this.profile.birthday=this.systemProfile.birthday||this.profile.birthday,this.profile.province=this.systemProfile.province||this.profile.province,this.profile.city=this.systemProfile.city||this.profile.city,this.profile.district=this.systemProfile.district||this.profile.district,this.profile.place=this.checkProfilePlace(this.profile.province,this.profile.city,this.profile.district)||this.profile.district,this.profile.is_twins=!!(this.systemProfile.birth_num&&this.systemProfile.birth_num>0),this.profile.is_leap=this.systemProfile.is_leap||this.profile.is_leap,this.profile.birth_num=this.systemProfile.birth_num||this.profile.birth_num,this.profile.time_zone=this.systemProfile.time_zone||this.profile.time_zone,this.profile.is_day_light=this.systemProfile.is_day_light||this.profile.is_day_light,this.pickerVisible=!1},checkProfilePlace:function(t,e,r){var n=this.$store.state["m-algorithm"].district,o=n.find((function(e){return e.district_name===t}))?n.find((function(e){return e.district_name===t})).district_id:"",i=n.find((function(t){return t.district_name===e}))?n.find((function(t){return t.district_name===e})).district_id:"",a=n.find((function(t){return t.district_name===r}))?n.find((function(t){return t.district_name===r})).district_id:"";return[o,i,a]}},watch:{algorithmList:function(t){this.profile.code=JSON.stringify(t)}}},_l=wl,xl=Lr(_l,qu,Ru,!1,null,null,null),Ol=xl.exports;function kl(t){return kl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},kl(t)}function El(t){return Pl(t)||Ll(t)||jl(t)||Sl()}function Sl(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function jl(t,e){if(t){if("string"===typeof t)return Nl(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Nl(t,e):void 0}}function Ll(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function Pl(t){if(Array.isArray(t))return Nl(t)}function Nl(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Al(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Cl(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Al(Object(r),!0).forEach((function(e){Tl(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Al(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Tl(t,e,r){return e=Il(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Il(t){var e=Ml(t,"string");return"symbol"===kl(e)?e:String(e)}function Ml(t,e){if("object"!==kl(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==kl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var Dl={mixins:[Ou],components:{CheckboxGroup:Du,AlgorithmForm:Ol},data:function(){return{current:0,steps:[{title:"核心解读"},{title:"描述解读"},{title:"排盘数据"},{title:"术数分析"},{title:"算法验证及发布"}],nameKeyword:"",codeKeyword:"",search:{nameKeyword:"",codeKeyword:""},type:"核心解读",showTime:{format:"HH:mm"},badgeStyle:{backgroundColor:"#8c8c8c"},pickerVisible:!1,defaultCheckedList:[]}},created:function(){this.loadData({key:"algorithm-read",query:{_size:9999}})},computed:{algorithmData:function(){var t=this,e=this.data["algorithm-read"]&&this.data["algorithm-read"].collection,r=e&&e.filter((function(e){return""!==t.search.nameKeyword||""!==t.search.codeKeyword?e.classify===t.type&&-1!==e.name.indexOf(t.search.nameKeyword)&&-1!==e.code.indexOf(t.search.codeKeyword):e.classify===t.type})).map((function(e){var r=Cl(Cl({},e),{},{values:[],checked:!1});return t.checkedList.length&&t.checkedList.forEach((function(e){e.read_id===r.read_id&&(t.$set(r,"values",e.values),t.$set(r,"checked",e.checked))})),r})),n=El(new Set(r&&r.map((function(t){return t.classify})))),o=n&&n.map((function(t){var e=r.filter((function(e){return e.classify===t})),n=El(new Set(e.map((function(t){return t.type})))),o=n.map((function(t){return{name:t,children:e.filter((function(e){return e.type===t}))}}));return{name:t,children:o}}));return o||[]},algorithmCount:function(){var t=this.defaultCheckedList,e=t.filter((function(t){return"核心解读"===t.classify})).length||0,r=t.filter((function(t){return"描述解读"===t.classify})).length||0,n=t.filter((function(t){return"排盘数据"===t.classify})).length||0,o=t.filter((function(t){return"术数分析"===t.classify})).length||0;return{coreAlgorithmCount:e,describeAlgorithmCount:r,paipanDataCount:n,surgeryAnalysisCount:o}},algorithmList:function(){var t=this.defaultCheckedList,e=[],r=[];return t.forEach((function(n){var o=n.code;r=n.values.length>1?n.values.map((function(t,e){var r=e+1,n=1===r?o:r<10?"".concat(o,"_0").concat(r):"".concat(o,"_").concat(r);return[n,t||[]]})):t.map((function(t){return[t.code,t.values.length?t.values[0]:[]]})),e=[].concat(El(e),El(r))})),Object.fromEntries(e)},checkedList:function(){return this.defaultCheckedList||[]}},methods:{next:function(){this.current++,this.type=this.steps[this.current].title},prev:function(){this.current--,this.type=this.steps[this.current].title},handleChange:function(t,e,r,n){var o=this;t.forEach((function(t){var e=o.defaultCheckedList.findIndex((function(e){return e.read_id===t.read_id}));-1===e?o.defaultCheckedList=[].concat(El(o.defaultCheckedList),[t]):o.defaultCheckedList[e]=t}))},onSearch:function(){this.search.nameKeyword=this.nameKeyword,this.search.codeKeyword=this.codeKeyword},algorithmTotal:function(t){var e=t.map((function(t){return t.read_id})),r=this.checkedList.map((function(t){return t.read_id}));return e.filter((function(t){return r.includes(t)})).length}},watch:{nameKeyword:function(t){""===t&&this.onSearch()},codeKeyword:function(t){""===t&&this.onSearch()}}},ql=Dl,Rl=(r("53e9"),Lr(ql,iu,au,!1,null,null,null)),Bl=Rl.exports;function Fl(t){return Gl(t)||Ul(t)||Vl(t)||$l()}function $l(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Vl(t,e){if(t){if("string"===typeof t)return zl(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?zl(t,e):void 0}}function Ul(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function Gl(t){if(Array.isArray(t))return zl(t)}function zl(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Kl=function(){var t=this,e=t._self._c;return e("div",[e("a-transfer",{staticClass:"tree-transfer",attrs:{"data-source":t.dataSource,"target-keys":t.checkedKeys,render:function(t){return t.title},"show-select-all":!1,"list-style":{maxHeight:"450px",overflowY:"auto"},showSearch:t.showSearch},on:{change:t.onChange,search:t.handleSearch},scopedSlots:t._u([{key:"children",fn:function(r){var n=r.props,o=n.direction,i=n.selectedKeys,a=r.on.itemSelect;return["left"===o?e("a-spin",{attrs:{spinning:t.leftLoding}},[e("a-tree",{attrs:{blockNode:"",checkable:"",checkStrictly:"",checkedKeys:[].concat(Fl(i),Fl(t.checkedKeys)),treeData:t.filterTreeNodes},on:{check:function(e,r){t.onChecked(e,r,[].concat(Fl(i),Fl(t.checkedKeys)),a)},select:function(e,r){t.onChecked(e,r,[].concat(Fl(i),Fl(t.checkedKeys)),a)}}})],1):t._e()]}}])})],1)},Hl=[];function Yl(t){return Yl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yl(t)}function Wl(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Wl=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(L){s=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var i=e&&e.prototype instanceof h?e:h,a=Object.create(i.prototype),c=new E(o||[]);return n(a,"_invoke",{value:_(t,r,c)}),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(L){return{type:"throw",arg:L}}}t.wrap=u;var f={};function h(){}function p(){}function d(){}var y={};s(y,i,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(S([])));m&&m!==e&&r.call(m,i)&&(y=m);var g=d.prototype=h.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,c){var s=l(t[n],t,i);if("throw"!==s.type){var u=s.arg,f=u.value;return f&&"object"==Yl(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return o("throw",t,a,c)}))}c(s.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function _(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=x(a,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=l(t,e,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=l(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function S(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return p.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:p,configurable:!0}),p.displayName=s(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,s(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),s(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),s(g,c,"Generator"),s(g,i,(function(){return this})),s(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=S,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:S(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function Zl(t,e,r,n,o,i,a){try{var c=t[i](a),s=c.value}catch(u){return void r(u)}c.done?e(s):Promise.resolve(s).then(n,o)}function Xl(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){Zl(i,n,o,a,c,"next",t)}function c(t){Zl(i,n,o,a,c,"throw",t)}a(void 0)}))}}function Jl(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Ql(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Jl(Object(r),!0).forEach((function(e){tf(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Jl(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function tf(t,e,r){return e=ef(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ef(t){var e=rf(t,"string");return"symbol"===Yl(e)?e:String(e)}function rf(t,e){if("object"!==Yl(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Yl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var nf={mixins:[en],data:function(){var t=this;return{targetKeys:[],dataSource:[],checkedKeys:this.params.data?this.params.data.map((function(e){return e[t.params.valueName]})):[],treeData:this.params.treeData||[],titleName:this.params.titleName,keyName:this.params.keyName,valuesName:this.params.valuesName,selected:this.params.selected||null,unselected:this.params.unselected||null,inputValue:"",leftLoding:!1}},computed:{treeNodes:function(){var t=this.treeData,e=this.titleName,r=this.keyName,n=this.checkedKeys,o=this.selected,i=this.unselected,a=function t(a){return a.map((function(a){var c;return a._childList&&(c=t(a._childList)),{title:a[e],key:a[r],children:c,disabled:n.includes(a[r])||o&&!me(o,a)||i&&me(i,a)}}))};return a(t)},filterTreeNodes:function(){var t=this;return this.inputValue?this.treeNodes.filter((function(e){return-1!==e.title.indexOf(t.inputValue)})):this.treeNodes},multiple:function(){return void 0===this.params.multiple||this.params.multiple},showSearch:function(){return void 0===this.params.showSearch||this.params.showSearch}},created:function(){this.treeNodes&&this.flatten(JSON.parse(JSON.stringify(this.treeNodes))),this.checkedKeys&&(this.actionModel=Ql(Ql({},this.actionModel),{},tf({},this.valuesName,this.checkedKeys)))},methods:{onChange:function(t,e){if((this.checkedKeys.length>1||t.length>1)&&"right"===e&&!this.multiple)return this.$message.error("只能选择 1 个人!"),!1;this.checkedKeys=t,this.actionModel=Ql(Ql({},this.actionModel),{},tf({},this.valuesName,this.checkedKeys))},isChecked:function(t,e){return-1!==t.indexOf(e)},onChecked:function(t,e,r,n){var o=e.node.eventKey;n(o,!this.isChecked(r,o))},flatten:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];e.forEach((function(e){t.dataSource.push({title:e.title,key:e.key}),e.children&&t.flatten(e.children)}))},handleSubmit:function(){var t=this;return Xl(Wl().mark((function e(){return Wl().wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.handleCommit();case 1:case"end":return e.stop()}}),e)})))()},handleSearch:function(t,e){var r=this,n=null;"left"===t&&(this.leftLoding=!0,n=setTimeout((function(){n&&clearTimeout(n),r.inputValue=e,r.leftLoding=!1}),1e3))}}},of=nf,af=(r("e58e"),Lr(of,Kl,Hl,!1,null,"0ce5108d",null)),cf=af.exports,sf=function(){var t=this,e=t._self._c;return e("a-tree",{attrs:{checkable:"",autoExpandParent:t.autoExpandParent,defaultCheckedKeys:t.checkedKeys,treeData:t.treeNodes,checkStrictly:""},on:{check:t.handleCheck}})},uf=[];function lf(t){return lf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},lf(t)}function ff(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ff=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(L){s=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var i=e&&e.prototype instanceof h?e:h,a=Object.create(i.prototype),c=new E(o||[]);return n(a,"_invoke",{value:_(t,r,c)}),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(L){return{type:"throw",arg:L}}}t.wrap=u;var f={};function h(){}function p(){}function d(){}var y={};s(y,i,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(S([])));m&&m!==e&&r.call(m,i)&&(y=m);var g=d.prototype=h.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,c){var s=l(t[n],t,i);if("throw"!==s.type){var u=s.arg,f=u.value;return f&&"object"==lf(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return o("throw",t,a,c)}))}c(s.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function _(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=x(a,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=l(t,e,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=l(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function S(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return p.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:p,configurable:!0}),p.displayName=s(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,s(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),s(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),s(g,c,"Generator"),s(g,i,(function(){return this})),s(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=S,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:S(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function hf(t,e,r,n,o,i,a){try{var c=t[i](a),s=c.value}catch(u){return void r(u)}c.done?e(s):Promise.resolve(s).then(n,o)}function pf(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){hf(i,n,o,a,c,"next",t)}function c(t){hf(i,n,o,a,c,"throw",t)}a(void 0)}))}}function df(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function yf(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?df(Object(r),!0).forEach((function(e){vf(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):df(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function vf(t,e,r){return e=mf(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function mf(t){var e=gf(t,"string");return"symbol"===lf(e)?e:String(e)}function gf(t,e){if("object"!==lf(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==lf(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var bf={mixins:[en],data:function(){var t=this;return{autoExpandParent:!0,checkedKeys:this.params.data.map((function(e){return e[t.params.valueName]})),treeData:this.params.treeData||[],titleName:this.params.titleName,keyName:this.params.keyName,valueName:this.params.valueName,valuesName:this.params.valuesName}},computed:{treeNodes:function(){var t=this.treeData,e=this.titleName,r=this.keyName,n=function t(n){return n.map((function(n){var o;return n._childList&&(o=t(n._childList)),{title:n[e],key:n[r],children:o}}))};return n(t)}},created:function(){this.checkedKeys&&(this.actionModel=yf(yf({},this.actionModel),{},vf({},this.valuesName,this.checkedKeys)))},methods:{handleCheck:function(t){this.actionModel=yf(yf({},this.actionModel),{},vf({},this.valuesName,t.checked))},handleSubmit:function(){var t=this;return pf(ff().mark((function e(){return ff().wrap((function(e){while(1)switch(e.prev=e.next){case 0:t.handleCommit();case 1:case"end":return e.stop()}}),e)})))()}}},wf=bf,_f=Lr(wf,sf,uf,!1,null,null,null),xf=_f.exports,Of=function(){var t=this,e=t._self._c;return e("a-table",{attrs:{columns:t.cols,"data-source":t.treeData,rowKey:"type_id",scroll:{y:400},pagination:!1,rowSelection:{selectedRowKeys:t.selectedRowKeys,onChange:t.handleRowChange,onSelect:t.handleRowSelect,type:"checkbox"}},scopedSlots:t._u([{key:"expert",fn:function(r,n){return e("span",{},[e("a-select",{staticStyle:{width:"120px"},attrs:{placeholder:"请选择",allowClear:""},on:{change:function(e){return t.handleSelectChange(e,n)}}},t._l(t.experts,(function(r){return e("a-select-option",{key:r.expert_id,attrs:{value:r.expert_id}},[t._v(" "+t._s(r.expert_name)+" ")])})),1)],1)}}])})},kf=[];function Ef(t){return Ef="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ef(t)}function Sf(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function jf(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Sf(Object(r),!0).forEach((function(e){Lf(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Sf(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Lf(t,e,r){return e=Pf(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Pf(t){var e=Nf(t,"string");return"symbol"===Ef(e)?e:String(e)}function Nf(t,e){if("object"!==Ef(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Ef(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function Af(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Af=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(L){s=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var i=e&&e.prototype instanceof h?e:h,a=Object.create(i.prototype),c=new E(o||[]);return n(a,"_invoke",{value:_(t,r,c)}),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(L){return{type:"throw",arg:L}}}t.wrap=u;var f={};function h(){}function p(){}function d(){}var y={};s(y,i,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(S([])));m&&m!==e&&r.call(m,i)&&(y=m);var g=d.prototype=h.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,c){var s=l(t[n],t,i);if("throw"!==s.type){var u=s.arg,f=u.value;return f&&"object"==Ef(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return o("throw",t,a,c)}))}c(s.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function _(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=x(a,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=l(t,e,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=l(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function S(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return p.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:p,configurable:!0}),p.displayName=s(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,s(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),s(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),s(g,c,"Generator"),s(g,i,(function(){return this})),s(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=S,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:S(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function Cf(t){return Df(t)||Mf(t)||If(t)||Tf()}function Tf(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function If(t,e){if(t){if("string"===typeof t)return qf(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?qf(t,e):void 0}}function Mf(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function Df(t){if(Array.isArray(t))return qf(t)}function qf(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Rf(t,e,r,n,o,i,a){try{var c=t[i](a),s=c.value}catch(u){return void r(u)}c.done?e(s):Promise.resolve(s).then(n,o)}function Bf(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){Rf(i,n,o,a,c,"next",t)}function c(t){Rf(i,n,o,a,c,"throw",t)}a(void 0)}))}}var Ff={mixins:[en],computed:{selectedRowKeys:function(){return this.selections.map((function(t){return t.type_id}))}},data:function(){return{treeData:this.params.treeData||[],valuesName:this.params.valuesName,cols:[{title:"评审技术要求",dataIndex:"review_tech_require",key:"review_tech_require"},{title:"评审专家",key:"expert",scopedSlots:{customRender:"expert"}}],experts:[],selections:[]}},created:function(){var t=this;return Bf(Af().mark((function e(){var r,n;return Af().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.$api.get("/api/view-select-expert");case 3:r=e.sent,n=r.data.collection,t.experts=Cf(n),e.next=11;break;case 8:e.prev=8,e.t0=e["catch"](0),t.handleError(e.t0);case 11:case"end":return e.stop()}}),e,null,[[0,8]])})))()},methods:{handleSelectChange:function(t,e){var r=this.treeData.findIndex((function(t){return t.type_id===e.type_id}));-1!==r&&(this.treeData[r].expert_id=t)},handleSubmit:function(){this.handleCommit()},handleRowChange:function(t,e){this.selections=e,this.actionModel=jf(jf({},this.actionModel),{},Lf({},this.valuesName,this.selections))},handleRowSelect:function(t,e){var r=this.treeData.findIndex((function(e){return e.type_id===t.type_id}));-1!==r&&(this.treeData[r].checked=e?1:0)},handleError:function(t){t.response||this.$message.error("网络请求错误,请检查您的网络连接。");var e=t.response,r=e.status,n=e.data,o=n&&n.content||"系统错误请与管理员联系。";this.$message.error("".concat(r,", ").concat(o))}}},$f=Ff,Vf=Lr($f,Of,kf,!1,null,null,null),Uf=Vf.exports,Gf=function(){var t=this,e=t._self._c;return e("a-form-model",{ref:"form",staticStyle:{"min-height":"400px"},attrs:{model:t.actionModel,rules:t.rules}},[e("a-tabs",{attrs:{"tab-position":"top",size:"small"},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[t.actionModel.confirm?e("a-tab-pane",{key:"1",staticClass:"flow-approve-content",attrs:{tab:"上报/审批",bodyStyle:{"overflow-y":"auto","max-height":"350px"}}},[t.actionModel.flow_action_name?e("div",{staticStyle:{"margin-bottom":"15px"}},[e("a-form-model-item",{attrs:{prop:"flow_action_name",size:"small"}},[e("a-radio-group",{attrs:{defaultValue:"submit"},model:{value:t.actionModel.flow_action_name,callback:function(e){t.$set(t.actionModel,"flow_action_name",e)},expression:"actionModel.flow_action_name"}},[e("a-radio-button",{attrs:{value:"submit"}},[t._v("审批通过")]),t.allowBack?e("a-radio-button",{attrs:{value:"back"}},[t._v(" 审批退回 ")]):t._e(),t.allowReassign?e("a-radio-button",{attrs:{value:"reassign"}},[t._v(" 转办 ")]):t._e(),t.allowInvolve?e("a-radio-button",{attrs:{value:"involve"}},[t._v(" 加签 ")]):t._e()],1)],1),t._l(t.attrs,(function(r){return e("Item",{key:r.name,attrs:{formModel:t.actionModel,prop:r.name,schema:r,required:r.required,params:{}},on:{change:function(e){return t.handleItemChange(e,r)}},model:{value:t.actionModel[r.name],callback:function(e){t.$set(t.actionModel,r.name,e)},expression:"actionModel[attr.name]"}})})),e("a-form-model-item",{attrs:{label:["reassign","involve"].includes(t.actionModel.flow_action_name)?"备注":"审批意见",prop:"deal_note",size:"small"}},[e("a-textarea",{attrs:{placeholder:"请输入".concat(["reassign","involve"].includes(t.actionModel.flow_action_name)?"备注":"审批或退回意见"),"auto-size":{minRows:4,maxRows:6}},model:{value:t.actionModel.deal_note,callback:function(e){t.$set(t.actionModel,"deal_note",e)},expression:"actionModel.deal_note"}})],1),"back"===t.actionModel.flow_action_name&&t.backs&&t.backs.length?e("a-form-model-item",{attrs:{label:"退回步骤",prop:"deal_note",size:"small"}},[e("a-select",{model:{value:t.actionModel.back_step,callback:function(e){t.$set(t.actionModel,"back_step",e)},expression:"actionModel.back_step"}},t._l(t.backs,(function(r){return e("a-select-option",{key:r.step_id,attrs:{value:r.step_id}},[t._v(" "+t._s(r.step_name)+" ")])})),1)],1):t._e(),t.allowOver?e("a-form-model-item",{attrs:{label:"结束工作流",prop:"allow_over",size:"small"}},[e("a-switch",{model:{value:t.actionModel.is_over,callback:function(e){t.$set(t.actionModel,"is_over",e)},expression:"actionModel.is_over"}})],1):t._e()],2):t._e(),t.actionModel.flow_action_name?t._e():e("a-card",{style:{marginBottom:t.actionModel.flow_action_name?"15px":"0"},attrs:{bordered:!!t.actionModel.flow_action_name}},t._l(t.attrs,(function(r){return e("Item",{key:r.name,attrs:{formModel:t.actionModel,prop:r.name,schema:r,params:{}},on:{change:function(e){return t.handleItemChange(e,r)}},model:{value:t.actionModel[r.name],callback:function(e){t.$set(t.actionModel,r.name,e)},expression:"actionModel[attr.name]"}})})),1),t.todos.length&&!["back","reassign","involve"].includes(t.actionModel.flow_action_name)&&t.todos[0].todo_actors.length?t._l(t.todos,(function(r,n){return e("div",{key:r.todo_id},[t.actionModel.flow_action_name?e("h4",[t._v("后续步骤")]):t._e(),e("div",{staticClass:"ant-table ant-table-scroll-position-left ant-table-small workflow-table"},[e("div",{staticClass:"ant-table-content"},[e("div",{staticClass:"ant-table-body"},[e("table",[e("thead",{staticClass:"ant-table-thead"},[e("tr",[e("th",{key:"no",attrs:{width:"10%"}},[e("span",[t._v("序号")])]),e("th",{key:"template_name"},[e("span",[t._v("下一步步骤名称")])]),e("th",{key:"template_desc"},[e("span",[t._v("下一步审批者")])])])]),e("tbody",{staticClass:"ant-table-tbody"},[e("tr",{staticClass:"ant-table-row ant-table-row-level-0"},[e("td",[e("p",{staticStyle:{padding:"12px 0"}},[t._v(t._s(n+1))])]),e("td",[e("p",{staticStyle:{padding:"12px 0"}},[t._v(" "+t._s(r.current_step.step_name)+" ")])]),e("td",[e("a-input-search",{staticStyle:{"margin-bottom":"8px"},attrs:{placeholder:"搜索姓名","enter-button":""},on:{search:function(e){return t.operatorNameValue=e}}}),e("a-table",{attrs:{dataSource:t.filterOperators(r.todo_actors.map((function(t){return t.operator}))),rowKey:"actor_id",rowSelection:t.rowSelection,pagination:!1,size:"middle"}},[e("a-table-column",{key:"actor_name",attrs:{title:"姓名",dataIndex:"actor_name"}}),e("a-table-column",{key:"actor_org_name",attrs:{title:"所在单位/部门",dataIndex:"actor_org_name"}})],1)],1)])])])])])])])})):t._e()],2):t._e(),e("a-tab-pane",{key:t.actionModel.confirm?"2":"1",attrs:{tab:"审批记录"}},[e("a-card",{attrs:{bodyStyle:{"overflow-y":"auto","max-height":"350px",padding:"20px"}}},[e("a-list",{attrs:{itemLayout:"horizontal",dataSource:t.logs},scopedSlots:t._u([{key:"renderItem",fn:function(r){return e("a-list-item",{},[e("a-list-item-meta",[e("div",{attrs:{slot:"title"},slot:"title"},[t._v(" "+t._s(r.step_name)+" - "+t._s(r.operator.actor_name)+" - "+t._s(r.operator.actor_org_name)+" ")]),t.$store.state.app.icon?e("a-avatar",{attrs:{slot:"avatar",src:t.$store.state.app.icon},slot:"avatar"}):e("a-avatar",{attrs:{slot:"avatar",icon:"user"},slot:"avatar"}),e("div",{attrs:{slot:"description"},slot:"description"},[e("div",[t._v(" "+t._s(r.deal_desc)+" ")]),r.deal_note?e("div",[t._v(" 审批意见:"+t._s(r.deal_note)+" ")]):t._e(),e("div",[e("a-icon",{attrs:{type:"clock-circle-o"}}),t._v(" "+t._s(t.moment(r.deal_time).format("YYYY-MM-DD HH:mm"))+" ")],1)])],1)],1)}}])})],1)],1),e("a-tab-pane",{key:"3",attrs:{tab:"工作流步骤"}},[e("a-card",{attrs:{bodyStyle:{"overflow-y":"auto","max-height":"350px",padding:"20px"}}},[e("a-timeline",t._l(t.steps,(function(r,n){return e("a-timeline-item",{key:r.step_id,attrs:{color:t.stepIndex>n?"blue":t.stepIndex===n?"green":"#999"}},[t._v(" "+t._s(n+1)+". "+t._s(r.step_name)+" "),t.stepIndex>n?e("span",[t._v(" "+t._s(r.operator?"(".concat(r.operator,")"):"")+" ")]):t._e(),t.stepIndex===n?e("span",[t._v(" "+t._s(t.operatorName)+" ")]):t._e()])})),1)],1)],1),e("a-tab-pane",{key:"4",attrs:{tab:"流程图",forceRender:""}},[e("a-card",{attrs:{bodyStyle:{"overflow-y":"auto","max-height":"350px"}}},[e("div",{ref:"graph"})])],1)],1)],1)},zf=[],Kf=r("336c"),Hf=r.n(Kf);function Yf(t){return Yf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yf(t)}function Wf(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Wf=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(L){s=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var i=e&&e.prototype instanceof h?e:h,a=Object.create(i.prototype),c=new E(o||[]);return n(a,"_invoke",{value:_(t,r,c)}),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(L){return{type:"throw",arg:L}}}t.wrap=u;var f={};function h(){}function p(){}function d(){}var y={};s(y,i,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(S([])));m&&m!==e&&r.call(m,i)&&(y=m);var g=d.prototype=h.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,c){var s=l(t[n],t,i);if("throw"!==s.type){var u=s.arg,f=u.value;return f&&"object"==Yf(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return o("throw",t,a,c)}))}c(s.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function _(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=x(a,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=l(t,e,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=l(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function S(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return p.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:p,configurable:!0}),p.displayName=s(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,s(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),s(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),s(g,c,"Generator"),s(g,i,(function(){return this})),s(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=S,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:S(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function Zf(t,e,r,n,o,i,a){try{var c=t[i](a),s=c.value}catch(u){return void r(u)}c.done?e(s):Promise.resolve(s).then(n,o)}function Xf(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){Zf(i,n,o,a,c,"next",t)}function c(t){Zf(i,n,o,a,c,"throw",t)}a(void 0)}))}}function Jf(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Qf(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Jf(Object(r),!0).forEach((function(e){th(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Jf(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function th(t,e,r){return e=eh(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function eh(t){var e=rh(t,"string");return"symbol"===Yf(e)?e:String(e)}function rh(t,e){if("object"!==Yf(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Yf(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}Hf.a.track(!1);var nh=r("019f"),oh={mixins:[en],components:{Item:ki},data:function(){return{actionModel:Qf(Qf({},this.values),{},{is_over:!1})||{},todos:this.params.flow&&this.params.flow.flow_data.todo&&this.params.flow.flow_data.todo.constructor===Array?this.params.flow.flow_data.todo:[this.params.flow.flow_data.todo],current:this.params.flow&&this.params.flow.flow_data.case,formItems:this.params.flow&&this.params.flow.flow_data.form_param||[],backs:this.params.flow&&this.params.flow.flow_data.back_step,allowBack:this.params.flow&&this.params.flow.flow_data.allow_back,allowReassign:this.params.flow&&this.params.flow.flow_data.allow_reassign,allowInvolve:this.params.flow&&this.params.flow.flow_data.allow_involve,allowOver:this.params.flow&&this.params.flow.flow_data.allow_over,caseSteps:this.params.flow&&this.params.flow.model.case_step,logs:this.params.flow&&this.params.flow.flow_data.logs,rowSelection:{onChange:this.handleSelectionChange,columnWidth:"35px",type:this.params&&this.params.rowSelectionType?this.params.rowSelectionType:"checkbox",selectedRowKeys:[]||!1},activeName:"1",operatorNameValue:""}},created:function(){var t=this;if(this.todos&&1===this.todos.length&&this.todos[0].todo_actors&&1===this.todos[0].todo_actors.length&&(this.rowSelection.selectedRowKeys=this.params.flow.flow_data.todo&&this.params.flow.flow_data.todo[0]&&this.params.flow.flow_data.todo[0].todo_actors&&this.params.flow.flow_data.todo[0].todo_actors.map((function(t){return t.operator.actor_id})),this.actionModel.todo_actors=this.rowSelection.selectedRowKeys),this.todos&&this.todos.forEach((function(e){if(e.next_default_actor&&e.todo_actors){var r=e.todo_actors.map((function(t){return t.operator.actor_id}));t.rowSelection.selectedRowKeys=r.filter((function(t){return e.next_default_actor===t})),t.actionModel.todo_actors=t.rowSelection.selectedRowKeys}})),this.defaultValues)for(var e in this.defaultValues)void 0===this.actionModel[e]&&this.$set(this.actionModel,e,this.defaultValues[e])},mounted:function(){var t=this;setTimeout((function(){t.renderGraph()}),50)},methods:{handleSelectionChange:function(t){this.rowSelection.selectedRowKeys=this.actionModel.todo_actors=t},handleCommit:function(){var t=this;return Xf(Wf().mark((function e(){return Wf().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!t.todos[0].todo_actors.length||t.actionModel.todo_actors.length||["back","reassign","involve"].includes(t.actionModel.flow_action_name)||t.params.todoActorsNotRequired){e.next=3;break}return t.$message.error("请选择下一步审批者"),e.abrupt("return");case 3:t.$emit("commit",t.actionModel);case 4:case"end":return e.stop()}}),e)})))()},handleItemChange:function(t,e){var r=this;return Xf(Wf().mark((function n(){var o,i,a,c;return Wf().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(o=e.name,!(t instanceof FileList)){n.next=14;break}if(!t[0]){n.next=11;break}return i=new FormData,i.append(o,t[0]),n.next=7,r.$api.post("/upload",i);case 7:a=n.sent,t=a.data.data[o],n.next=12;break;case 11:t=null;case 12:n.next=15;break;case 14:t instanceof Date&&(t=r.moment(t).format("YYYY-MM-DD"));case 15:c=Qf({},r.actionModel.data),c[o]=t,r.actionModel.data=Qf({},c);case 18:case"end":return n.stop()}}),n)})))()},renderGraph:function(){var t=this;Hf.a.registerNode("rect",{getPath:function(t){var e=150,r=40;return Hf.a.Util.getRectPath(-e/2,-r/2,e,r,10)}});var e={nodes:this.steps.map((function(t,e){return{id:t.step_id,name:t.step_name,stepIndex:e}})),edges:this.steps.slice(1).map((function(e){var r=t.steps.find((function(t){return t.step_id===e.before_step_id}))||t.steps.find((function(t){return t.after_step_id===e.step_id}));return{source:r&&r.step_id,target:e.step_id}}))},r=new Hf.a.Graph({container:this.$refs.graph,fitView:"cc",height:72*this.steps.length,plugins:[new nh({ranksep:30})],defaultIntersectBox:"rect"});r.node({shape:"rect",label:function(t){return t.name},style:function(e){return{stroke:t.stepIndex>e.stepIndex?"#0285cd":t.stepIndex===e.stepIndex?"#52c41a":"#999",fill:"#999",fillOpacity:.3,lineWidth:2}}}),r.edge({style:{endArrow:!0}}),r.read(e)},filterOperators:function(t){var e=this;return this.operatorNameValue?t.filter((function(t){return t.actor_name.toString().toLowerCase().includes(e.operatorNameValue.toLowerCase())})):t}},computed:{lastStepID:function(){return this.logs&&this.logs.length>0&&this.current&&"on-going"===this.current.case_status&&this.todos&&this.todos.length>0?this.todos[0].current_step_id:this.current&&"success"===this.current.case_status?this.caseSteps[this.caseSteps.length-1].step_id:this.caseSteps[0].step_id},stepIndex:function(){var t=this,e=this.steps.findIndex((function(e){return t.lastStepID===e.step_id}));return!this.action||"e.flow-check"!==this.action.action&&"e.flow-submit"!==this.action.action?e:e-1},steps:function(){return this.caseSteps.filter((function(t){return Number(t.valid)}))},attrs:function(){var t=this,e=this.formItems.map((function(t){return t.attr_name})),r=this.view.schema.model.attrs.filter((function(t){return e.includes(t.name)})).map((function(e){var r=t.formItems.find((function(t){return t.attr_name===e.name}));return Qf(Qf({},e),r)}));return["reassign","involve"].includes(this.actionModel.flow_action_name)?r.filter((function(e){return e.attr_name===t.actionModel.flow_action_name})):r.filter((function(t){return!["reassign","involve"].includes(t.attr_name)}))},defaultValues:function(){var t=this.attrs?this.attrs.filter((function(t){return!!t.value})).map((function(t){return[t.name,t.value]})):[];return t.length?Object.fromEntries(t):null},operatorName:function(){var t=[];return!this.action||"e.flow-check"!==this.action.action&&"e.flow-submit"!==this.action.action?this.logs&&this.logs.length>0&&this.todos&&this.todos.length>0&&this.todos[0].todo_actors?t=this.todos[0].todo_actors.filter((function(t){return"close"!==t.status})).map((function(t){return t.operator_name})):this.logs&&0===this.logs.length&&(t=[this.$store.state.user.name]):t=[this.$store.state.user.name],t.length>0?"(".concat(t.join("、"),")"):""}}},ih=oh,ah=(r("26ad"),Lr(ih,Gf,zf,!1,null,null,null)),ch=ah.exports,sh={NormalForm:Ds,UploadForm:Ks,PickerViewForm:ou,AlgorithmForm:Bl,PickerTransferForm:cf,PickerTreeForm:xf,PickerSelectViewForm:Uf,WorkflowReport:ch};function uh(t){return uh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},uh(t)}function lh(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function fh(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?lh(Object(r),!0).forEach((function(e){hh(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):lh(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function hh(t,e,r){return e=ph(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ph(t){var e=dh(t,"string");return"symbol"===uh(e)?e:String(e)}function dh(t,e){if("object"!==uh(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==uh(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var yh={mixins:[Gt,zt,Ns],components:fh({},sh)},vh=yh,mh=Lr(vh,js,Ls,!1,null,null,null),gh=mh.exports,bh={ModelList:ma,ModelProfile:Ss,ModelForm:gh},wh={props:{view:{type:Object},modelViewType:{type:String}},inject:["page"],computed:{namespace:function(){return"v-".concat(this.page.pageKey)}},methods:{createView:function(){return{extends:$t(bh["Model".concat(this.modelViewType)])(this.namespace)}}}},_h=wh,xh=Lr(_h,wt,_t,!1,null,null,null),Oh=xh.exports,kh={components:{ViewBox:Oh},props:{views:{type:[Array]},viewLayout:{type:String,default:"blank"}}},Eh=kh,Sh=Lr(Eh,gt,bt,!1,null,null,null),jh=Sh.exports,Lh={mixins:[mt],components:{Views:jh}},Ph=Lh,Nh=Lr(Ph,ut,lt,!1,null,null,null),Ah=Nh.exports,Ch=function(){var t=this,e=t._self._c;return e("layout-page-".concat(t.layout),{tag:"component"},[e("Frame",{attrs:{url:"".concat(t.url),height:t.height}})],1)},Th=[],Ih={mixins:[mt],components:{Frame:Xa},props:{url:String,height:String},data:function(){return{loading:!0}}},Mh=Ih,Dh=Lr(Mh,Ch,Th,!1,null,null,null),qh=Dh.exports,Rh=function(){var t=this,e=t._self._c;return e("keep-alive",[e("router-view")],1)},Bh=[],Fh={},$h=Lr(Fh,Rh,Bh,!1,null,null,null),Vh=$h.exports;function Uh(t){return Uh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Uh(t)}function Gh(t){return Yh(t)||Hh(t)||Kh(t)||zh()}function zh(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Kh(t,e){if(t){if("string"===typeof t)return Wh(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Wh(t,e):void 0}}function Hh(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function Yh(t){if(Array.isArray(t))return Wh(t)}function Wh(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Zh(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Xh(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Zh(Object(r),!0).forEach((function(e){Jh(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Zh(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Jh(t,e,r){return e=Qh(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Qh(t){var e=tp(t,"string");return"symbol"===Uh(e)?e:String(e)}function tp(t,e){if("object"!==Uh(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Uh(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function ep(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ep=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(L){s=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var i=e&&e.prototype instanceof h?e:h,a=Object.create(i.prototype),c=new E(o||[]);return n(a,"_invoke",{value:_(t,r,c)}),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(L){return{type:"throw",arg:L}}}t.wrap=u;var f={};function h(){}function p(){}function d(){}var y={};s(y,i,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(S([])));m&&m!==e&&r.call(m,i)&&(y=m);var g=d.prototype=h.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,c){var s=l(t[n],t,i);if("throw"!==s.type){var u=s.arg,f=u.value;return f&&"object"==Uh(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return o("throw",t,a,c)}))}c(s.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function _(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=x(a,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=l(t,e,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=l(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function S(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return p.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:p,configurable:!0}),p.displayName=s(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,s(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),s(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),s(g,c,"Generator"),s(g,i,(function(){return this})),s(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=S,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:S(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function rp(t,e,r,n,o,i,a){try{var c=t[i](a),s=c.value}catch(u){return void r(u)}c.done?e(s):Promise.resolve(s).then(n,o)}function np(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){rp(i,n,o,a,c,"next",t)}function c(t){rp(i,n,o,a,c,"throw",t)}a(void 0)}))}}var op=st(Ah),ip=["catalog-tab","catalog"],ap={data:function(){return{messageTimer:0}},created:function(){var t=this;return np(ep().mark((function e(){return ep().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.$router.addRoutes([{path:"/sign-in",component:t.$theme.pages.Signin,props:{layout:"wall"}}]),e.next=3,t.$store.dispatch("loadResources");case 3:"poll"===t.$store.state.config.message.type&&"1"===t.$store.state.app.remind&&t.startMessage();case 4:case"end":return e.stop()}}),e)})))()},computed:Xh(Xh({},Object(l["mapState"])(["status","resources"])),{},{routes:function(){return this.resources.length?[{path:"/",redirect:"/"+this.resources[0].key,children:this.resToRoute(Gh(this.resources)),component:this.$theme.layouts.router.Sidebar}]:[]}}),methods:{addRoutes:function(){this.$router.addRoutes(this.routes),this.$emit("routed")},resToRoute:function(t){var e=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",n=this.$theme.layouts.router.Tabs;return t.map((function(t){var o,i="".concat(r,"/").concat(t.key),a=t.key,c={},s=null;switch(t.type){case"catalog-tab":o=n,c.resources=t.childs,c.parentPath=i;break;case"component":o=e.$theme.pages[t.key.replace(/^\S/,(function(t){return t.toUpperCase()}))],c.pageKey=t.url;break;case"iframe":if(o=qh,c.pageKey=t.url,c.url=t.url,t.url&&t.url.split("?")[1]){var u=t.url.split("?")[1].split("&").find((function(t){return t.includes("height")}))||void 0;u&&(c.height=u.split("=")[1])}break;case"view":o=Vh,c.pageKey=t.url;break;case"link":o={template:"<span></span>",activated:function(){this.$router.back()}};break;default:o=Vh;break}return"view"===t.type&&"standard"===t.viewType&&(s=[{path:"",component:{extends:op(t.url,!0)},props:{modelViewType:"profile"===t.catalogType?"Profile":"List",pageKey:t.url},meta:{name:t.name,key:i}},{path:":id",component:{extends:op(t.url,!0)},props:function(){return{modelViewType:"Profile",pageKey:t.url}},meta:{name:t.name,key:i}}]),!s&&t.childs&&(s=e.resToRoute(t.childs,t,"".concat(r,"/").concat(a))),{name:s?null:t.url,path:a,redirect:ip.includes(t.type)&&t.childs&&t.childs.length?"".concat(r,"/").concat(a,"/").concat(t.childs[0].key):null,children:s,component:o,props:c,meta:{name:"list"===t.type?null:t.name}}}))},modelPageRoute:function(){},startMessage:function(){var t=this;return np(ep().mark((function e(){return ep().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$store.dispatch("loadMessages");case 2:t.messageTimer&&clearInterval(t.messageTimer),t.messageTimer=setInterval((function(){t.$store.dispatch("loadMessages")}),1e4);case 4:case"end":return e.stop()}}),e)})))()}},watch:{status:function(t){401===t&&"/sign-in"!==this.$route.path&&this.$router.push("/sign-in")},resources:function(t,e){!e.length&&this.addRoutes()}}},cp=ap,sp=Lr(cp,s,u,!1,null,null,null),up=sp.exports,lp={components:{Router:up},created:function(){}},fp=lp,hp=Lr(fp,a,c,!1,null,null,null),pp=hp.exports;r("e39e");function dp(t){return dp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},dp(t)}function yp(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */yp=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(L){s=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var i=e&&e.prototype instanceof h?e:h,a=Object.create(i.prototype),c=new E(o||[]);return n(a,"_invoke",{value:_(t,r,c)}),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(L){return{type:"throw",arg:L}}}t.wrap=u;var f={};function h(){}function p(){}function d(){}var y={};s(y,i,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(S([])));m&&m!==e&&r.call(m,i)&&(y=m);var g=d.prototype=h.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,c){var s=l(t[n],t,i);if("throw"!==s.type){var u=s.arg,f=u.value;return f&&"object"==dp(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return o("throw",t,a,c)}))}c(s.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function _(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=x(a,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=l(t,e,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=l(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function S(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return p.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:p,configurable:!0}),p.displayName=s(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,s(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),s(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),s(g,c,"Generator"),s(g,i,(function(){return this})),s(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=S,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:S(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function vp(t,e,r,n,o,i,a){try{var c=t[i](a),s=c.value}catch(u){return void r(u)}c.done?e(s):Promise.resolve(s).then(n,o)}function mp(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){vp(i,n,o,a,c,"next",t)}function c(t){vp(i,n,o,a,c,"throw",t)}a(void 0)}))}}function gp(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function bp(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?gp(Object(r),!0).forEach((function(e){wp(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):gp(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function wp(t,e,r){return e=_p(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function _p(t){var e=xp(t,"string");return"symbol"===dp(e)?e:String(e)}function xp(t,e){if("object"!==dp(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==dp(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var Op=window.Rainbow,kp=Op.app,Ep=kp.csrfToken,Sp=kp.baseURL,jp=!1,Lp={};function Pp(t){E.setDefaults({baseURL:Sp!==["/","{app.appKey}"].join("$")?Sp:t,headers:Lp}),P.a.use(E),P.a.use(f.a);var e=function(){return{resources:[],apps:[],user:{},token:JSON.parse(localStorage.getItem("token")),app:bp({},Op.app),config:{message:{type:"poll"}},messages:[],historys:[],loading:!1,committing:!1,status:200,message:"",baseURL:E.instance.defaults.baseURL}};return new f.a.Store({state:e(),strict:jp,plugins:[],mutations:{setResources:function(t,e){t.resources=e},setApp:function(t,e){t.app=bp(bp({},t.app),e)},setUser:function(t,e){t.user=e},setToken:function(t,e){t.token=e},setMessages:function(t,e){t.messages=e},readMessages:function(t,e){if(e.length>1)t.messages=[];else if(1===e.length){var r=t.messages.findIndex((function(t){return e[0].message_id===t.message_id}));-1!==r&&t.messages.splice(r,1)}},clear:function(t){t.resources=t.apps=t.messages=[],t.user=null,localStorage.removeItem("signToken"),t.signToken=null},setStatus:function(t,e){var r=e.status,n=e.message;t.status=r,t.message=n},setLoading:function(t,e){t.loading=e},setCommitting:function(t,e){t.committing=e},setHistorys:function(t,e){var r=t.historys.findIndex((function(t){return t.key===e.key}));-1!==r?t.historys[r]=e:t.historys.push(e)},removeHistorys:function(t,e){var r=t.historys.findIndex((function(t){return t.key===e}));return-1!==r&&t.historys.splice(r,1),r}},actions:{loadResources:function(t){return mp(yp().mark((function e(){var r,n,o,i,a,c,s;return yp().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=t.commit,n=t.dispatch,r("setLoading",!0),e.prev=2,e.next=5,E.get("/api");case 5:o=e.sent,i=o.data,a=i.resources,c=i.user,s=i.app,r("setResources",a),r("setApp",s),r("setUser",c),e.next=18;break;case 15:e.prev=15,e.t0=e["catch"](2),n("handleError",e.t0);case 18:return e.prev=18,r("setLoading",!1),e.finish(18);case 21:case"end":return e.stop()}}),e,null,[[2,15,18,21]])})))()},loadMessages:function(t){return mp(yp().mark((function e(){var r,n,o;return yp().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=t.commit,e.prev=1,e.next=4,E.get("/api/sys-msg?status=unread");case 4:n=e.sent,o=n.data.collection,r("setMessages",o),e.next=11;break;case 9:e.prev=9,e.t0=e["catch"](1);case 11:case"end":return e.stop()}}),e,null,[[1,9]])})))()},readMessages:function(t,e){return mp(yp().mark((function r(){var n;return yp().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return n=t.commit,r.next=3,E.post("/api/sys-msg/read",e);case 3:n("readMessages",e);case 4:case"end":return r.stop()}}),r)})))()},emptyMessages:function(t,e){return mp(yp().mark((function r(){var n;return yp().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return n=t.commit,r.next=3,E.post("/api/sys-msg/reads",e);case 3:n("readMessages",e);case 4:case"end":return r.stop()}}),r)})))()},signin:function(t){var e=arguments;return mp(yp().mark((function r(){var n,o,i,a,c,s,u,l;return yp().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return n=t.commit,o=t.dispatch,i=e.length>1&&void 0!==e[1]?e[1]:{},n("setCommitting",!0),r.prev=3,r.next=6,E.post("/api/signin",i.data,{});case 6:return a=r.sent,c=a.data,s=c.data,u=c.content,l=a.status,n("clear"),n("setStatus",{status:l,message:u}),r.abrupt("return",s);case 16:r.prev=16,r.t0=r["catch"](3),o("handleError",r.t0);case 19:return r.prev=19,n("setCommitting",!1),r.finish(19);case 22:case"end":return r.stop()}}),r,null,[[3,16,19,22]])})))()},getSms:function(t){var e=arguments;return mp(yp().mark((function r(){var n,o,i,a,c,s,u,l;return yp().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return n=t.commit,o=t.dispatch,i=e.length>1&&void 0!==e[1]?e[1]:{},n("setCommitting",!0),r.prev=3,r.next=6,E.post("/api/sms",i.data,{});case 6:return a=r.sent,c=a.data,s=c.data,u=c.content,l=a.status,n("clear"),n("setStatus",{status:l,message:u}),r.abrupt("return",s);case 16:r.prev=16,r.t0=r["catch"](3),o("handleError",r.t0);case 19:return r.prev=19,n("setCommitting",!1),r.finish(19);case 22:case"end":return r.stop()}}),r,null,[[3,16,19,22]])})))()},signout:function(t,e){return mp(yp().mark((function e(){var r,n,o,i,a,c,s;return yp().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=t.commit,n=t.dispatch,r("setCommitting",!0),e.prev=2,e.next=5,E.post("/api/signout");case 5:return o=e.sent,i=o.data,a=i.data,c=i.content,s=o.status,r("clear"),r("setStatus",{status:s,message:c}),e.abrupt("return",a);case 15:e.prev=15,e.t0=e["catch"](2),n("handleError",e.t0);case 18:return e.prev=18,r("setCommitting",!1),e.finish(18);case 21:case"end":return e.stop()}}),e,null,[[2,15,18,21]])})))()},changePassword:function(t){var e=arguments;return mp(yp().mark((function r(){var n,o,i,a,c,s,u,l;return yp().wrap((function(r){while(1)switch(r.prev=r.next){case 0:return n=t.commit,o=t.dispatch,i=e.length>1&&void 0!==e[1]?e[1]:{},n("setCommitting",!0),r.prev=3,r.next=6,E.post("/api/change-password",i.data,{});case 6:return a=r.sent,c=a.data,s=c.data,u=c.content,l=a.status,n("clear"),n("setStatus",{status:l,message:u}),r.abrupt("return",s);case 16:r.prev=16,r.t0=r["catch"](3),o("handleError",r.t0);case 19:return r.prev=19,n("setCommitting",!1),r.finish(19);case 22:case"end":return r.stop()}}),r,null,[[3,16,19,22]])})))()},handleError:function(t,e){var r=t.commit;if(!e.response)return r("setStatus",{status:0,message:"网络请求错误,请检查您的网络连接。"});var n=e.response,o=n.status,i=n.data,a=i&&i.content||"系统错误请与管理员联系。";return r("setStatus",{status:o,message:a}),e}},getters:{token:function(){},resources:function(){},app:function(t){return t.app},user:function(t){return t.user},config:function(t){return function(e){return t.config.find((function(t){return t.key===e}))}}}})}Ep&&"${app.csrfToken}"!==Ep&&(Lp["x-csrf-token"]=Ep);var Np=r("6389"),Ap=r.n(Np);P.a.use(Ap.a);var Cp=new Ap.a,Tp=function(){var t=this,e=t._self._c;return e("a",{directives:[{name:"clipboard",rawName:"v-clipboard:copy",value:t.copyText,expression:"copyText",arg:"copy"},{name:"clipboard",rawName:"v-clipboard:success",value:t.onCopy,expression:"onCopy",arg:"success"},{name:"clipboard",rawName:"v-clipboard:error",value:t.onError,expression:"onError",arg:"error"}]},[t._v(" "+t._s(t.text)+" ")])},Ip=[],Mp={name:"clipboard",props:{text:{type:String,default:"文本内容"},copyText:{type:[String,Number],default:"复制文本内容"}},methods:{onCopy:function(t){this.$message.success("复制成功")},onError:function(t){this.$message.error("复制失败")}}},Dp=Mp,qp=Lr(Dp,Tp,Ip,!1,null,null,null),Rp=qp.exports,Bp=function(){var t=this,e=t._self._c;return e(t.component,{tag:"component"},[t._t("default",null,{collection:t.dataSource,model:t.model,schema:t.schema,schemas:t.schemas,count:t.count}),t._t("empty"),t._t("error")],2)},Fp=[];function $p(t){return $p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$p(t)}function Vp(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Vp=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,n=Object.defineProperty||function(t,e,r){t[e]=r.value},o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(L){s=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var i=e&&e.prototype instanceof h?e:h,a=Object.create(i.prototype),c=new E(o||[]);return n(a,"_invoke",{value:_(t,r,c)}),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(L){return{type:"throw",arg:L}}}t.wrap=u;var f={};function h(){}function p(){}function d(){}var y={};s(y,i,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(S([])));m&&m!==e&&r.call(m,i)&&(y=m);var g=d.prototype=h.prototype=Object.create(y);function b(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function o(n,i,a,c){var s=l(t[n],t,i);if("throw"!==s.type){var u=s.arg,f=u.value;return f&&"object"==$p(f)&&r.call(f,"__await")?e.resolve(f.__await).then((function(t){o("next",t,a,c)}),(function(t){o("throw",t,a,c)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return o("throw",t,a,c)}))}c(s.arg)}var i;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){o(t,r,e,n)}))}return i=i?i.then(n,n):n()}})}function _(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var c=x(a,r);if(c){if(c===f)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=l(t,e,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function x(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var o=l(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,f;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function S(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return p.prototype=d,n(g,"constructor",{value:d,configurable:!0}),n(d,"constructor",{value:p,configurable:!0}),p.displayName=s(d,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,s(t,c,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),s(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),s(g,c,"Generator"),s(g,i,(function(){return this})),s(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=S,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:S(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}function Up(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Gp(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Up(Object(r),!0).forEach((function(e){Hp(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Up(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function zp(t,e,r,n,o,i,a){try{var c=t[i](a),s=c.value}catch(u){return void r(u)}c.done?e(s):Promise.resolve(s).then(n,o)}function Kp(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){zp(i,n,o,a,c,"next",t)}function c(t){zp(i,n,o,a,c,"throw",t)}a(void 0)}))}}function Hp(t,e,r){return e=Yp(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Yp(t){var e=Wp(t,"string");return"symbol"===$p(e)?e:String(e)}function Wp(t,e){if("object"!==$p(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==$p(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function Zp(t,e){return ed(t)||td(t,e)||Jp(t,e)||Xp()}function Xp(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Jp(t,e){if(t){if("string"===typeof t)return Qp(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Qp(t,e):void 0}}function Qp(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function td(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],s=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);s=!0);}catch(l){u=!0,o=l}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}function ed(t){if(Array.isArray(t))return t}var rd={props:{name:{type:String},component:{type:[String,Object],default:"div"},query:{type:Object},filter:{type:Object},transform:{type:Function},limit:{type:Number},page:{type:Number},schemaMode:{type:[Boolean,String],default:!1},dataset:{type:Boolean,default:!1}},data:function(){return{collection:[],model:{},schema:null,count:0,status:0,loading:!1}},computed:{dataSource:function(){var t=this.collection,e=this.filter,r=e?t.filter((function(t){return Object.keys(e).every((function(r){var n=e[r];return n&&!Array.isArray(n)&&(n=[n]),null===n||n.includes(t[r])}))})):t;return this.transform?r.map(this.transform):r},schemas:function(){var t=this.schema?this.schema.model.attrs.filter((function(t){return t.list||"wordbook"===t.dataType&&t.typeObject})):[],e=t.map((function(t){return t.list?[t.name,t.list.split(",").map((function(t){var e=t.split(":"),r=Zp(e,2),n=r[0],o=r[1];return o?Hp({},n,o):n}))]:[t.name,t.typeObject.data&&t.typeObject.data.collection||[]]}));return Object.fromEntries(e)}},methods:{load:function(){var t=this;return Kp(Vp().mark((function e(){var r,n,o,i,a,c,s,u,l,f,h,p,d,y,v;return Vp().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=t.name,n=t.query,o=t.limit,i=void 0===o?0:o,a=t.page,c=t.dataset,t.collection=[],t.model={},t.count=0,t.status=0,t.loading=!0,s=c?"dataset":"api",e.prev=7,e.next=10,t.$api.get("/".concat(s,"/").concat(r,"?").concat(j.a.stringify(Gp(Gp({},n),{},{_size:i,$limit:a}))));case 10:u=e.sent,l=u.data,f=l.collection,h=l.count,p=l.model,d=l.data,y=u.status,t.collection=f||d,t.model=p,t.count=h,t.status=y,e.next=27;break;case 23:return e.prev=23,e.t0=e["catch"](7),e.t0.response?(v=e.t0.response.status,t.status=v):t.status=-1,e.abrupt("return",e.t0);case 27:return e.prev=27,t.loading=!1,e.finish(27);case 30:case"end":return e.stop()}}),e,null,[[7,23,27,30]])})))()},loadSchema:function(){var t=this;return Kp(Vp().mark((function e(){var r,n,o,i;return Vp().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=t.name,e.prev=1,e.next=4,t.$api.get("/schemas/".concat(r));case 4:n=e.sent,o=n.data,t.schema=o,e.next=13;break;case 9:return e.prev=9,e.t0=e["catch"](1),e.t0.response?(i=e.t0.response.status,t.status=i):t.status=-1,e.abrupt("return",e.t0);case 13:return e.prev=13,t.loading=!1,e.finish(13);case 16:case"end":return e.stop()}}),e,null,[[1,9,13,16]])})))()}},created:function(){var t=this;return Kp(Vp().mark((function e(){return Vp().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("await"!==t.schemaMode){e.next=6;break}return e.next=3,t.loadSchema();case 3:t.load(),e.next=7;break;case 6:"async"===t.schemaMode?(t.loadSchema(),t.load()):t.schemaMode?t.loadSchema():t.load();case 7:case"end":return e.stop()}}),e)})))()},watch:{name:function(t){this.load()},page:function(){this.load()}}},nd=rd,od=Lr(nd,Bp,Fp,!1,null,null,null),id=od.exports,ad=r("0934"),cd=r.n(ad);function sd(t){var e=cd.a.enc.Utf8.parse(t),r="1234123412ABCDEF",n="ABCDEF1234123412",o=cd.a.enc.Utf8.parse(r),i=cd.a.enc.Utf8.parse(n),a=cd.a.AES.encrypt(e,o,{iv:i,mode:cd.a.mode.CBC,padding:cd.a.pad.Pkcs7}),c=a.ciphertext.toString();return c}r("517c")},"1f44":function(t,e,r){(function(e,n,o){t.exports=n(r("bf17"),r("f97e"),r("a638"),r("57eb"),r("023d"))})(0,(function(t){return function(){var e=t,r=e.lib,n=r.StreamCipher,o=e.algo,i=[],a=[],c=[],s=o.Rabbit=n.extend({_doReset:function(){for(var t=this._key.words,e=this.cfg.iv,r=0;r<4;r++)t[r]=16711935&(t[r]<<8|t[r]>>>24)|4278255360&(t[r]<<24|t[r]>>>8);var n=this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16],o=this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];this._b=0;for(r=0;r<4;r++)u.call(this);for(r=0;r<8;r++)o[r]^=n[r+4&7];if(e){var i=e.words,a=i[0],c=i[1],s=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),l=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8),f=s>>>16|4294901760&l,h=l<<16|65535&s;o[0]^=s,o[1]^=f,o[2]^=l,o[3]^=h,o[4]^=s,o[5]^=f,o[6]^=l,o[7]^=h;for(r=0;r<4;r++)u.call(this)}},_doProcessBlock:function(t,e){var r=this._X;u.call(this),i[0]=r[0]^r[5]>>>16^r[3]<<16,i[1]=r[2]^r[7]>>>16^r[5]<<16,i[2]=r[4]^r[1]>>>16^r[7]<<16,i[3]=r[6]^r[3]>>>16^r[1]<<16;for(var n=0;n<4;n++)i[n]=16711935&(i[n]<<8|i[n]>>>24)|4278255360&(i[n]<<24|i[n]>>>8),t[e+n]^=i[n]},blockSize:4,ivSize:2});function u(){for(var t=this._X,e=this._C,r=0;r<8;r++)a[r]=e[r];e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0<a[0]>>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0<a[1]>>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0<a[2]>>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0<a[3]>>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0<a[4]>>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0<a[5]>>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0<a[6]>>>0?1:0)|0,this._b=e[7]>>>0<a[7]>>>0?1:0;for(r=0;r<8;r++){var n=t[r]+e[r],o=65535&n,i=n>>>16,s=((o*o>>>17)+o*i>>>15)+i*i,u=((4294901760&n)*n|0)+((65535&n)*n|0);c[r]=s^u}t[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,t[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,t[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,t[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,t[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,t[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,t[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,t[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}e.Rabbit=n._createHelper(s)}(),t.Rabbit}))},2364:function(e,r){e.exports=t},"23a7":function(t,e,r){(function(e,n,o){t.exports=n(r("bf17"),r("023d"))})(0,(function(t){return t.mode.CFB=function(){var e=t.lib.BlockCipherMode.extend();function r(t,e,r,n){var o,i=this._iv;i?(o=i.slice(0),this._iv=void 0):o=this._prevBlock,n.encryptBlock(o,0);for(var a=0;a<r;a++)t[e+a]^=o[a]}return e.Encryptor=e.extend({processBlock:function(t,e){var n=this._cipher,o=n.blockSize;r.call(this,t,e,o,n),this._prevBlock=t.slice(e,e+o)}}),e.Decryptor=e.extend({processBlock:function(t,e){var n=this._cipher,o=n.blockSize,i=t.slice(e,e+o);r.call(this,t,e,o,n),this._prevBlock=i}}),e}(),t.mode.CFB}))},"26ad":function(t,e,r){"use strict";r("f581")},"2a55":function(t,e,r){"use strict";e.byteLength=l,e.toByteArray=h,e.fromByteArray=y;for(var n=[],o=[],i="undefined"!==typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c=0,s=a.length;c<s;++c)n[c]=a[c],o[a.charCodeAt(c)]=c;function u(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");-1===r&&(r=e);var n=r===e?0:4-r%4;return[r,n]}function l(t){var e=u(t),r=e[0],n=e[1];return 3*(r+n)/4-n}function f(t,e,r){return 3*(e+r)/4-r}function h(t){var e,r,n=u(t),a=n[0],c=n[1],s=new i(f(t,a,c)),l=0,h=c>0?a-4:a;for(r=0;r<h;r+=4)e=o[t.charCodeAt(r)]<<18|o[t.charCodeAt(r+1)]<<12|o[t.charCodeAt(r+2)]<<6|o[t.charCodeAt(r+3)],s[l++]=e>>16&255,s[l++]=e>>8&255,s[l++]=255&e;return 2===c&&(e=o[t.charCodeAt(r)]<<2|o[t.charCodeAt(r+1)]>>4,s[l++]=255&e),1===c&&(e=o[t.charCodeAt(r)]<<10|o[t.charCodeAt(r+1)]<<4|o[t.charCodeAt(r+2)]>>2,s[l++]=e>>8&255,s[l++]=255&e),s}function p(t){return n[t>>18&63]+n[t>>12&63]+n[t>>6&63]+n[63&t]}function d(t,e,r){for(var n,o=[],i=e;i<r;i+=3)n=(t[i]<<16&16711680)+(t[i+1]<<8&65280)+(255&t[i+2]),o.push(p(n));return o.join("")}function y(t){for(var e,r=t.length,o=r%3,i=[],a=16383,c=0,s=r-o;c<s;c+=a)i.push(d(t,c,c+a>s?s:c+a));return 1===o?(e=t[r-1],i.push(n[e>>2]+n[e<<4&63]+"==")):2===o&&(e=(t[r-2]<<8)+t[r-1],i.push(n[e>>10]+n[e>>4&63]+n[e<<2&63]+"=")),i.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},"2b25":function(t,e,r){(function(e,n){t.exports=n(r("bf17"))})(0,(function(t){return function(){var e=t,r=e.lib,n=r.WordArray,o=r.Hasher,i=e.algo,a=[],c=i.SHA1=o.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){for(var r=this._hash.words,n=r[0],o=r[1],i=r[2],c=r[3],s=r[4],u=0;u<80;u++){if(u<16)a[u]=0|t[e+u];else{var l=a[u-3]^a[u-8]^a[u-14]^a[u-16];a[u]=l<<1|l>>>31}var f=(n<<5|n>>>27)+s+a[u];f+=u<20?1518500249+(o&i|~o&c):u<40?1859775393+(o^i^c):u<60?(o&i|o&c|i&c)-1894007588:(o^i^c)-899497514,s=c,c=i,i=o<<30|o>>>2,o=n,n=f}r[0]=r[0]+n|0,r[1]=r[1]+o|0,r[2]=r[2]+i|0,r[3]=r[3]+c|0,r[4]=r[4]+s|0},_doFinalize:function(){var t=this._data,e=t.words,r=8*this._nDataBytes,n=8*t.sigBytes;return e[n>>>5]|=128<<24-n%32,e[14+(n+64>>>9<<4)]=Math.floor(r/4294967296),e[15+(n+64>>>9<<4)]=r,t.sigBytes=4*e.length,this._process(),this._hash},clone:function(){var t=o.clone.call(this);return t._hash=this._hash.clone(),t}});e.SHA1=o._createHelper(c),e.HmacSHA1=o._createHmacHelper(c)}(),t.SHA1}))},"2f24":function(t,e,r){"use strict";r("63ce")},"336c":function(t,r){t.exports=e},"37eb":function(t,e,r){!function(e,n){t.exports=n(r("788a"))}(0,(function(t){return function(t){function e(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var r={};return e.m=t,e.c=r,e.i=function(t){return t},e.d=function(t,r,n){e.o(t,r)||Object.defineProperty(t,r,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(r,"a",r),r},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/",e(e.s=2)}([function(e,r){e.exports=t},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(4),o=r.n(n),i=r(6),a=r(5),c=a(o.a,i.a,!1,null,null,null);e.default=c.exports},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.install=e.quillEditor=e.Quill=void 0;var o=r(0),i=n(o),a=r(1),c=n(a),s=window.Quill||i.default,u=function(t,e){e&&(c.default.props.globalOptions.default=function(){return e}),t.component(c.default.name,c.default)},l={Quill:s,quillEditor:c.default,install:u};e.default=l,e.Quill=s,e.quillEditor=c.default,e.install=u},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={theme:"snow",boundary:document.body,modules:{toolbar:[["bold","italic","underline","strike"],["blockquote","code-block"],[{header:1},{header:2}],[{list:"ordered"},{list:"bullet"}],[{script:"sub"},{script:"super"}],[{indent:"-1"},{indent:"+1"}],[{direction:"rtl"}],[{size:["small",!1,"large","huge"]}],[{header:[1,2,3,4,5,6,!1]}],[{color:[]},{background:[]}],[{font:[]}],[{align:[]}],["clean"],["link","image","video"]]},placeholder:"Insert text here ...",readOnly:!1}},function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=r(0),i=n(o),a=r(3),c=n(a),s=window.Quill||i.default;"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(t,e){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var r=Object(t),n=1;n<arguments.length;n++){var o=arguments[n];if(null!=o)for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])}return r},writable:!0,configurable:!0}),e.default={name:"quill-editor",data:function(){return{_options:{},_content:"",defaultOptions:c.default}},props:{content:String,value:String,disabled:{type:Boolean,default:!1},options:{type:Object,required:!1,default:function(){return{}}},globalOptions:{type:Object,required:!1,default:function(){return{}}}},mounted:function(){this.initialize()},beforeDestroy:function(){this.quill=null,delete this.quill},methods:{initialize:function(){var t=this;this.$el&&(this._options=Object.assign({},this.defaultOptions,this.globalOptions,this.options),this.quill=new s(this.$refs.editor,this._options),this.quill.enable(!1),(this.value||this.content)&&this.quill.pasteHTML(this.value||this.content),this.disabled||this.quill.enable(!0),this.quill.on("selection-change",(function(e){e?t.$emit("focus",t.quill):t.$emit("blur",t.quill)})),this.quill.on("text-change",(function(e,r,n){var o=t.$refs.editor.children[0].innerHTML,i=t.quill,a=t.quill.getText();"<p><br></p>"===o&&(o=""),t._content=o,t.$emit("input",t._content),t.$emit("change",{html:o,text:a,quill:i})})),this.$emit("ready",this.quill))}},watch:{content:function(t,e){this.quill&&(t&&t!==this._content?(this._content=t,this.quill.pasteHTML(t)):t||this.quill.setText(""))},value:function(t,e){this.quill&&(t&&t!==this._content?(this._content=t,this.quill.pasteHTML(t)):t||this.quill.setText(""))},disabled:function(t,e){this.quill&&this.quill.enable(!t)}}}},function(t,e){t.exports=function(t,e,r,n,o,i){var a,c=t=t||{},s=typeof t.default;"object"!==s&&"function"!==s||(a=t,c=t.default);var u,l="function"==typeof c?c.options:c;if(e&&(l.render=e.render,l.staticRenderFns=e.staticRenderFns,l._compiled=!0),r&&(l.functional=!0),o&&(l._scopeId=o),i?(u=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),n&&n.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(i)},l._ssrRegister=u):n&&(u=n),u){var f=l.functional,h=f?l.render:l.beforeCreate;f?(l._injectStyles=u,l.render=function(t,e){return u.call(e),h(t,e)}):l.beforeCreate=h?[].concat(h,u):[u]}return{esModule:a,exports:c,options:l}}},function(t,e,r){"use strict";var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"quill-editor"},[t._t("toolbar"),t._v(" "),r("div",{ref:"editor"})],2)},o=[],i={render:n,staticRenderFns:o};e.a=i}])}))},"4b6e":function(t,e,r){},"517c":function(t,e,r){},"521b":function(t,e,r){},"53e9":function(t,e,r){"use strict";r("7dac")},"540a":function(t,e,r){"use strict";r("dbf7")},"55ab":function(t,e,r){},"57eb":function(t,e,r){(function(e,n,o){t.exports=n(r("bf17"),r("2b25"),r("fb70"))})(0,(function(t){return function(){var e=t,r=e.lib,n=r.Base,o=r.WordArray,i=e.algo,a=i.MD5,c=i.EvpKDF=n.extend({cfg:n.extend({keySize:4,hasher:a,iterations:1}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,e){var r,n=this.cfg,i=n.hasher.create(),a=o.create(),c=a.words,s=n.keySize,u=n.iterations;while(c.length<s){r&&i.update(r),r=i.update(t).finalize(e),i.reset();for(var l=1;l<u;l++)r=i.finalize(r),i.reset();a.concat(r)}return a.sigBytes=4*s,a}});e.EvpKDF=function(t,e,r){return c.create(r).compute(t,e)}}(),t.EvpKDF}))},5880:function(t,e){t.exports=r},"5aeb":function(t,e){t.exports=n},"5c90":function(t,e,r){(function(e,n){t.exports=n(r("bf17"))})(0,(function(t){return function(e){var r=t,n=r.lib,o=n.Base,i=n.WordArray,a=r.x64={};a.Word=o.extend({init:function(t,e){this.high=t,this.low=e}}),a.WordArray=o.extend({init:function(t,r){t=this.words=t||[],this.sigBytes=r!=e?r:8*t.length},toX32:function(){for(var t=this.words,e=t.length,r=[],n=0;n<e;n++){var o=t[n];r.push(o.high),r.push(o.low)}return i.create(r,this.sigBytes)},clone:function(){for(var t=o.clone.call(this),e=t.words=this.words.slice(0),r=e.length,n=0;n<r;n++)e[n]=e[n].clone();return t}})}(),t}))},"5dd0":function(t,e,r){"use strict";r("a479")},6389:function(t,e){t.exports=o},"63ce":function(t,e,r){},"67ae":function(t,e,r){(function(e,n,o){t.exports=n(r("bf17"),r("5c90"))})(0,(function(t){return function(){var e=t,r=e.lib,n=r.Hasher,o=e.x64,i=o.Word,a=o.WordArray,c=e.algo;function s(){return i.create.apply(i,arguments)}var u=[s(1116352408,3609767458),s(1899447441,602891725),s(3049323471,3964484399),s(3921009573,2173295548),s(961987163,4081628472),s(1508970993,3053834265),s(2453635748,2937671579),s(2870763221,3664609560),s(3624381080,2734883394),s(310598401,1164996542),s(607225278,1323610764),s(1426881987,3590304994),s(1925078388,4068182383),s(2162078206,991336113),s(2614888103,633803317),s(3248222580,3479774868),s(3835390401,2666613458),s(4022224774,944711139),s(264347078,2341262773),s(604807628,2007800933),s(770255983,1495990901),s(1249150122,1856431235),s(1555081692,3175218132),s(1996064986,2198950837),s(2554220882,3999719339),s(2821834349,766784016),s(2952996808,2566594879),s(3210313671,3203337956),s(3336571891,1034457026),s(3584528711,2466948901),s(113926993,3758326383),s(338241895,168717936),s(666307205,1188179964),s(773529912,1546045734),s(1294757372,1522805485),s(1396182291,2643833823),s(1695183700,2343527390),s(1986661051,1014477480),s(2177026350,1206759142),s(2456956037,344077627),s(2730485921,1290863460),s(2820302411,3158454273),s(3259730800,3505952657),s(3345764771,106217008),s(3516065817,3606008344),s(3600352804,1432725776),s(4094571909,1467031594),s(275423344,851169720),s(430227734,3100823752),s(506948616,1363258195),s(659060556,3750685593),s(883997877,3785050280),s(958139571,3318307427),s(1322822218,3812723403),s(1537002063,2003034995),s(1747873779,3602036899),s(1955562222,1575990012),s(2024104815,1125592928),s(2227730452,2716904306),s(2361852424,442776044),s(2428436474,593698344),s(2756734187,3733110249),s(3204031479,2999351573),s(3329325298,3815920427),s(3391569614,3928383900),s(3515267271,566280711),s(3940187606,3454069534),s(4118630271,4000239992),s(116418474,1914138554),s(174292421,2731055270),s(289380356,3203993006),s(460393269,320620315),s(685471733,587496836),s(852142971,1086792851),s(1017036298,365543100),s(1126000580,2618297676),s(1288033470,3409855158),s(1501505948,4234509866),s(1607167915,987167468),s(1816402316,1246189591)],l=[];(function(){for(var t=0;t<80;t++)l[t]=s()})();var f=c.SHA512=n.extend({_doReset:function(){this._hash=new a.init([new i.init(1779033703,4089235720),new i.init(3144134277,2227873595),new i.init(1013904242,4271175723),new i.init(2773480762,1595750129),new i.init(1359893119,2917565137),new i.init(2600822924,725511199),new i.init(528734635,4215389547),new i.init(1541459225,327033209)])},_doProcessBlock:function(t,e){for(var r=this._hash.words,n=r[0],o=r[1],i=r[2],a=r[3],c=r[4],s=r[5],f=r[6],h=r[7],p=n.high,d=n.low,y=o.high,v=o.low,m=i.high,g=i.low,b=a.high,w=a.low,_=c.high,x=c.low,O=s.high,k=s.low,E=f.high,S=f.low,j=h.high,L=h.low,P=p,N=d,A=y,C=v,T=m,I=g,M=b,D=w,q=_,R=x,B=O,F=k,$=E,V=S,U=j,G=L,z=0;z<80;z++){var K,H,Y=l[z];if(z<16)H=Y.high=0|t[e+2*z],K=Y.low=0|t[e+2*z+1];else{var W=l[z-15],Z=W.high,X=W.low,J=(Z>>>1|X<<31)^(Z>>>8|X<<24)^Z>>>7,Q=(X>>>1|Z<<31)^(X>>>8|Z<<24)^(X>>>7|Z<<25),tt=l[z-2],et=tt.high,rt=tt.low,nt=(et>>>19|rt<<13)^(et<<3|rt>>>29)^et>>>6,ot=(rt>>>19|et<<13)^(rt<<3|et>>>29)^(rt>>>6|et<<26),it=l[z-7],at=it.high,ct=it.low,st=l[z-16],ut=st.high,lt=st.low;K=Q+ct,H=J+at+(K>>>0<Q>>>0?1:0),K+=ot,H=H+nt+(K>>>0<ot>>>0?1:0),K+=lt,H=H+ut+(K>>>0<lt>>>0?1:0),Y.high=H,Y.low=K}var ft=q&B^~q&$,ht=R&F^~R&V,pt=P&A^P&T^A&T,dt=N&C^N&I^C&I,yt=(P>>>28|N<<4)^(P<<30|N>>>2)^(P<<25|N>>>7),vt=(N>>>28|P<<4)^(N<<30|P>>>2)^(N<<25|P>>>7),mt=(q>>>14|R<<18)^(q>>>18|R<<14)^(q<<23|R>>>9),gt=(R>>>14|q<<18)^(R>>>18|q<<14)^(R<<23|q>>>9),bt=u[z],wt=bt.high,_t=bt.low,xt=G+gt,Ot=U+mt+(xt>>>0<G>>>0?1:0),kt=(xt=xt+ht,Ot=Ot+ft+(xt>>>0<ht>>>0?1:0),xt=xt+_t,Ot=Ot+wt+(xt>>>0<_t>>>0?1:0),xt=xt+K,Ot=Ot+H+(xt>>>0<K>>>0?1:0),vt+dt),Et=yt+pt+(kt>>>0<vt>>>0?1:0);U=$,G=V,$=B,V=F,B=q,F=R,R=D+xt|0,q=M+Ot+(R>>>0<D>>>0?1:0)|0,M=T,D=I,T=A,I=C,A=P,C=N,N=xt+kt|0,P=Ot+Et+(N>>>0<xt>>>0?1:0)|0}d=n.low=d+N,n.high=p+P+(d>>>0<N>>>0?1:0),v=o.low=v+C,o.high=y+A+(v>>>0<C>>>0?1:0),g=i.low=g+I,i.high=m+T+(g>>>0<I>>>0?1:0),w=a.low=w+D,a.high=b+M+(w>>>0<D>>>0?1:0),x=c.low=x+R,c.high=_+q+(x>>>0<R>>>0?1:0),k=s.low=k+F,s.high=O+B+(k>>>0<F>>>0?1:0),S=f.low=S+V,f.high=E+$+(S>>>0<V>>>0?1:0),L=h.low=L+G,h.high=j+U+(L>>>0<G>>>0?1:0)},_doFinalize:function(){var t=this._data,e=t.words,r=8*this._nDataBytes,n=8*t.sigBytes;e[n>>>5]|=128<<24-n%32,e[30+(n+128>>>10<<5)]=Math.floor(r/4294967296),e[31+(n+128>>>10<<5)]=r,t.sigBytes=4*e.length,this._process();var o=this._hash.toX32();return o},clone:function(){var t=n.clone.call(this);return t._hash=this._hash.clone(),t},blockSize:32});e.SHA512=n._createHelper(f),e.HmacSHA512=n._createHmacHelper(f)}(),t.SHA512}))},"690b":function(t,e,r){},"6b48":function(t,e,r){},7144:function(t,e,r){(function(e,n,o){t.exports=n(r("bf17"),r("f97e"),r("a638"),r("57eb"),r("023d"))})(0,(function(t){return function(){var e=t,r=e.lib,n=r.BlockCipher,o=e.algo,i=[],a=[],c=[],s=[],u=[],l=[],f=[],h=[],p=[],d=[];(function(){for(var t=[],e=0;e<256;e++)t[e]=e<128?e<<1:e<<1^283;var r=0,n=0;for(e=0;e<256;e++){var o=n^n<<1^n<<2^n<<3^n<<4;o=o>>>8^255&o^99,i[r]=o,a[o]=r;var y=t[r],v=t[y],m=t[v],g=257*t[o]^16843008*o;c[r]=g<<24|g>>>8,s[r]=g<<16|g>>>16,u[r]=g<<8|g>>>24,l[r]=g;g=16843009*m^65537*v^257*y^16843008*r;f[o]=g<<24|g>>>8,h[o]=g<<16|g>>>16,p[o]=g<<8|g>>>24,d[o]=g,r?(r=y^t[t[t[m^y]]],n^=t[t[n]]):r=n=1}})();var y=[0,1,2,4,8,16,32,64,128,27,54],v=o.AES=n.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var t=this._keyPriorReset=this._key,e=t.words,r=t.sigBytes/4,n=this._nRounds=r+6,o=4*(n+1),a=this._keySchedule=[],c=0;c<o;c++)c<r?a[c]=e[c]:(l=a[c-1],c%r?r>6&&c%r==4&&(l=i[l>>>24]<<24|i[l>>>16&255]<<16|i[l>>>8&255]<<8|i[255&l]):(l=l<<8|l>>>24,l=i[l>>>24]<<24|i[l>>>16&255]<<16|i[l>>>8&255]<<8|i[255&l],l^=y[c/r|0]<<24),a[c]=a[c-r]^l);for(var s=this._invKeySchedule=[],u=0;u<o;u++){c=o-u;if(u%4)var l=a[c];else l=a[c-4];s[u]=u<4||c<=4?l:f[i[l>>>24]]^h[i[l>>>16&255]]^p[i[l>>>8&255]]^d[i[255&l]]}}},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._keySchedule,c,s,u,l,i)},decryptBlock:function(t,e){var r=t[e+1];t[e+1]=t[e+3],t[e+3]=r,this._doCryptBlock(t,e,this._invKeySchedule,f,h,p,d,a);r=t[e+1];t[e+1]=t[e+3],t[e+3]=r},_doCryptBlock:function(t,e,r,n,o,i,a,c){for(var s=this._nRounds,u=t[e]^r[0],l=t[e+1]^r[1],f=t[e+2]^r[2],h=t[e+3]^r[3],p=4,d=1;d<s;d++){var y=n[u>>>24]^o[l>>>16&255]^i[f>>>8&255]^a[255&h]^r[p++],v=n[l>>>24]^o[f>>>16&255]^i[h>>>8&255]^a[255&u]^r[p++],m=n[f>>>24]^o[h>>>16&255]^i[u>>>8&255]^a[255&l]^r[p++],g=n[h>>>24]^o[u>>>16&255]^i[l>>>8&255]^a[255&f]^r[p++];u=y,l=v,f=m,h=g}y=(c[u>>>24]<<24|c[l>>>16&255]<<16|c[f>>>8&255]<<8|c[255&h])^r[p++],v=(c[l>>>24]<<24|c[f>>>16&255]<<16|c[h>>>8&255]<<8|c[255&u])^r[p++],m=(c[f>>>24]<<24|c[h>>>16&255]<<16|c[u>>>8&255]<<8|c[255&l])^r[p++],g=(c[h>>>24]<<24|c[u>>>16&255]<<16|c[l>>>8&255]<<8|c[255&f])^r[p++];t[e]=y,t[e+1]=v,t[e+2]=m,t[e+3]=g},keySize:8});e.AES=n._createHelper(v)}(),t.AES}))},"788a":function(t,e,r){(function(e){
|
|
10
10
|
/*!
|
|
11
11
|
* Quill Editor v1.3.7
|
|
12
12
|
* https://quilljs.com/
|
|
13
13
|
* Copyright (c) 2014, Jason Chen
|
|
14
14
|
* Copyright (c) 2013, salesforce.com
|
|
15
15
|
*/
|
|
16
|
-
(function(e,r){t.exports=r()})("undefined"!==typeof self&&self,(function(){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:n})},r.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=109)}([function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(17),o=r(18),i=r(19),a=r(45),c=r(46),s=r(47),u=r(48),l=r(49),f=r(12),h=r(32),p=r(33),d=r(31),y=r(1),v={Scope:y.Scope,create:y.create,find:y.find,query:y.query,register:y.register,Container:n.default,Format:o.default,Leaf:i.default,Embed:u.default,Scroll:a.default,Block:s.default,Inline:c.default,Text:l.default,Attributor:{Attribute:f.default,Class:h.default,Style:p.default,Store:d.default}};e.default=v},function(t,e,r){"use strict";var n=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(e){var r=this;return e="[Parchment] "+e,r=t.call(this,e)||this,r.message=e,r.name=r.constructor.name,r}return n(e,t),e}(Error);e.ParchmentError=o;var i,a={},c={},s={},u={};function l(t,e){var r=h(t);if(null==r)throw new o("Unable to create "+t+" blot");var n=r,i=t instanceof Node||t["nodeType"]===Node.TEXT_NODE?t:n.create(e);return new n(i,e)}function f(t,r){return void 0===r&&(r=!1),null==t?null:null!=t[e.DATA_KEY]?t[e.DATA_KEY].blot:r?f(t.parentNode,r):null}function h(t,e){var r;if(void 0===e&&(e=i.ANY),"string"===typeof t)r=u[t]||a[t];else if(t instanceof Text||t["nodeType"]===Node.TEXT_NODE)r=u["text"];else if("number"===typeof t)t&i.LEVEL&i.BLOCK?r=u["block"]:t&i.LEVEL&i.INLINE&&(r=u["inline"]);else if(t instanceof HTMLElement){var n=(t.getAttribute("class")||"").split(/\s+/);for(var o in n)if(r=c[n[o]],r)break;r=r||s[t.tagName]}return null==r?null:e&i.LEVEL&r.scope&&e&i.TYPE&r.scope?r:null}function p(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(t.length>1)return t.map((function(t){return p(t)}));var r=t[0];if("string"!==typeof r.blotName&&"string"!==typeof r.attrName)throw new o("Invalid definition");if("abstract"===r.blotName)throw new o("Cannot register abstract class");if(u[r.blotName||r.attrName]=r,"string"===typeof r.keyName)a[r.keyName]=r;else if(null!=r.className&&(c[r.className]=r),null!=r.tagName){Array.isArray(r.tagName)?r.tagName=r.tagName.map((function(t){return t.toUpperCase()})):r.tagName=r.tagName.toUpperCase();var n=Array.isArray(r.tagName)?r.tagName:[r.tagName];n.forEach((function(t){null!=s[t]&&null!=r.className||(s[t]=r)}))}return r}e.DATA_KEY="__blot",function(t){t[t["TYPE"]=3]="TYPE",t[t["LEVEL"]=12]="LEVEL",t[t["ATTRIBUTE"]=13]="ATTRIBUTE",t[t["BLOT"]=14]="BLOT",t[t["INLINE"]=7]="INLINE",t[t["BLOCK"]=11]="BLOCK",t[t["BLOCK_BLOT"]=10]="BLOCK_BLOT",t[t["INLINE_BLOT"]=6]="INLINE_BLOT",t[t["BLOCK_ATTRIBUTE"]=9]="BLOCK_ATTRIBUTE",t[t["INLINE_ATTRIBUTE"]=5]="INLINE_ATTRIBUTE",t[t["ANY"]=15]="ANY"}(i=e.Scope||(e.Scope={})),e.create=l,e.find=f,e.query=h,e.register=p},function(t,e,r){var n=r(51),o=r(11),i=r(3),a=r(20),c=String.fromCharCode(0),s=function(t){Array.isArray(t)?this.ops=t:null!=t&&Array.isArray(t.ops)?this.ops=t.ops:this.ops=[]};s.prototype.insert=function(t,e){var r={};return 0===t.length?this:(r.insert=t,null!=e&&"object"===typeof e&&Object.keys(e).length>0&&(r.attributes=e),this.push(r))},s.prototype["delete"]=function(t){return t<=0?this:this.push({delete:t})},s.prototype.retain=function(t,e){if(t<=0)return this;var r={retain:t};return null!=e&&"object"===typeof e&&Object.keys(e).length>0&&(r.attributes=e),this.push(r)},s.prototype.push=function(t){var e=this.ops.length,r=this.ops[e-1];if(t=i(!0,{},t),"object"===typeof r){if("number"===typeof t["delete"]&&"number"===typeof r["delete"])return this.ops[e-1]={delete:r["delete"]+t["delete"]},this;if("number"===typeof r["delete"]&&null!=t.insert&&(e-=1,r=this.ops[e-1],"object"!==typeof r))return this.ops.unshift(t),this;if(o(t.attributes,r.attributes)){if("string"===typeof t.insert&&"string"===typeof r.insert)return this.ops[e-1]={insert:r.insert+t.insert},"object"===typeof t.attributes&&(this.ops[e-1].attributes=t.attributes),this;if("number"===typeof t.retain&&"number"===typeof r.retain)return this.ops[e-1]={retain:r.retain+t.retain},"object"===typeof t.attributes&&(this.ops[e-1].attributes=t.attributes),this}}return e===this.ops.length?this.ops.push(t):this.ops.splice(e,0,t),this},s.prototype.chop=function(){var t=this.ops[this.ops.length-1];return t&&t.retain&&!t.attributes&&this.ops.pop(),this},s.prototype.filter=function(t){return this.ops.filter(t)},s.prototype.forEach=function(t){this.ops.forEach(t)},s.prototype.map=function(t){return this.ops.map(t)},s.prototype.partition=function(t){var e=[],r=[];return this.forEach((function(n){var o=t(n)?e:r;o.push(n)})),[e,r]},s.prototype.reduce=function(t,e){return this.ops.reduce(t,e)},s.prototype.changeLength=function(){return this.reduce((function(t,e){return e.insert?t+a.length(e):e.delete?t-e.delete:t}),0)},s.prototype.length=function(){return this.reduce((function(t,e){return t+a.length(e)}),0)},s.prototype.slice=function(t,e){t=t||0,"number"!==typeof e&&(e=1/0);var r=[],n=a.iterator(this.ops),o=0;while(o<e&&n.hasNext()){var i;o<t?i=n.next(t-o):(i=n.next(e-o),r.push(i)),o+=a.length(i)}return new s(r)},s.prototype.compose=function(t){var e=a.iterator(this.ops),r=a.iterator(t.ops),n=[],i=r.peek();if(null!=i&&"number"===typeof i.retain&&null==i.attributes){var c=i.retain;while("insert"===e.peekType()&&e.peekLength()<=c)c-=e.peekLength(),n.push(e.next());i.retain-c>0&&r.next(i.retain-c)}var u=new s(n);while(e.hasNext()||r.hasNext())if("insert"===r.peekType())u.push(r.next());else if("delete"===e.peekType())u.push(e.next());else{var l=Math.min(e.peekLength(),r.peekLength()),f=e.next(l),h=r.next(l);if("number"===typeof h.retain){var p={};"number"===typeof f.retain?p.retain=l:p.insert=f.insert;var d=a.attributes.compose(f.attributes,h.attributes,"number"===typeof f.retain);if(d&&(p.attributes=d),u.push(p),!r.hasNext()&&o(u.ops[u.ops.length-1],p)){var y=new s(e.rest());return u.concat(y).chop()}}else"number"===typeof h["delete"]&&"number"===typeof f.retain&&u.push(h)}return u.chop()},s.prototype.concat=function(t){var e=new s(this.ops.slice());return t.ops.length>0&&(e.push(t.ops[0]),e.ops=e.ops.concat(t.ops.slice(1))),e},s.prototype.diff=function(t,e){if(this.ops===t.ops)return new s;var r=[this,t].map((function(e){return e.map((function(r){if(null!=r.insert)return"string"===typeof r.insert?r.insert:c;var n=e===t?"on":"with";throw new Error("diff() called "+n+" non-document")})).join("")})),i=new s,u=n(r[0],r[1],e),l=a.iterator(this.ops),f=a.iterator(t.ops);return u.forEach((function(t){var e=t[1].length;while(e>0){var r=0;switch(t[0]){case n.INSERT:r=Math.min(f.peekLength(),e),i.push(f.next(r));break;case n.DELETE:r=Math.min(e,l.peekLength()),l.next(r),i["delete"](r);break;case n.EQUAL:r=Math.min(l.peekLength(),f.peekLength(),e);var c=l.next(r),s=f.next(r);o(c.insert,s.insert)?i.retain(r,a.attributes.diff(c.attributes,s.attributes)):i.push(s)["delete"](r);break}e-=r}})),i.chop()},s.prototype.eachLine=function(t,e){e=e||"\n";var r=a.iterator(this.ops),n=new s,o=0;while(r.hasNext()){if("insert"!==r.peekType())return;var i=r.peek(),c=a.length(i)-r.peekLength(),u="string"===typeof i.insert?i.insert.indexOf(e,c)-c:-1;if(u<0)n.push(r.next());else if(u>0)n.push(r.next(u));else{if(!1===t(n,r.next(1).attributes||{},o))return;o+=1,n=new s}}n.length()>0&&t(n,{},o)},s.prototype.transform=function(t,e){if(e=!!e,"number"===typeof t)return this.transformPosition(t,e);var r=a.iterator(this.ops),n=a.iterator(t.ops),o=new s;while(r.hasNext()||n.hasNext())if("insert"!==r.peekType()||!e&&"insert"===n.peekType())if("insert"===n.peekType())o.push(n.next());else{var i=Math.min(r.peekLength(),n.peekLength()),c=r.next(i),u=n.next(i);if(c["delete"])continue;u["delete"]?o.push(u):o.retain(i,a.attributes.transform(c.attributes,u.attributes,e))}else o.retain(a.length(r.next()));return o.chop()},s.prototype.transformPosition=function(t,e){e=!!e;var r=a.iterator(this.ops),n=0;while(r.hasNext()&&n<=t){var o=r.peekLength(),i=r.peekType();r.next(),"delete"!==i?("insert"===i&&(n<t||!e)&&(t+=o),n+=o):t-=Math.min(o,t-n)}return t},t.exports=s},function(t,e){"use strict";var r=Object.prototype.hasOwnProperty,n=Object.prototype.toString,o=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=function(t){return"function"===typeof Array.isArray?Array.isArray(t):"[object Array]"===n.call(t)},c=function(t){if(!t||"[object Object]"!==n.call(t))return!1;var e,o=r.call(t,"constructor"),i=t.constructor&&t.constructor.prototype&&r.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!o&&!i)return!1;for(e in t);return"undefined"===typeof e||r.call(t,e)},s=function(t,e){o&&"__proto__"===e.name?o(t,e.name,{enumerable:!0,configurable:!0,value:e.newValue,writable:!0}):t[e.name]=e.newValue},u=function(t,e){if("__proto__"===e){if(!r.call(t,e))return;if(i)return i(t,e).value}return t[e]};t.exports=function t(){var e,r,n,o,i,l,f=arguments[0],h=1,p=arguments.length,d=!1;for("boolean"===typeof f&&(d=f,f=arguments[1]||{},h=2),(null==f||"object"!==typeof f&&"function"!==typeof f)&&(f={});h<p;++h)if(e=arguments[h],null!=e)for(r in e)n=u(f,r),o=u(e,r),f!==o&&(d&&o&&(c(o)||(i=a(o)))?(i?(i=!1,l=n&&a(n)?n:[]):l=n&&c(n)?n:{},s(f,{name:r,newValue:t(d,l,o)})):"undefined"!==typeof o&&s(f,{name:r,newValue:o}));return f}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.BlockEmbed=e.bubbleFormats=void 0;var n=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),o=function t(e,r,n){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,r);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,r,n)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(n):void 0},i=r(3),a=m(i),c=r(2),s=m(c),u=r(0),l=m(u),f=r(16),h=m(f),p=r(6),d=m(p),y=r(7),v=m(y);function m(t){return t&&t.__esModule?t:{default:t}}function g(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function b(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function w(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var _=1,x=function(t){function e(){return g(this,e),b(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return w(e,t),n(e,[{key:"attach",value:function(){o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"attach",this).call(this),this.attributes=new l.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return(new s.default).insert(this.value(),(0,a.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(t,e){var r=l.default.query(t,l.default.Scope.BLOCK_ATTRIBUTE);null!=r&&this.attributes.attribute(r,e)}},{key:"formatAt",value:function(t,e,r,n){this.format(r,n)}},{key:"insertAt",value:function(t,r,n){if("string"===typeof r&&r.endsWith("\n")){var i=l.default.create(O.blotName);this.parent.insertBefore(i,0===t?this:this.next),i.insertAt(0,r.slice(0,-1))}else o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertAt",this).call(this,t,r,n)}}]),e}(l.default.Embed);x.scope=l.default.Scope.BLOCK_BLOT;var O=function(t){function e(t){g(this,e);var r=b(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return r.cache={},r}return w(e,t),n(e,[{key:"delta",value:function(){return null==this.cache.delta&&(this.cache.delta=this.descendants(l.default.Leaf).reduce((function(t,e){return 0===e.length()?t:t.insert(e.value(),k(e))}),new s.default).insert("\n",k(this))),this.cache.delta}},{key:"deleteAt",value:function(t,r){o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"deleteAt",this).call(this,t,r),this.cache={}}},{key:"formatAt",value:function(t,r,n,i){r<=0||(l.default.query(n,l.default.Scope.BLOCK)?t+r===this.length()&&this.format(n,i):o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"formatAt",this).call(this,t,Math.min(r,this.length()-t-1),n,i),this.cache={})}},{key:"insertAt",value:function(t,r,n){if(null!=n)return o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertAt",this).call(this,t,r,n);if(0!==r.length){var i=r.split("\n"),a=i.shift();a.length>0&&(t<this.length()-1||null==this.children.tail?o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertAt",this).call(this,Math.min(t,this.length()-1),a):this.children.tail.insertAt(this.children.tail.length(),a),this.cache={});var c=this;i.reduce((function(t,e){return c=c.split(t,!0),c.insertAt(0,e),e.length}),t+a.length)}}},{key:"insertBefore",value:function(t,r){var n=this.children.head;o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertBefore",this).call(this,t,r),n instanceof h.default&&n.remove(),this.cache={}}},{key:"length",value:function(){return null==this.cache.length&&(this.cache.length=o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"length",this).call(this)+_),this.cache.length}},{key:"moveChildren",value:function(t,r){o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"moveChildren",this).call(this,t,r),this.cache={}}},{key:"optimize",value:function(t){o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t),this.cache={}}},{key:"path",value:function(t){return o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"path",this).call(this,t,!0)}},{key:"removeChild",value:function(t){o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"removeChild",this).call(this,t),this.cache={}}},{key:"split",value:function(t){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(r&&(0===t||t>=this.length()-_)){var n=this.clone();return 0===t?(this.parent.insertBefore(n,this),this):(this.parent.insertBefore(n,this.next),n)}var i=o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"split",this).call(this,t,r);return this.cache={},i}}]),e}(l.default.Block);function k(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null==t?e:("function"===typeof t.formats&&(e=(0,a.default)(e,t.formats())),null==t.parent||"scroll"==t.parent.blotName||t.parent.statics.scope!==t.statics.scope?e:k(t.parent,e))}O.blotName="block",O.tagName="P",O.defaultChild="break",O.allowedChildren=[d.default,l.default.Embed,v.default],e.bubbleFormats=k,e.BlockEmbed=x,e.default=O},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.overload=e.expandConfig=void 0;var n="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=function(){function t(t,e){var r=[],n=!0,o=!1,i=void 0;try{for(var a,c=t[Symbol.iterator]();!(n=(a=c.next()).done);n=!0)if(r.push(a.value),e&&r.length===e)break}catch(s){o=!0,i=s}finally{try{!n&&c["return"]&&c["return"]()}finally{if(o)throw i}}return r}return function(e,r){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}();r(50);var a=r(2),c=k(a),s=r(14),u=k(s),l=r(8),f=k(l),h=r(9),p=k(h),d=r(0),y=k(d),v=r(15),m=k(v),g=r(3),b=k(g),w=r(10),_=k(w),x=r(34),O=k(x);function k(t){return t&&t.__esModule?t:{default:t}}function E(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function S(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var j=(0,_.default)("quill"),L=function(){function t(e){var r=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(S(this,t),this.options=P(e,n),this.container=this.options.container,null==this.container)return j.error("Invalid Quill container",e);this.options.debug&&t.debug(this.options.debug);var o=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new f.default,this.scroll=y.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new u.default(this.scroll),this.selection=new m.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(f.default.events.EDITOR_CHANGE,(function(t){t===f.default.events.TEXT_CHANGE&&r.root.classList.toggle("ql-blank",r.editor.isBlank())})),this.emitter.on(f.default.events.SCROLL_UPDATE,(function(t,e){var n=r.selection.lastRange,o=n&&0===n.length?n.index:void 0;N.call(r,(function(){return r.editor.update(null,e,o)}),t)}));var i=this.clipboard.convert("<div class='ql-editor' style=\"white-space: normal;\">"+o+"<p><br></p></div>");this.setContents(i),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return i(t,null,[{key:"debug",value:function(t){!0===t&&(t="log"),_.default.level(t)}},{key:"find",value:function(t){return t.__quill||y.default.find(t)}},{key:"import",value:function(t){return null==this.imports[t]&&j.error("Cannot import "+t+". Are you sure it was registered?"),this.imports[t]}},{key:"register",value:function(t,e){var r=this,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("string"!==typeof t){var o=t.attrName||t.blotName;"string"===typeof o?this.register("formats/"+o,t,e):Object.keys(t).forEach((function(n){r.register(n,t[n],e)}))}else null==this.imports[t]||n||j.warn("Overwriting "+t+" with",e),this.imports[t]=e,(t.startsWith("blots/")||t.startsWith("formats/"))&&"abstract"!==e.blotName?y.default.register(e):t.startsWith("modules")&&"function"===typeof e.register&&e.register()}}]),i(t,[{key:"addContainer",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"===typeof t){var r=t;t=document.createElement("div"),t.classList.add(r)}return this.container.insertBefore(t,e),t}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(t,e,r){var n=this,i=A(t,e,r),a=o(i,4);return t=a[0],e=a[1],r=a[3],N.call(this,(function(){return n.editor.deleteText(t,e)}),r,t,-1*e)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(t),this.container.classList.toggle("ql-disabled",!t)}},{key:"focus",value:function(){var t=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=t,this.scrollIntoView()}},{key:"format",value:function(t,e){var r=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:f.default.sources.API;return N.call(this,(function(){var n=r.getSelection(!0),o=new c.default;if(null==n)return o;if(y.default.query(t,y.default.Scope.BLOCK))o=r.editor.formatLine(n.index,n.length,E({},t,e));else{if(0===n.length)return r.selection.format(t,e),o;o=r.editor.formatText(n.index,n.length,E({},t,e))}return r.setSelection(n,f.default.sources.SILENT),o}),n)}},{key:"formatLine",value:function(t,e,r,n,i){var a=this,c=void 0,s=A(t,e,r,n,i),u=o(s,4);return t=u[0],e=u[1],c=u[2],i=u[3],N.call(this,(function(){return a.editor.formatLine(t,e,c)}),i,t,0)}},{key:"formatText",value:function(t,e,r,n,i){var a=this,c=void 0,s=A(t,e,r,n,i),u=o(s,4);return t=u[0],e=u[1],c=u[2],i=u[3],N.call(this,(function(){return a.editor.formatText(t,e,c)}),i,t,0)}},{key:"getBounds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=void 0;r="number"===typeof t?this.selection.getBounds(t,e):this.selection.getBounds(t.index,t.length);var n=this.container.getBoundingClientRect();return{bottom:r.bottom-n.top,height:r.height,left:r.left-n.left,right:r.right-n.left,top:r.top-n.top,width:r.width}}},{key:"getContents",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-t,r=A(t,e),n=o(r,2);return t=n[0],e=n[1],this.editor.getContents(t,e)}},{key:"getFormat",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0),e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"number"===typeof t?this.editor.getFormat(t,e):this.editor.getFormat(t.index,t.length)}},{key:"getIndex",value:function(t){return t.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(t){return this.scroll.leaf(t)}},{key:"getLine",value:function(t){return this.scroll.line(t)}},{key:"getLines",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!==typeof t?this.scroll.lines(t.index,t.length):this.scroll.lines(t,e)}},{key:"getModule",value:function(t){return this.theme.modules[t]}},{key:"getSelection",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return t&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-t,r=A(t,e),n=o(r,2);return t=n[0],e=n[1],this.editor.getText(t,e)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(e,r,n){var o=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t.sources.API;return N.call(this,(function(){return o.editor.insertEmbed(e,r,n)}),i,e)}},{key:"insertText",value:function(t,e,r,n,i){var a=this,c=void 0,s=A(t,0,r,n,i),u=o(s,4);return t=u[0],c=u[2],i=u[3],N.call(this,(function(){return a.editor.insertText(t,e,c)}),i,t,e.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(t,e,r){this.clipboard.dangerouslyPasteHTML(t,e,r)}},{key:"removeFormat",value:function(t,e,r){var n=this,i=A(t,e,r),a=o(i,4);return t=a[0],e=a[1],r=a[3],N.call(this,(function(){return n.editor.removeFormat(t,e)}),r,t)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(t){var e=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.default.sources.API;return N.call(this,(function(){t=new c.default(t);var r=e.getLength(),n=e.editor.deleteText(0,r),o=e.editor.applyDelta(t),i=o.ops[o.ops.length-1];null!=i&&"string"===typeof i.insert&&"\n"===i.insert[i.insert.length-1]&&(e.editor.deleteText(e.getLength()-1,1),o.delete(1));var a=n.compose(o);return a}),r)}},{key:"setSelection",value:function(e,r,n){if(null==e)this.selection.setRange(null,r||t.sources.API);else{var i=A(e,r,n),a=o(i,4);e=a[0],r=a[1],n=a[3],this.selection.setRange(new v.Range(e,r),n),n!==f.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.default.sources.API,r=(new c.default).insert(t);return this.setContents(r,e)}},{key:"update",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f.default.sources.USER,e=this.scroll.update(t);return this.selection.update(t),e}},{key:"updateContents",value:function(t){var e=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.default.sources.API;return N.call(this,(function(){return t=new c.default(t),e.editor.applyDelta(t,r)}),r,!0)}}]),t}();function P(t,e){if(e=(0,b.default)(!0,{container:t,modules:{clipboard:!0,keyboard:!0,history:!0}},e),e.theme&&e.theme!==L.DEFAULTS.theme){if(e.theme=L.import("themes/"+e.theme),null==e.theme)throw new Error("Invalid theme "+e.theme+". Did you register it?")}else e.theme=O.default;var r=(0,b.default)(!0,{},e.theme.DEFAULTS);[r,e].forEach((function(t){t.modules=t.modules||{},Object.keys(t.modules).forEach((function(e){!0===t.modules[e]&&(t.modules[e]={})}))}));var n=Object.keys(r.modules).concat(Object.keys(e.modules)),o=n.reduce((function(t,e){var r=L.import("modules/"+e);return null==r?j.error("Cannot load "+e+" module. Are you sure you registered it?"):t[e]=r.DEFAULTS||{},t}),{});return null!=e.modules&&e.modules.toolbar&&e.modules.toolbar.constructor!==Object&&(e.modules.toolbar={container:e.modules.toolbar}),e=(0,b.default)(!0,{},L.DEFAULTS,{modules:o},r,e),["bounds","container","scrollingContainer"].forEach((function(t){"string"===typeof e[t]&&(e[t]=document.querySelector(e[t]))})),e.modules=Object.keys(e.modules).reduce((function(t,r){return e.modules[r]&&(t[r]=e.modules[r]),t}),{}),e}function N(t,e,r,n){if(this.options.strict&&!this.isEnabled()&&e===f.default.sources.USER)return new c.default;var o=null==r?null:this.getSelection(),i=this.editor.delta,a=t();if(null!=o&&(!0===r&&(r=o.index),null==n?o=T(o,a,e):0!==n&&(o=T(o,r,n,e)),this.setSelection(o,f.default.sources.SILENT)),a.length()>0){var s,u,l=[f.default.events.TEXT_CHANGE,a,i,e];if((s=this.emitter).emit.apply(s,[f.default.events.EDITOR_CHANGE].concat(l)),e!==f.default.sources.SILENT)(u=this.emitter).emit.apply(u,l)}return a}function A(t,e,r,o,i){var a={};return"number"===typeof t.index&&"number"===typeof t.length?"number"!==typeof e?(i=o,o=r,r=e,e=t.length,t=t.index):(e=t.length,t=t.index):"number"!==typeof e&&(i=o,o=r,r=e,e=0),"object"===("undefined"===typeof r?"undefined":n(r))?(a=r,i=o):"string"===typeof r&&(null!=o?a[r]=o:i=r),i=i||f.default.sources.API,[t,e,a,i]}function T(t,e,r,n){if(null==t)return null;var i=void 0,a=void 0;if(e instanceof c.default){var s=[t.index,t.index+t.length].map((function(t){return e.transformPosition(t,n!==f.default.sources.USER)})),u=o(s,2);i=u[0],a=u[1]}else{var l=[t.index,t.index+t.length].map((function(t){return t<e||t===e&&n===f.default.sources.USER?t:r>=0?t+r:Math.max(e,t+r)})),h=o(l,2);i=h[0],a=h[1]}return new v.Range(i,a-i)}L.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},L.events=f.default.events,L.sources=f.default.sources,L.version="1.3.7",L.imports={delta:c.default,parchment:y.default,"core/module":p.default,"core/theme":O.default},e.expandConfig=P,e.overload=A,e.default=L},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),o=function t(e,r,n){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,r);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,r,n)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(n):void 0},i=r(7),a=u(i),c=r(0),s=u(c);function u(t){return t&&t.__esModule?t:{default:t}}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function f(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function h(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var p=function(t){function e(){return l(this,e),f(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return h(e,t),n(e,[{key:"formatAt",value:function(t,r,n,i){if(e.compare(this.statics.blotName,n)<0&&s.default.query(n,s.default.Scope.BLOT)){var a=this.isolate(t,r);i&&a.wrap(n,i)}else o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"formatAt",this).call(this,t,r,n,i)}},{key:"optimize",value:function(t){if(o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t),this.parent instanceof e&&e.compare(this.statics.blotName,this.parent.statics.blotName)>0){var r=this.parent.isolate(this.offset(),this.length());this.moveChildren(r),r.wrap(this)}}}],[{key:"compare",value:function(t,r){var n=e.order.indexOf(t),o=e.order.indexOf(r);return n>=0||o>=0?n-o:t===r?0:t<r?-1:1}}]),e}(s.default.Inline);p.allowedChildren=[p,s.default.Embed,a.default],p.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],e.default=p},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),o=i(n);function i(t){return t&&t.__esModule?t:{default:t}}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function s(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var u=function(t){function e(){return a(this,e),c(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return s(e,t),e}(o.default.Text);e.default=u},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),o=function t(e,r,n){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,r);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,r,n)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(n):void 0},i=r(54),a=u(i),c=r(10),s=u(c);function u(t){return t&&t.__esModule?t:{default:t}}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function f(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function h(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var p=(0,s.default)("quill:events"),d=["selectionchange","mousedown","mouseup","click"];d.forEach((function(t){document.addEventListener(t,(function(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];[].slice.call(document.querySelectorAll(".ql-container")).forEach((function(t){var r;t.__quill&&t.__quill.emitter&&(r=t.__quill.emitter).handleDOM.apply(r,e)}))}))}));var y=function(t){function e(){l(this,e);var t=f(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return t.listeners={},t.on("error",p.error),t}return h(e,t),n(e,[{key:"emit",value:function(){p.log.apply(p,arguments),o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(t){for(var e=arguments.length,r=Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];(this.listeners[t.type]||[]).forEach((function(e){var n=e.node,o=e.handler;(t.target===n||n.contains(t.target))&&o.apply(void 0,[t].concat(r))}))}},{key:"listenDOM",value:function(t,e,r){this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push({node:e,handler:r})}}]),e}(a.default);y.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},y.sources={API:"api",SILENT:"silent",USER:"user"},e.default=y},function(t,e,r){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var o=function t(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n(this,t),this.quill=e,this.options=r};o.DEFAULTS={},e.default=o},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=["error","warn","log","info"],o="warn";function i(t){if(n.indexOf(t)<=n.indexOf(o)){for(var e,r=arguments.length,i=Array(r>1?r-1:0),a=1;a<r;a++)i[a-1]=arguments[a];(e=console)[t].apply(e,i)}}function a(t){return n.reduce((function(e,r){return e[r]=i.bind(console,r,t),e}),{})}i.level=a.level=function(t){o=t},e.default=a},function(t,e,r){var n=Array.prototype.slice,o=r(52),i=r(53),a=t.exports=function(t,e,r){return r||(r={}),t===e||(t instanceof Date&&e instanceof Date?t.getTime()===e.getTime():!t||!e||"object"!=typeof t&&"object"!=typeof e?r.strict?t===e:t==e:u(t,e,r))};function c(t){return null===t||void 0===t}function s(t){return!(!t||"object"!==typeof t||"number"!==typeof t.length)&&("function"===typeof t.copy&&"function"===typeof t.slice&&!(t.length>0&&"number"!==typeof t[0]))}function u(t,e,r){var u,l;if(c(t)||c(e))return!1;if(t.prototype!==e.prototype)return!1;if(i(t))return!!i(e)&&(t=n.call(t),e=n.call(e),a(t,e,r));if(s(t)){if(!s(e))return!1;if(t.length!==e.length)return!1;for(u=0;u<t.length;u++)if(t[u]!==e[u])return!1;return!0}try{var f=o(t),h=o(e)}catch(p){return!1}if(f.length!=h.length)return!1;for(f.sort(),h.sort(),u=f.length-1;u>=0;u--)if(f[u]!=h[u])return!1;for(u=f.length-1;u>=0;u--)if(l=f[u],!a(t[l],e[l],r))return!1;return typeof t===typeof e}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(1),o=function(){function t(t,e,r){void 0===r&&(r={}),this.attrName=t,this.keyName=e;var o=n.Scope.TYPE&n.Scope.ATTRIBUTE;null!=r.scope?this.scope=r.scope&n.Scope.LEVEL|o:this.scope=n.Scope.ATTRIBUTE,null!=r.whitelist&&(this.whitelist=r.whitelist)}return t.keys=function(t){return[].map.call(t.attributes,(function(t){return t.name}))},t.prototype.add=function(t,e){return!!this.canAdd(t,e)&&(t.setAttribute(this.keyName,e),!0)},t.prototype.canAdd=function(t,e){var r=n.query(t,n.Scope.BLOT&(this.scope|n.Scope.TYPE));return null!=r&&(null==this.whitelist||("string"===typeof e?this.whitelist.indexOf(e.replace(/["']/g,""))>-1:this.whitelist.indexOf(e)>-1))},t.prototype.remove=function(t){t.removeAttribute(this.keyName)},t.prototype.value=function(t){var e=t.getAttribute(this.keyName);return this.canAdd(t,e)&&e?e:""},t}();e.default=o},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.Code=void 0;var n=function(){function t(t,e){var r=[],n=!0,o=!1,i=void 0;try{for(var a,c=t[Symbol.iterator]();!(n=(a=c.next()).done);n=!0)if(r.push(a.value),e&&r.length===e)break}catch(s){o=!0,i=s}finally{try{!n&&c["return"]&&c["return"]()}finally{if(o)throw i}}return r}return function(e,r){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),i=function t(e,r,n){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,r);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,r,n)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(n):void 0},a=r(2),c=v(a),s=r(0),u=v(s),l=r(4),f=v(l),h=r(6),p=v(h),d=r(7),y=v(d);function v(t){return t&&t.__esModule?t:{default:t}}function m(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function g(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function b(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var w=function(t){function e(){return m(this,e),g(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return b(e,t),e}(p.default);w.blotName="code",w.tagName="CODE";var _=function(t){function e(){return m(this,e),g(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return b(e,t),o(e,[{key:"delta",value:function(){var t=this,e=this.domNode.textContent;return e.endsWith("\n")&&(e=e.slice(0,-1)),e.split("\n").reduce((function(e,r){return e.insert(r).insert("\n",t.formats())}),new c.default)}},{key:"format",value:function(t,r){if(t!==this.statics.blotName||!r){var o=this.descendant(y.default,this.length()-1),a=n(o,1),c=a[0];null!=c&&c.deleteAt(c.length()-1,1),i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,r)}}},{key:"formatAt",value:function(t,r,n,o){if(0!==r&&null!=u.default.query(n,u.default.Scope.BLOCK)&&(n!==this.statics.blotName||o!==this.statics.formats(this.domNode))){var i=this.newlineIndex(t);if(!(i<0||i>=t+r)){var a=this.newlineIndex(t,!0)+1,c=i-a+1,s=this.isolate(a,c),l=s.next;s.format(n,o),l instanceof e&&l.formatAt(0,t-a+r-c,n,o)}}}},{key:"insertAt",value:function(t,e,r){if(null==r){var o=this.descendant(y.default,t),i=n(o,2),a=i[0],c=i[1];a.insertAt(c,e)}}},{key:"length",value:function(){var t=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?t:t+1}},{key:"newlineIndex",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e)return this.domNode.textContent.slice(0,t).lastIndexOf("\n");var r=this.domNode.textContent.slice(t).indexOf("\n");return r>-1?t+r:-1}},{key:"optimize",value:function(t){this.domNode.textContent.endsWith("\n")||this.appendChild(u.default.create("text","\n")),i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t);var r=this.next;null!=r&&r.prev===this&&r.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===r.statics.formats(r.domNode)&&(r.optimize(t),r.moveChildren(this),r.remove())}},{key:"replace",value:function(t){i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replace",this).call(this,t),[].slice.call(this.domNode.querySelectorAll("*")).forEach((function(t){var e=u.default.find(t);null==e?t.parentNode.removeChild(t):e instanceof u.default.Embed?e.remove():e.unwrap()}))}}],[{key:"create",value:function(t){var r=i(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return r.setAttribute("spellcheck",!1),r}},{key:"formats",value:function(){return!0}}]),e}(f.default);_.blotName="code-block",_.tagName="PRE",_.TAB=" ",e.Code=w,e.default=_},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=function(){function t(t,e){var r=[],n=!0,o=!1,i=void 0;try{for(var a,c=t[Symbol.iterator]();!(n=(a=c.next()).done);n=!0)if(r.push(a.value),e&&r.length===e)break}catch(s){o=!0,i=s}finally{try{!n&&c["return"]&&c["return"]()}finally{if(o)throw i}}return r}return function(e,r){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),a=r(2),c=S(a),s=r(20),u=S(s),l=r(0),f=S(l),h=r(13),p=S(h),d=r(24),y=S(d),v=r(4),m=S(v),g=r(16),b=S(g),w=r(21),_=S(w),x=r(11),O=S(x),k=r(3),E=S(k);function S(t){return t&&t.__esModule?t:{default:t}}function j(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function L(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var P=/^[ -~]*$/,N=function(){function t(e){L(this,t),this.scroll=e,this.delta=this.getDelta()}return i(t,[{key:"applyDelta",value:function(t){var e=this,r=!1;this.scroll.update();var i=this.scroll.length();return this.scroll.batchStart(),t=T(t),t.reduce((function(t,a){var c=a.retain||a.delete||a.insert.length||1,s=a.attributes||{};if(null!=a.insert){if("string"===typeof a.insert){var l=a.insert;l.endsWith("\n")&&r&&(r=!1,l=l.slice(0,-1)),t>=i&&!l.endsWith("\n")&&(r=!0),e.scroll.insertAt(t,l);var h=e.scroll.line(t),p=o(h,2),d=p[0],y=p[1],g=(0,E.default)({},(0,v.bubbleFormats)(d));if(d instanceof m.default){var b=d.descendant(f.default.Leaf,y),w=o(b,1),_=w[0];g=(0,E.default)(g,(0,v.bubbleFormats)(_))}s=u.default.attributes.diff(g,s)||{}}else if("object"===n(a.insert)){var x=Object.keys(a.insert)[0];if(null==x)return t;e.scroll.insertAt(t,x,a.insert[x])}i+=c}return Object.keys(s).forEach((function(r){e.scroll.formatAt(t,c,r,s[r])})),t+c}),0),t.reduce((function(t,r){return"number"===typeof r.delete?(e.scroll.deleteAt(t,r.delete),t):t+(r.retain||r.insert.length||1)}),0),this.scroll.batchEnd(),this.update(t)}},{key:"deleteText",value:function(t,e){return this.scroll.deleteAt(t,e),this.update((new c.default).retain(t).delete(e))}},{key:"formatLine",value:function(t,e){var r=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.scroll.update(),Object.keys(n).forEach((function(o){if(null==r.scroll.whitelist||r.scroll.whitelist[o]){var i=r.scroll.lines(t,Math.max(e,1)),a=e;i.forEach((function(e){var i=e.length();if(e instanceof p.default){var c=t-e.offset(r.scroll),s=e.newlineIndex(c+a)-c+1;e.formatAt(c,s,o,n[o])}else e.format(o,n[o]);a-=i}))}})),this.scroll.optimize(),this.update((new c.default).retain(t).retain(e,(0,_.default)(n)))}},{key:"formatText",value:function(t,e){var r=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object.keys(n).forEach((function(o){r.scroll.formatAt(t,e,o,n[o])})),this.update((new c.default).retain(t).retain(e,(0,_.default)(n)))}},{key:"getContents",value:function(t,e){return this.delta.slice(t,t+e)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce((function(t,e){return t.concat(e.delta())}),new c.default)}},{key:"getFormat",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=[],n=[];0===e?this.scroll.path(t).forEach((function(t){var e=o(t,1),i=e[0];i instanceof m.default?r.push(i):i instanceof f.default.Leaf&&n.push(i)})):(r=this.scroll.lines(t,e),n=this.scroll.descendants(f.default.Leaf,t,e));var i=[r,n].map((function(t){if(0===t.length)return{};var e=(0,v.bubbleFormats)(t.shift());while(Object.keys(e).length>0){var r=t.shift();if(null==r)return e;e=A((0,v.bubbleFormats)(r),e)}return e}));return E.default.apply(E.default,i)}},{key:"getText",value:function(t,e){return this.getContents(t,e).filter((function(t){return"string"===typeof t.insert})).map((function(t){return t.insert})).join("")}},{key:"insertEmbed",value:function(t,e,r){return this.scroll.insertAt(t,e,r),this.update((new c.default).retain(t).insert(j({},e,r)))}},{key:"insertText",value:function(t,e){var r=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e=e.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(t,e),Object.keys(n).forEach((function(o){r.scroll.formatAt(t,e.length,o,n[o])})),this.update((new c.default).retain(t).insert(e,(0,_.default)(n)))}},{key:"isBlank",value:function(){if(0==this.scroll.children.length)return!0;if(this.scroll.children.length>1)return!1;var t=this.scroll.children.head;return t.statics.blotName===m.default.blotName&&(!(t.children.length>1)&&t.children.head instanceof b.default)}},{key:"removeFormat",value:function(t,e){var r=this.getText(t,e),n=this.scroll.line(t+e),i=o(n,2),a=i[0],s=i[1],u=0,l=new c.default;null!=a&&(u=a instanceof p.default?a.newlineIndex(s)-s+1:a.length()-s,l=a.delta().slice(s,s+u-1).insert("\n"));var f=this.getContents(t,e+u),h=f.diff((new c.default).insert(r).concat(l)),d=(new c.default).retain(t).concat(h);return this.applyDelta(d)}},{key:"update",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,n=this.delta;if(1===e.length&&"characterData"===e[0].type&&e[0].target.data.match(P)&&f.default.find(e[0].target)){var o=f.default.find(e[0].target),i=(0,v.bubbleFormats)(o),a=o.offset(this.scroll),s=e[0].oldValue.replace(y.default.CONTENTS,""),u=(new c.default).insert(s),l=(new c.default).insert(o.value()),h=(new c.default).retain(a).concat(u.diff(l,r));t=h.reduce((function(t,e){return e.insert?t.insert(e.insert,i):t.push(e)}),new c.default),this.delta=n.compose(t)}else this.delta=this.getDelta(),t&&(0,O.default)(n.compose(t),this.delta)||(t=n.diff(this.delta,r));return t}}]),t}();function A(t,e){return Object.keys(e).reduce((function(r,n){return null==t[n]||(e[n]===t[n]?r[n]=e[n]:Array.isArray(e[n])?e[n].indexOf(t[n])<0&&(r[n]=e[n].concat([t[n]])):r[n]=[e[n],t[n]]),r}),{})}function T(t){return t.reduce((function(t,e){if(1===e.insert){var r=(0,_.default)(e.attributes);return delete r["image"],t.insert({image:e.attributes.image},r)}if(null==e.attributes||!0!==e.attributes.list&&!0!==e.attributes.bullet||(e=(0,_.default)(e),e.attributes.list?e.attributes.list="ordered":(e.attributes.list="bullet",delete e.attributes.bullet)),"string"===typeof e.insert){var n=e.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n");return t.insert(n,e.attributes)}return t.push(e)}),new c.default)}e.default=N},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.Range=void 0;var n=function(){function t(t,e){var r=[],n=!0,o=!1,i=void 0;try{for(var a,c=t[Symbol.iterator]();!(n=(a=c.next()).done);n=!0)if(r.push(a.value),e&&r.length===e)break}catch(s){o=!0,i=s}finally{try{!n&&c["return"]&&c["return"]()}finally{if(o)throw i}}return r}return function(e,r){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),i=r(0),a=y(i),c=r(21),s=y(c),u=r(11),l=y(u),f=r(8),h=y(f),p=r(10),d=y(p);function y(t){return t&&t.__esModule?t:{default:t}}function v(t){if(Array.isArray(t)){for(var e=0,r=Array(t.length);e<t.length;e++)r[e]=t[e];return r}return Array.from(t)}function m(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var g=(0,d.default)("quill:selection"),b=function t(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;m(this,t),this.index=e,this.length=r},w=function(){function t(e,r){var n=this;m(this,t),this.emitter=r,this.scroll=e,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=a.default.create("cursor",this),this.lastRange=this.savedRange=new b(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,(function(){n.mouseDown||setTimeout(n.update.bind(n,h.default.sources.USER),1)})),this.emitter.on(h.default.events.EDITOR_CHANGE,(function(t,e){t===h.default.events.TEXT_CHANGE&&e.length()>0&&n.update(h.default.sources.SILENT)})),this.emitter.on(h.default.events.SCROLL_BEFORE_UPDATE,(function(){if(n.hasFocus()){var t=n.getNativeRange();null!=t&&t.start.node!==n.cursor.textNode&&n.emitter.once(h.default.events.SCROLL_UPDATE,(function(){try{n.setNativeRange(t.start.node,t.start.offset,t.end.node,t.end.offset)}catch(e){}}))}})),this.emitter.on(h.default.events.SCROLL_OPTIMIZE,(function(t,e){if(e.range){var r=e.range,o=r.startNode,i=r.startOffset,a=r.endNode,c=r.endOffset;n.setNativeRange(o,i,a,c)}})),this.update(h.default.sources.SILENT)}return o(t,[{key:"handleComposition",value:function(){var t=this;this.root.addEventListener("compositionstart",(function(){t.composing=!0})),this.root.addEventListener("compositionend",(function(){if(t.composing=!1,t.cursor.parent){var e=t.cursor.restore();if(!e)return;setTimeout((function(){t.setNativeRange(e.startNode,e.startOffset,e.endNode,e.endOffset)}),1)}}))}},{key:"handleDragging",value:function(){var t=this;this.emitter.listenDOM("mousedown",document.body,(function(){t.mouseDown=!0})),this.emitter.listenDOM("mouseup",document.body,(function(){t.mouseDown=!1,t.update(h.default.sources.USER)}))}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(t,e){if(null==this.scroll.whitelist||this.scroll.whitelist[t]){this.scroll.update();var r=this.getNativeRange();if(null!=r&&r.native.collapsed&&!a.default.query(t,a.default.Scope.BLOCK)){if(r.start.node!==this.cursor.textNode){var n=a.default.find(r.start.node,!1);if(null==n)return;if(n instanceof a.default.Leaf){var o=n.split(r.start.offset);n.parent.insertBefore(this.cursor,o)}else n.insertBefore(this.cursor,r.start.node);this.cursor.attach()}this.cursor.format(t,e),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=this.scroll.length();t=Math.min(t,r-1),e=Math.min(t+e,r-1)-t;var o=void 0,i=this.scroll.leaf(t),a=n(i,2),c=a[0],s=a[1];if(null==c)return null;var u=c.position(s,!0),l=n(u,2);o=l[0],s=l[1];var f=document.createRange();if(e>0){f.setStart(o,s);var h=this.scroll.leaf(t+e),p=n(h,2);if(c=p[0],s=p[1],null==c)return null;var d=c.position(s,!0),y=n(d,2);return o=y[0],s=y[1],f.setEnd(o,s),f.getBoundingClientRect()}var v="left",m=void 0;return o instanceof Text?(s<o.data.length?(f.setStart(o,s),f.setEnd(o,s+1)):(f.setStart(o,s-1),f.setEnd(o,s),v="right"),m=f.getBoundingClientRect()):(m=c.domNode.getBoundingClientRect(),s>0&&(v="right")),{bottom:m.top+m.height,height:m.height,left:m[v],right:m[v],top:m.top,width:0}}},{key:"getNativeRange",value:function(){var t=document.getSelection();if(null==t||t.rangeCount<=0)return null;var e=t.getRangeAt(0);if(null==e)return null;var r=this.normalizeNative(e);return g.info("getNativeRange",r),r}},{key:"getRange",value:function(){var t=this.getNativeRange();if(null==t)return[null,null];var e=this.normalizedToRange(t);return[e,t]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(t){var e=this,r=[[t.start.node,t.start.offset]];t.native.collapsed||r.push([t.end.node,t.end.offset]);var o=r.map((function(t){var r=n(t,2),o=r[0],i=r[1],c=a.default.find(o,!0),s=c.offset(e.scroll);return 0===i?s:c instanceof a.default.Container?s+c.length():s+c.index(o,i)})),i=Math.min(Math.max.apply(Math,v(o)),this.scroll.length()-1),c=Math.min.apply(Math,[i].concat(v(o)));return new b(c,i-c)}},{key:"normalizeNative",value:function(t){if(!_(this.root,t.startContainer)||!t.collapsed&&!_(this.root,t.endContainer))return null;var e={start:{node:t.startContainer,offset:t.startOffset},end:{node:t.endContainer,offset:t.endOffset},native:t};return[e.start,e.end].forEach((function(t){var e=t.node,r=t.offset;while(!(e instanceof Text)&&e.childNodes.length>0)if(e.childNodes.length>r)e=e.childNodes[r],r=0;else{if(e.childNodes.length!==r)break;e=e.lastChild,r=e instanceof Text?e.data.length:e.childNodes.length+1}t.node=e,t.offset=r})),e}},{key:"rangeToNative",value:function(t){var e=this,r=t.collapsed?[t.index]:[t.index,t.index+t.length],o=[],i=this.scroll.length();return r.forEach((function(t,r){t=Math.min(i-1,t);var a=void 0,c=e.scroll.leaf(t),s=n(c,2),u=s[0],l=s[1],f=u.position(l,0!==r),h=n(f,2);a=h[0],l=h[1],o.push(a,l)})),o.length<2&&(o=o.concat(o)),o}},{key:"scrollIntoView",value:function(t){var e=this.lastRange;if(null!=e){var r=this.getBounds(e.index,e.length);if(null!=r){var o=this.scroll.length()-1,i=this.scroll.line(Math.min(e.index,o)),a=n(i,1),c=a[0],s=c;if(e.length>0){var u=this.scroll.line(Math.min(e.index+e.length,o)),l=n(u,1);s=l[0]}if(null!=c&&null!=s){var f=t.getBoundingClientRect();r.top<f.top?t.scrollTop-=f.top-r.top:r.bottom>f.bottom&&(t.scrollTop+=r.bottom-f.bottom)}}}}},{key:"setNativeRange",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(g.info("setNativeRange",t,e,r,n),null==t||null!=this.root.parentNode&&null!=t.parentNode&&null!=r.parentNode){var i=document.getSelection();if(null!=i)if(null!=t){this.hasFocus()||this.root.focus();var a=(this.getNativeRange()||{}).native;if(null==a||o||t!==a.startContainer||e!==a.startOffset||r!==a.endContainer||n!==a.endOffset){"BR"==t.tagName&&(e=[].indexOf.call(t.parentNode.childNodes,t),t=t.parentNode),"BR"==r.tagName&&(n=[].indexOf.call(r.parentNode.childNodes,r),r=r.parentNode);var c=document.createRange();c.setStart(t,e),c.setEnd(r,n),i.removeAllRanges(),i.addRange(c)}}else i.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:h.default.sources.API;if("string"===typeof e&&(r=e,e=!1),g.info("setRange",t),null!=t){var n=this.rangeToNative(t);this.setNativeRange.apply(this,v(n).concat([e]))}else this.setNativeRange(null);this.update(r)}},{key:"update",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h.default.sources.USER,e=this.lastRange,r=this.getRange(),o=n(r,2),i=o[0],a=o[1];if(this.lastRange=i,null!=this.lastRange&&(this.savedRange=this.lastRange),!(0,l.default)(e,this.lastRange)){var c;!this.composing&&null!=a&&a.native.collapsed&&a.start.node!==this.cursor.textNode&&this.cursor.restore();var u,f=[h.default.events.SELECTION_CHANGE,(0,s.default)(this.lastRange),(0,s.default)(e),t];if((c=this.emitter).emit.apply(c,[h.default.events.EDITOR_CHANGE].concat(f)),t!==h.default.sources.SILENT)(u=this.emitter).emit.apply(u,f)}}}]),t}();function _(t,e){try{e.parentNode}catch(r){return!1}return e instanceof Text&&(e=e.parentNode),t.contains(e)}e.Range=b,e.default=w},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),o=function t(e,r,n){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,r);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,r,n)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(n):void 0},i=r(0),a=c(i);function c(t){return t&&t.__esModule?t:{default:t}}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function l(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var f=function(t){function e(){return s(this,e),u(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return l(e,t),n(e,[{key:"insertInto",value:function(t,r){0===t.children.length?o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertInto",this).call(this,t,r):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),e}(a.default.Embed);f.blotName="break",f.tagName="BR",e.default=f},function(t,e,r){"use strict";var n=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=r(44),i=r(30),a=r(1),c=function(t){function e(e){var r=t.call(this,e)||this;return r.build(),r}return n(e,t),e.prototype.appendChild=function(t){this.insertBefore(t)},e.prototype.attach=function(){t.prototype.attach.call(this),this.children.forEach((function(t){t.attach()}))},e.prototype.build=function(){var t=this;this.children=new o.default,[].slice.call(this.domNode.childNodes).reverse().forEach((function(e){try{var r=s(e);t.insertBefore(r,t.children.head||void 0)}catch(n){if(n instanceof a.ParchmentError)return;throw n}}))},e.prototype.deleteAt=function(t,e){if(0===t&&e===this.length())return this.remove();this.children.forEachAt(t,e,(function(t,e,r){t.deleteAt(e,r)}))},e.prototype.descendant=function(t,r){var n=this.children.find(r),o=n[0],i=n[1];return null==t.blotName&&t(o)||null!=t.blotName&&o instanceof t?[o,i]:o instanceof e?o.descendant(t,i):[null,-1]},e.prototype.descendants=function(t,r,n){void 0===r&&(r=0),void 0===n&&(n=Number.MAX_VALUE);var o=[],i=n;return this.children.forEachAt(r,n,(function(r,n,a){(null==t.blotName&&t(r)||null!=t.blotName&&r instanceof t)&&o.push(r),r instanceof e&&(o=o.concat(r.descendants(t,n,i))),i-=a})),o},e.prototype.detach=function(){this.children.forEach((function(t){t.detach()})),t.prototype.detach.call(this)},e.prototype.formatAt=function(t,e,r,n){this.children.forEachAt(t,e,(function(t,e,o){t.formatAt(e,o,r,n)}))},e.prototype.insertAt=function(t,e,r){var n=this.children.find(t),o=n[0],i=n[1];if(o)o.insertAt(i,e,r);else{var c=null==r?a.create("text",e):a.create(e,r);this.appendChild(c)}},e.prototype.insertBefore=function(t,e){if(null!=this.statics.allowedChildren&&!this.statics.allowedChildren.some((function(e){return t instanceof e})))throw new a.ParchmentError("Cannot insert "+t.statics.blotName+" into "+this.statics.blotName);t.insertInto(this,e)},e.prototype.length=function(){return this.children.reduce((function(t,e){return t+e.length()}),0)},e.prototype.moveChildren=function(t,e){this.children.forEach((function(r){t.insertBefore(r,e)}))},e.prototype.optimize=function(e){if(t.prototype.optimize.call(this,e),0===this.children.length)if(null!=this.statics.defaultChild){var r=a.create(this.statics.defaultChild);this.appendChild(r),r.optimize(e)}else this.remove()},e.prototype.path=function(t,r){void 0===r&&(r=!1);var n=this.children.find(t,r),o=n[0],i=n[1],a=[[this,t]];return o instanceof e?a.concat(o.path(i,r)):(null!=o&&a.push([o,i]),a)},e.prototype.removeChild=function(t){this.children.remove(t)},e.prototype.replace=function(r){r instanceof e&&r.moveChildren(this),t.prototype.replace.call(this,r)},e.prototype.split=function(t,e){if(void 0===e&&(e=!1),!e){if(0===t)return this;if(t===this.length())return this.next}var r=this.clone();return this.parent.insertBefore(r,this.next),this.children.forEachAt(t,this.length(),(function(t,n,o){t=t.split(n,e),r.appendChild(t)})),r},e.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},e.prototype.update=function(t,e){var r=this,n=[],o=[];t.forEach((function(t){t.target===r.domNode&&"childList"===t.type&&(n.push.apply(n,t.addedNodes),o.push.apply(o,t.removedNodes))})),o.forEach((function(t){if(!(null!=t.parentNode&&"IFRAME"!==t.tagName&&document.body.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var e=a.find(t);null!=e&&(null!=e.domNode.parentNode&&e.domNode.parentNode!==r.domNode||e.detach())}})),n.filter((function(t){return t.parentNode==r.domNode})).sort((function(t,e){return t===e?0:t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1})).forEach((function(t){var e=null;null!=t.nextSibling&&(e=a.find(t.nextSibling));var n=s(t);n.next==e&&null!=n.next||(null!=n.parent&&n.parent.removeChild(r),r.insertBefore(n,e||void 0))}))},e}(i.default);function s(t){var e=a.find(t);if(null==e)try{e=a.create(t)}catch(r){e=a.create(a.Scope.INLINE),[].slice.call(t.childNodes).forEach((function(t){e.domNode.appendChild(t)})),t.parentNode&&t.parentNode.replaceChild(e.domNode,t),e.attach()}return e}e.default=c},function(t,e,r){"use strict";var n=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=r(12),i=r(31),a=r(17),c=r(1),s=function(t){function e(e){var r=t.call(this,e)||this;return r.attributes=new i.default(r.domNode),r}return n(e,t),e.formats=function(t){return"string"===typeof this.tagName||(Array.isArray(this.tagName)?t.tagName.toLowerCase():void 0)},e.prototype.format=function(t,e){var r=c.query(t);r instanceof o.default?this.attributes.attribute(r,e):e&&(null==r||t===this.statics.blotName&&this.formats()[t]===e||this.replaceWith(t,e))},e.prototype.formats=function(){var t=this.attributes.values(),e=this.statics.formats(this.domNode);return null!=e&&(t[this.statics.blotName]=e),t},e.prototype.replaceWith=function(e,r){var n=t.prototype.replaceWith.call(this,e,r);return this.attributes.copy(n),n},e.prototype.update=function(e,r){var n=this;t.prototype.update.call(this,e,r),e.some((function(t){return t.target===n.domNode&&"attributes"===t.type}))&&this.attributes.build()},e.prototype.wrap=function(r,n){var o=t.prototype.wrap.call(this,r,n);return o instanceof e&&o.statics.scope===this.statics.scope&&this.attributes.move(o),o},e}(a.default);e.default=s},function(t,e,r){"use strict";var n=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=r(30),i=r(1),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.value=function(t){return!0},e.prototype.index=function(t,e){return this.domNode===t||this.domNode.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(e,1):-1},e.prototype.position=function(t,e){var r=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return t>0&&(r+=1),[this.parent.domNode,r]},e.prototype.value=function(){var t;return t={},t[this.statics.blotName]=this.statics.value(this.domNode)||!0,t},e.scope=i.Scope.INLINE_BLOT,e}(o.default);e.default=a},function(t,e,r){var n=r(11),o=r(3),i={attributes:{compose:function(t,e,r){"object"!==typeof t&&(t={}),"object"!==typeof e&&(e={});var n=o(!0,{},e);for(var i in r||(n=Object.keys(n).reduce((function(t,e){return null!=n[e]&&(t[e]=n[e]),t}),{})),t)void 0!==t[i]&&void 0===e[i]&&(n[i]=t[i]);return Object.keys(n).length>0?n:void 0},diff:function(t,e){"object"!==typeof t&&(t={}),"object"!==typeof e&&(e={});var r=Object.keys(t).concat(Object.keys(e)).reduce((function(r,o){return n(t[o],e[o])||(r[o]=void 0===e[o]?null:e[o]),r}),{});return Object.keys(r).length>0?r:void 0},transform:function(t,e,r){if("object"!==typeof t)return e;if("object"===typeof e){if(!r)return e;var n=Object.keys(e).reduce((function(r,n){return void 0===t[n]&&(r[n]=e[n]),r}),{});return Object.keys(n).length>0?n:void 0}}},iterator:function(t){return new a(t)},length:function(t){return"number"===typeof t["delete"]?t["delete"]:"number"===typeof t.retain?t.retain:"string"===typeof t.insert?t.insert.length:1}};function a(t){this.ops=t,this.index=0,this.offset=0}a.prototype.hasNext=function(){return this.peekLength()<1/0},a.prototype.next=function(t){t||(t=1/0);var e=this.ops[this.index];if(e){var r=this.offset,n=i.length(e);if(t>=n-r?(t=n-r,this.index+=1,this.offset=0):this.offset+=t,"number"===typeof e["delete"])return{delete:t};var o={};return e.attributes&&(o.attributes=e.attributes),"number"===typeof e.retain?o.retain=t:"string"===typeof e.insert?o.insert=e.insert.substr(r,t):o.insert=e.insert,o}return{retain:1/0}},a.prototype.peek=function(){return this.ops[this.index]},a.prototype.peekLength=function(){return this.ops[this.index]?i.length(this.ops[this.index])-this.offset:1/0},a.prototype.peekType=function(){return this.ops[this.index]?"number"===typeof this.ops[this.index]["delete"]?"delete":"number"===typeof this.ops[this.index].retain?"retain":"insert":"retain"},a.prototype.rest=function(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);var t=this.offset,e=this.index,r=this.next(),n=this.ops.slice(this.index);return this.offset=t,this.index=e,[r].concat(n)}return[]},t.exports=i},function(t,r){var n=function(){"use strict";function t(t,e){return null!=e&&t instanceof e}var r,n,o;try{r=Map}catch(f){r=function(){}}try{n=Set}catch(f){n=function(){}}try{o=Promise}catch(f){o=function(){}}function i(a,c,s,u,f){"object"===typeof c&&(s=c.depth,u=c.prototype,f=c.includeNonEnumerable,c=c.circular);var h=[],p=[],d="undefined"!=typeof e;function y(a,s){if(null===a)return null;if(0===s)return a;var v,m;if("object"!=typeof a)return a;if(t(a,r))v=new r;else if(t(a,n))v=new n;else if(t(a,o))v=new o((function(t,e){a.then((function(e){t(y(e,s-1))}),(function(t){e(y(t,s-1))}))}));else if(i.__isArray(a))v=[];else if(i.__isRegExp(a))v=new RegExp(a.source,l(a)),a.lastIndex&&(v.lastIndex=a.lastIndex);else if(i.__isDate(a))v=new Date(a.getTime());else{if(d&&e.isBuffer(a))return v=e.allocUnsafe?e.allocUnsafe(a.length):new e(a.length),a.copy(v),v;t(a,Error)?v=Object.create(a):"undefined"==typeof u?(m=Object.getPrototypeOf(a),v=Object.create(m)):(v=Object.create(u),m=u)}if(c){var g=h.indexOf(a);if(-1!=g)return p[g];h.push(a),p.push(v)}for(var b in t(a,r)&&a.forEach((function(t,e){var r=y(e,s-1),n=y(t,s-1);v.set(r,n)})),t(a,n)&&a.forEach((function(t){var e=y(t,s-1);v.add(e)})),a){var w;m&&(w=Object.getOwnPropertyDescriptor(m,b)),w&&null==w.set||(v[b]=y(a[b],s-1))}if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(a);for(b=0;b<_.length;b++){var x=_[b],O=Object.getOwnPropertyDescriptor(a,x);(!O||O.enumerable||f)&&(v[x]=y(a[x],s-1),O.enumerable||Object.defineProperty(v,x,{enumerable:!1}))}}if(f){var k=Object.getOwnPropertyNames(a);for(b=0;b<k.length;b++){var E=k[b];O=Object.getOwnPropertyDescriptor(a,E);O&&O.enumerable||(v[E]=y(a[E],s-1),Object.defineProperty(v,E,{enumerable:!1}))}}return v}return"undefined"==typeof c&&(c=!0),"undefined"==typeof s&&(s=1/0),y(a,s)}function a(t){return Object.prototype.toString.call(t)}function c(t){return"object"===typeof t&&"[object Date]"===a(t)}function s(t){return"object"===typeof t&&"[object Array]"===a(t)}function u(t){return"object"===typeof t&&"[object RegExp]"===a(t)}function l(t){var e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),e}return i.clonePrototype=function(t){if(null===t)return null;var e=function(){};return e.prototype=t,new e},i.__objToStr=a,i.__isDate=c,i.__isArray=s,i.__isRegExp=u,i.__getRegExpFlags=l,i}();"object"===typeof t&&t.exports&&(t.exports=n)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){var r=[],n=!0,o=!1,i=void 0;try{for(var a,c=t[Symbol.iterator]();!(n=(a=c.next()).done);n=!0)if(r.push(a.value),e&&r.length===e)break}catch(s){o=!0,i=s}finally{try{!n&&c["return"]&&c["return"]()}finally{if(o)throw i}}return r}return function(e,r){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),i=function t(e,r,n){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,r);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,r,n)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(n):void 0},a=r(0),c=g(a),s=r(8),u=g(s),l=r(4),f=g(l),h=r(16),p=g(h),d=r(13),y=g(d),v=r(25),m=g(v);function g(t){return t&&t.__esModule?t:{default:t}}function b(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function w(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function _(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function x(t){return t instanceof f.default||t instanceof l.BlockEmbed}var O=function(t){function e(t,r){b(this,e);var n=w(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.emitter=r.emitter,Array.isArray(r.whitelist)&&(n.whitelist=r.whitelist.reduce((function(t,e){return t[e]=!0,t}),{})),n.domNode.addEventListener("DOMNodeInserted",(function(){})),n.optimize(),n.enable(),n}return _(e,t),o(e,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(t,r){var o=this.line(t),a=n(o,2),c=a[0],s=a[1],u=this.line(t+r),f=n(u,1),h=f[0];if(i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"deleteAt",this).call(this,t,r),null!=h&&c!==h&&s>0){if(c instanceof l.BlockEmbed||h instanceof l.BlockEmbed)return void this.optimize();if(c instanceof y.default){var d=c.newlineIndex(c.length(),!0);if(d>-1&&(c=c.split(d+1),c===h))return void this.optimize()}else if(h instanceof y.default){var v=h.newlineIndex(0);v>-1&&h.split(v+1)}var m=h.children.head instanceof p.default?null:h.children.head;c.moveChildren(h,m),c.remove()}this.optimize()}},{key:"enable",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.domNode.setAttribute("contenteditable",t)}},{key:"formatAt",value:function(t,r,n,o){(null==this.whitelist||this.whitelist[n])&&(i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"formatAt",this).call(this,t,r,n,o),this.optimize())}},{key:"insertAt",value:function(t,r,n){if(null==n||null==this.whitelist||this.whitelist[r]){if(t>=this.length())if(null==n||null==c.default.query(r,c.default.Scope.BLOCK)){var o=c.default.create(this.statics.defaultChild);this.appendChild(o),null==n&&r.endsWith("\n")&&(r=r.slice(0,-1)),o.insertAt(0,r,n)}else{var a=c.default.create(r,n);this.appendChild(a)}else i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertAt",this).call(this,t,r,n);this.optimize()}}},{key:"insertBefore",value:function(t,r){if(t.statics.scope===c.default.Scope.INLINE_BLOT){var n=c.default.create(this.statics.defaultChild);n.appendChild(t),t=n}i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertBefore",this).call(this,t,r)}},{key:"leaf",value:function(t){return this.path(t).pop()||[null,-1]}},{key:"line",value:function(t){return t===this.length()?this.line(t-1):this.descendant(x,t)}},{key:"lines",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE,r=function t(e,r,n){var o=[],i=n;return e.children.forEachAt(r,n,(function(e,r,n){x(e)?o.push(e):e instanceof c.default.Container&&(o=o.concat(t(e,r,i))),i-=n})),o};return r(this,t,e)}},{key:"optimize",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!0!==this.batch&&(i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t,r),t.length>0&&this.emitter.emit(u.default.events.SCROLL_OPTIMIZE,t,r))}},{key:"path",value:function(t){return i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"path",this).call(this,t).slice(1)}},{key:"update",value:function(t){if(!0!==this.batch){var r=u.default.sources.USER;"string"===typeof t&&(r=t),Array.isArray(t)||(t=this.observer.takeRecords()),t.length>0&&this.emitter.emit(u.default.events.SCROLL_BEFORE_UPDATE,r,t),i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"update",this).call(this,t.concat([])),t.length>0&&this.emitter.emit(u.default.events.SCROLL_UPDATE,r,t)}}}]),e}(c.default.Scroll);O.blotName="scroll",O.className="ql-editor",O.tagName="DIV",O.defaultChild="block",O.allowedChildren=[f.default,l.BlockEmbed,m.default],e.default=O},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SHORTKEY=e.default=void 0;var n="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=function(){function t(t,e){var r=[],n=!0,o=!1,i=void 0;try{for(var a,c=t[Symbol.iterator]();!(n=(a=c.next()).done);n=!0)if(r.push(a.value),e&&r.length===e)break}catch(s){o=!0,i=s}finally{try{!n&&c["return"]&&c["return"]()}finally{if(o)throw i}}return r}return function(e,r){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),a=r(21),c=k(a),s=r(11),u=k(s),l=r(3),f=k(l),h=r(2),p=k(h),d=r(20),y=k(d),v=r(0),m=k(v),g=r(5),b=k(g),w=r(10),_=k(w),x=r(9),O=k(x);function k(t){return t&&t.__esModule?t:{default:t}}function E(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function S(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function j(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function L(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var P=(0,_.default)("quill:keyboard"),N=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",A=function(t){function e(t,r){S(this,e);var n=j(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,r));return n.bindings={},Object.keys(n.options.bindings).forEach((function(e){("list autofill"!==e||null==t.scroll.whitelist||t.scroll.whitelist["list"])&&n.options.bindings[e]&&n.addBinding(n.options.bindings[e])})),n.addBinding({key:e.keys.ENTER,shiftKey:null},D),n.addBinding({key:e.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},(function(){})),/Firefox/i.test(navigator.userAgent)?(n.addBinding({key:e.keys.BACKSPACE},{collapsed:!0},C),n.addBinding({key:e.keys.DELETE},{collapsed:!0},I)):(n.addBinding({key:e.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},C),n.addBinding({key:e.keys.DELETE},{collapsed:!0,suffix:/^.?$/},I)),n.addBinding({key:e.keys.BACKSPACE},{collapsed:!1},M),n.addBinding({key:e.keys.DELETE},{collapsed:!1},M),n.addBinding({key:e.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},C),n.listen(),n}return L(e,t),i(e,null,[{key:"match",value:function(t,e){return e=B(e),!["altKey","ctrlKey","metaKey","shiftKey"].some((function(r){return!!e[r]!==t[r]&&null!==e[r]}))&&e.key===(t.which||t.keyCode)}}]),i(e,[{key:"addBinding",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=B(t);if(null==n||null==n.key)return P.warn("Attempted to add invalid keyboard binding",n);"function"===typeof e&&(e={handler:e}),"function"===typeof r&&(r={handler:r}),n=(0,f.default)(n,e,r),this.bindings[n.key]=this.bindings[n.key]||[],this.bindings[n.key].push(n)}},{key:"listen",value:function(){var t=this;this.quill.root.addEventListener("keydown",(function(r){if(!r.defaultPrevented){var i=r.which||r.keyCode,a=(t.bindings[i]||[]).filter((function(t){return e.match(r,t)}));if(0!==a.length){var c=t.quill.getSelection();if(null!=c&&t.quill.hasFocus()){var s=t.quill.getLine(c.index),l=o(s,2),f=l[0],h=l[1],p=t.quill.getLeaf(c.index),d=o(p,2),y=d[0],v=d[1],g=0===c.length?[y,v]:t.quill.getLeaf(c.index+c.length),b=o(g,2),w=b[0],_=b[1],x=y instanceof m.default.Text?y.value().slice(0,v):"",O=w instanceof m.default.Text?w.value().slice(_):"",k={collapsed:0===c.length,empty:0===c.length&&f.length()<=1,format:t.quill.getFormat(c),offset:h,prefix:x,suffix:O},E=a.some((function(e){if(null!=e.collapsed&&e.collapsed!==k.collapsed)return!1;if(null!=e.empty&&e.empty!==k.empty)return!1;if(null!=e.offset&&e.offset!==k.offset)return!1;if(Array.isArray(e.format)){if(e.format.every((function(t){return null==k.format[t]})))return!1}else if("object"===n(e.format)&&!Object.keys(e.format).every((function(t){return!0===e.format[t]?null!=k.format[t]:!1===e.format[t]?null==k.format[t]:(0,u.default)(e.format[t],k.format[t])})))return!1;return!(null!=e.prefix&&!e.prefix.test(k.prefix))&&(!(null!=e.suffix&&!e.suffix.test(k.suffix))&&!0!==e.handler.call(t,c,k))}));E&&r.preventDefault()}}}}))}}]),e}(O.default);function T(t,e){var r,n=t===A.keys.LEFT?"prefix":"suffix";return r={key:t,shiftKey:e,altKey:null},E(r,n,/^$/),E(r,"handler",(function(r){var n=r.index;t===A.keys.RIGHT&&(n+=r.length+1);var i=this.quill.getLeaf(n),a=o(i,1),c=a[0];return!(c instanceof m.default.Embed)||(t===A.keys.LEFT?e?this.quill.setSelection(r.index-1,r.length+1,b.default.sources.USER):this.quill.setSelection(r.index-1,b.default.sources.USER):e?this.quill.setSelection(r.index,r.length+1,b.default.sources.USER):this.quill.setSelection(r.index+r.length+1,b.default.sources.USER),!1)})),r}function C(t,e){if(!(0===t.index||this.quill.getLength()<=1)){var r=this.quill.getLine(t.index),n=o(r,1),i=n[0],a={};if(0===e.offset){var c=this.quill.getLine(t.index-1),s=o(c,1),u=s[0];if(null!=u&&u.length()>1){var l=i.formats(),f=this.quill.getFormat(t.index-1,1);a=y.default.attributes.diff(l,f)||{}}}var h=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(e.prefix)?2:1;this.quill.deleteText(t.index-h,h,b.default.sources.USER),Object.keys(a).length>0&&this.quill.formatLine(t.index-h,h,a,b.default.sources.USER),this.quill.focus()}}function I(t,e){var r=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(e.suffix)?2:1;if(!(t.index>=this.quill.getLength()-r)){var n={},i=0,a=this.quill.getLine(t.index),c=o(a,1),s=c[0];if(e.offset>=s.length()-1){var u=this.quill.getLine(t.index+1),l=o(u,1),f=l[0];if(f){var h=s.formats(),p=this.quill.getFormat(t.index,1);n=y.default.attributes.diff(h,p)||{},i=f.length()}}this.quill.deleteText(t.index,r,b.default.sources.USER),Object.keys(n).length>0&&this.quill.formatLine(t.index+i-1,r,n,b.default.sources.USER)}}function M(t){var e=this.quill.getLines(t),r={};if(e.length>1){var n=e[0].formats(),o=e[e.length-1].formats();r=y.default.attributes.diff(o,n)||{}}this.quill.deleteText(t,b.default.sources.USER),Object.keys(r).length>0&&this.quill.formatLine(t.index,1,r,b.default.sources.USER),this.quill.setSelection(t.index,b.default.sources.SILENT),this.quill.focus()}function D(t,e){var r=this;t.length>0&&this.quill.scroll.deleteAt(t.index,t.length);var n=Object.keys(e.format).reduce((function(t,r){return m.default.query(r,m.default.Scope.BLOCK)&&!Array.isArray(e.format[r])&&(t[r]=e.format[r]),t}),{});this.quill.insertText(t.index,"\n",n,b.default.sources.USER),this.quill.setSelection(t.index+1,b.default.sources.SILENT),this.quill.focus(),Object.keys(e.format).forEach((function(t){null==n[t]&&(Array.isArray(e.format[t])||"link"!==t&&r.quill.format(t,e.format[t],b.default.sources.USER))}))}function q(t){return{key:A.keys.TAB,shiftKey:!t,format:{"code-block":!0},handler:function(e){var r=m.default.query("code-block"),n=e.index,i=e.length,a=this.quill.scroll.descendant(r,n),c=o(a,2),s=c[0],u=c[1];if(null!=s){var l=this.quill.getIndex(s),f=s.newlineIndex(u,!0)+1,h=s.newlineIndex(l+u+i),p=s.domNode.textContent.slice(f,h).split("\n");u=0,p.forEach((function(e,o){t?(s.insertAt(f+u,r.TAB),u+=r.TAB.length,0===o?n+=r.TAB.length:i+=r.TAB.length):e.startsWith(r.TAB)&&(s.deleteAt(f+u,r.TAB.length),u-=r.TAB.length,0===o?n-=r.TAB.length:i-=r.TAB.length),u+=e.length+1})),this.quill.update(b.default.sources.USER),this.quill.setSelection(n,i,b.default.sources.SILENT)}}}}function R(t){return{key:t[0].toUpperCase(),shortKey:!0,handler:function(e,r){this.quill.format(t,!r.format[t],b.default.sources.USER)}}}function B(t){if("string"===typeof t||"number"===typeof t)return B({key:t});if("object"===("undefined"===typeof t?"undefined":n(t))&&(t=(0,c.default)(t,!1)),"string"===typeof t.key)if(null!=A.keys[t.key.toUpperCase()])t.key=A.keys[t.key.toUpperCase()];else{if(1!==t.key.length)return null;t.key=t.key.toUpperCase().charCodeAt(0)}return t.shortKey&&(t[N]=t.shortKey,delete t.shortKey),t}A.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},A.DEFAULTS={bindings:{bold:R("bold"),italic:R("italic"),underline:R("underline"),indent:{key:A.keys.TAB,format:["blockquote","indent","list"],handler:function(t,e){if(e.collapsed&&0!==e.offset)return!0;this.quill.format("indent","+1",b.default.sources.USER)}},outdent:{key:A.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(t,e){if(e.collapsed&&0!==e.offset)return!0;this.quill.format("indent","-1",b.default.sources.USER)}},"outdent backspace":{key:A.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(t,e){null!=e.format.indent?this.quill.format("indent","-1",b.default.sources.USER):null!=e.format.list&&this.quill.format("list",!1,b.default.sources.USER)}},"indent code-block":q(!0),"outdent code-block":q(!1),"remove tab":{key:A.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(t){this.quill.deleteText(t.index-1,1,b.default.sources.USER)}},tab:{key:A.keys.TAB,handler:function(t){this.quill.history.cutoff();var e=(new p.default).retain(t.index).delete(t.length).insert("\t");this.quill.updateContents(e,b.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(t.index+1,b.default.sources.SILENT)}},"list empty enter":{key:A.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(t,e){this.quill.format("list",!1,b.default.sources.USER),e.format.indent&&this.quill.format("indent",!1,b.default.sources.USER)}},"checklist enter":{key:A.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(t){var e=this.quill.getLine(t.index),r=o(e,2),n=r[0],i=r[1],a=(0,f.default)({},n.formats(),{list:"checked"}),c=(new p.default).retain(t.index).insert("\n",a).retain(n.length()-i-1).retain(1,{list:"unchecked"});this.quill.updateContents(c,b.default.sources.USER),this.quill.setSelection(t.index+1,b.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:A.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(t,e){var r=this.quill.getLine(t.index),n=o(r,2),i=n[0],a=n[1],c=(new p.default).retain(t.index).insert("\n",e.format).retain(i.length()-a-1).retain(1,{header:null});this.quill.updateContents(c,b.default.sources.USER),this.quill.setSelection(t.index+1,b.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(t,e){var r=e.prefix.length,n=this.quill.getLine(t.index),i=o(n,2),a=i[0],c=i[1];if(c>r)return!0;var s=void 0;switch(e.prefix.trim()){case"[]":case"[ ]":s="unchecked";break;case"[x]":s="checked";break;case"-":case"*":s="bullet";break;default:s="ordered"}this.quill.insertText(t.index," ",b.default.sources.USER),this.quill.history.cutoff();var u=(new p.default).retain(t.index-c).delete(r+1).retain(a.length()-2-c).retain(1,{list:s});this.quill.updateContents(u,b.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(t.index-r,b.default.sources.SILENT)}},"code exit":{key:A.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(t){var e=this.quill.getLine(t.index),r=o(e,2),n=r[0],i=r[1],a=(new p.default).retain(t.index+n.length()-i-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(a,b.default.sources.USER)}},"embed left":T(A.keys.LEFT,!1),"embed left shift":T(A.keys.LEFT,!0),"embed right":T(A.keys.RIGHT,!1),"embed right shift":T(A.keys.RIGHT,!0)}},e.default=A,e.SHORTKEY=N},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){var r=[],n=!0,o=!1,i=void 0;try{for(var a,c=t[Symbol.iterator]();!(n=(a=c.next()).done);n=!0)if(r.push(a.value),e&&r.length===e)break}catch(s){o=!0,i=s}finally{try{!n&&c["return"]&&c["return"]()}finally{if(o)throw i}}return r}return function(e,r){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=function t(e,r,n){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,r);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,r,n)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(n):void 0},i=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),a=r(0),c=l(a),s=r(7),u=l(s);function l(t){return t&&t.__esModule?t:{default:t}}function f(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function h(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function p(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var d=function(t){function e(t,r){f(this,e);var n=h(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.selection=r,n.textNode=document.createTextNode(e.CONTENTS),n.domNode.appendChild(n.textNode),n._length=0,n}return p(e,t),i(e,null,[{key:"value",value:function(){}}]),i(e,[{key:"detach",value:function(){null!=this.parent&&this.parent.removeChild(this)}},{key:"format",value:function(t,r){if(0!==this._length)return o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,r);var n=this,i=0;while(null!=n&&n.statics.scope!==c.default.Scope.BLOCK_BLOT)i+=n.offset(n.parent),n=n.parent;null!=n&&(this._length=e.CONTENTS.length,n.optimize(),n.formatAt(i,e.CONTENTS.length,t,r),this._length=0)}},{key:"index",value:function(t,r){return t===this.textNode?0:o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"index",this).call(this,t,r)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!this.selection.composing&&null!=this.parent){var t=this.textNode,r=this.selection.getNativeRange(),o=void 0,i=void 0,a=void 0;if(null!=r&&r.start.node===t&&r.end.node===t){var s=[t,r.start.offset,r.end.offset];o=s[0],i=s[1],a=s[2]}while(null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==e.CONTENTS){var l=this.textNode.data.split(e.CONTENTS).join("");this.next instanceof u.default?(o=this.next.domNode,this.next.insertAt(0,l),this.textNode.data=e.CONTENTS):(this.textNode.data=l,this.parent.insertBefore(c.default.create(this.textNode),this),this.textNode=document.createTextNode(e.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),null!=i){var f=[i,a].map((function(t){return Math.max(0,Math.min(o.data.length,t-1))})),h=n(f,2);return i=h[0],a=h[1],{startNode:o,startOffset:i,endNode:o,endOffset:a}}}}},{key:"update",value:function(t,e){var r=this;if(t.some((function(t){return"characterData"===t.type&&t.target===r.textNode}))){var n=this.restore();n&&(e.range=n)}}},{key:"value",value:function(){return""}}]),e}(c.default.Embed);d.blotName="cursor",d.className="ql-cursor",d.tagName="span",d.CONTENTS="\ufeff",e.default=d},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),o=c(n),i=r(4),a=c(i);function c(t){return t&&t.__esModule?t:{default:t}}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function l(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var f=function(t){function e(){return s(this,e),u(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return l(e,t),e}(o.default.Container);f.allowedChildren=[a.default,i.BlockEmbed,f],e.default=f},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ColorStyle=e.ColorClass=e.ColorAttributor=void 0;var n=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),o=function t(e,r,n){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,r);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,r,n)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(n):void 0},i=r(0),a=c(i);function c(t){return t&&t.__esModule?t:{default:t}}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function l(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var f=function(t){function e(){return s(this,e),u(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return l(e,t),n(e,[{key:"value",value:function(t){var r=o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"value",this).call(this,t);return r.startsWith("rgb(")?(r=r.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+r.split(",").map((function(t){return("00"+parseInt(t).toString(16)).slice(-2)})).join("")):r}}]),e}(a.default.Attributor.Style),h=new a.default.Attributor.Class("color","ql-color",{scope:a.default.Scope.INLINE}),p=new f("color","color",{scope:a.default.Scope.INLINE});e.ColorAttributor=f,e.ColorClass=h,e.ColorStyle=p},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sanitize=e.default=void 0;var n=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),o=function t(e,r,n){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,r);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,r,n)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(n):void 0},i=r(6),a=c(i);function c(t){return t&&t.__esModule?t:{default:t}}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function l(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var f=function(t){function e(){return s(this,e),u(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return l(e,t),n(e,[{key:"format",value:function(t,r){if(t!==this.statics.blotName||!r)return o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,r);r=this.constructor.sanitize(r),this.domNode.setAttribute("href",r)}}],[{key:"create",value:function(t){var r=o(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return t=this.sanitize(t),r.setAttribute("href",t),r.setAttribute("rel","noopener noreferrer"),r.setAttribute("target","_blank"),r}},{key:"formats",value:function(t){return t.getAttribute("href")}},{key:"sanitize",value:function(t){return h(t,this.PROTOCOL_WHITELIST)?t:this.SANITIZED_URL}}]),e}(a.default);function h(t,e){var r=document.createElement("a");r.href=t;var n=r.href.slice(0,r.href.indexOf(":"));return e.indexOf(n)>-1}f.blotName="link",f.tagName="A",f.SANITIZED_URL="about:blank",f.PROTOCOL_WHITELIST=["http","https","mailto","tel"],e.default=f,e.sanitize=h},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),i=r(23),a=u(i),c=r(107),s=u(c);function u(t){return t&&t.__esModule?t:{default:t}}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var f=0;function h(t,e){t.setAttribute(e,!("true"===t.getAttribute(e)))}var p=function(){function t(e){var r=this;l(this,t),this.select=e,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",(function(){r.togglePicker()})),this.label.addEventListener("keydown",(function(t){switch(t.keyCode){case a.default.keys.ENTER:r.togglePicker();break;case a.default.keys.ESCAPE:r.escape(),t.preventDefault();break;default:}})),this.select.addEventListener("change",this.update.bind(this))}return o(t,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),h(this.label,"aria-expanded"),h(this.options,"aria-hidden")}},{key:"buildItem",value:function(t){var e=this,r=document.createElement("span");return r.tabIndex="0",r.setAttribute("role","button"),r.classList.add("ql-picker-item"),t.hasAttribute("value")&&r.setAttribute("data-value",t.getAttribute("value")),t.textContent&&r.setAttribute("data-label",t.textContent),r.addEventListener("click",(function(){e.selectItem(r,!0)})),r.addEventListener("keydown",(function(t){switch(t.keyCode){case a.default.keys.ENTER:e.selectItem(r,!0),t.preventDefault();break;case a.default.keys.ESCAPE:e.escape(),t.preventDefault();break;default:}})),r}},{key:"buildLabel",value:function(){var t=document.createElement("span");return t.classList.add("ql-picker-label"),t.innerHTML=s.default,t.tabIndex="0",t.setAttribute("role","button"),t.setAttribute("aria-expanded","false"),this.container.appendChild(t),t}},{key:"buildOptions",value:function(){var t=this,e=document.createElement("span");e.classList.add("ql-picker-options"),e.setAttribute("aria-hidden","true"),e.tabIndex="-1",e.id="ql-picker-options-"+f,f+=1,this.label.setAttribute("aria-controls",e.id),this.options=e,[].slice.call(this.select.options).forEach((function(r){var n=t.buildItem(r);e.appendChild(n),!0===r.selected&&t.selectItem(n)})),this.container.appendChild(e)}},{key:"buildPicker",value:function(){var t=this;[].slice.call(this.select.attributes).forEach((function(e){t.container.setAttribute(e.name,e.value)})),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var t=this;this.close(),setTimeout((function(){return t.label.focus()}),1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.container.querySelector(".ql-selected");if(t!==r&&(null!=r&&r.classList.remove("ql-selected"),null!=t&&(t.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(t.parentNode.children,t),t.hasAttribute("data-value")?this.label.setAttribute("data-value",t.getAttribute("data-value")):this.label.removeAttribute("data-value"),t.hasAttribute("data-label")?this.label.setAttribute("data-label",t.getAttribute("data-label")):this.label.removeAttribute("data-label"),e))){if("function"===typeof Event)this.select.dispatchEvent(new Event("change"));else if("object"===("undefined"===typeof Event?"undefined":n(Event))){var o=document.createEvent("Event");o.initEvent("change",!0,!0),this.select.dispatchEvent(o)}this.close()}}},{key:"update",value:function(){var t=void 0;if(this.select.selectedIndex>-1){var e=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];t=this.select.options[this.select.selectedIndex],this.selectItem(e)}else this.selectItem(null);var r=null!=t&&t!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",r)}}]),t}();e.default=p},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),o=P(n),i=r(5),a=P(i),c=r(4),s=P(c),u=r(16),l=P(u),f=r(25),h=P(f),p=r(24),d=P(p),y=r(35),v=P(y),m=r(6),g=P(m),b=r(22),w=P(b),_=r(7),x=P(_),O=r(55),k=P(O),E=r(42),S=P(E),j=r(23),L=P(j);function P(t){return t&&t.__esModule?t:{default:t}}a.default.register({"blots/block":s.default,"blots/block/embed":c.BlockEmbed,"blots/break":l.default,"blots/container":h.default,"blots/cursor":d.default,"blots/embed":v.default,"blots/inline":g.default,"blots/scroll":w.default,"blots/text":x.default,"modules/clipboard":k.default,"modules/history":S.default,"modules/keyboard":L.default}),o.default.register(s.default,l.default,d.default,g.default,w.default,x.default),e.default=a.default},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(1),o=function(){function t(t){this.domNode=t,this.domNode[n.DATA_KEY]={blot:this}}return Object.defineProperty(t.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),t.create=function(t){if(null==this.tagName)throw new n.ParchmentError("Blot definition missing tagName");var e;return Array.isArray(this.tagName)?("string"===typeof t&&(t=t.toUpperCase(),parseInt(t).toString()===t&&(t=parseInt(t))),e="number"===typeof t?document.createElement(this.tagName[t-1]):this.tagName.indexOf(t)>-1?document.createElement(t):document.createElement(this.tagName[0])):e=document.createElement(this.tagName),this.className&&e.classList.add(this.className),e},t.prototype.attach=function(){null!=this.parent&&(this.scroll=this.parent.scroll)},t.prototype.clone=function(){var t=this.domNode.cloneNode(!1);return n.create(t)},t.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),delete this.domNode[n.DATA_KEY]},t.prototype.deleteAt=function(t,e){var r=this.isolate(t,e);r.remove()},t.prototype.formatAt=function(t,e,r,o){var i=this.isolate(t,e);if(null!=n.query(r,n.Scope.BLOT)&&o)i.wrap(r,o);else if(null!=n.query(r,n.Scope.ATTRIBUTE)){var a=n.create(this.statics.scope);i.wrap(a),a.format(r,o)}},t.prototype.insertAt=function(t,e,r){var o=null==r?n.create("text",e):n.create(e,r),i=this.split(t);this.parent.insertBefore(o,i)},t.prototype.insertInto=function(t,e){void 0===e&&(e=null),null!=this.parent&&this.parent.children.remove(this);var r=null;t.children.insertBefore(this,e),null!=e&&(r=e.domNode),this.domNode.parentNode==t.domNode&&this.domNode.nextSibling==r||t.domNode.insertBefore(this.domNode,r),this.parent=t,this.attach()},t.prototype.isolate=function(t,e){var r=this.split(t);return r.split(e),r},t.prototype.length=function(){return 1},t.prototype.offset=function(t){return void 0===t&&(t=this.parent),null==this.parent||this==t?0:this.parent.children.offset(this)+this.parent.offset(t)},t.prototype.optimize=function(t){null!=this.domNode[n.DATA_KEY]&&delete this.domNode[n.DATA_KEY].mutations},t.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},t.prototype.replace=function(t){null!=t.parent&&(t.parent.insertBefore(this,t.next),t.remove())},t.prototype.replaceWith=function(t,e){var r="string"===typeof t?n.create(t,e):t;return r.replace(this),r},t.prototype.split=function(t,e){return 0===t?this:this.next},t.prototype.update=function(t,e){},t.prototype.wrap=function(t,e){var r="string"===typeof t?n.create(t,e):t;return null!=this.parent&&this.parent.insertBefore(r,this.next),r.appendChild(this),r},t.blotName="abstract",t}();e.default=o},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(12),o=r(32),i=r(33),a=r(1),c=function(){function t(t){this.attributes={},this.domNode=t,this.build()}return t.prototype.attribute=function(t,e){e?t.add(this.domNode,e)&&(null!=t.value(this.domNode)?this.attributes[t.attrName]=t:delete this.attributes[t.attrName]):(t.remove(this.domNode),delete this.attributes[t.attrName])},t.prototype.build=function(){var t=this;this.attributes={};var e=n.default.keys(this.domNode),r=o.default.keys(this.domNode),c=i.default.keys(this.domNode);e.concat(r).concat(c).forEach((function(e){var r=a.query(e,a.Scope.ATTRIBUTE);r instanceof n.default&&(t.attributes[r.attrName]=r)}))},t.prototype.copy=function(t){var e=this;Object.keys(this.attributes).forEach((function(r){var n=e.attributes[r].value(e.domNode);t.format(r,n)}))},t.prototype.move=function(t){var e=this;this.copy(t),Object.keys(this.attributes).forEach((function(t){e.attributes[t].remove(e.domNode)})),this.attributes={}},t.prototype.values=function(){var t=this;return Object.keys(this.attributes).reduce((function(e,r){return e[r]=t.attributes[r].value(t.domNode),e}),{})},t}();e.default=c},function(t,e,r){"use strict";var n=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=r(12);function i(t,e){var r=t.getAttribute("class")||"";return r.split(/\s+/).filter((function(t){return 0===t.indexOf(e+"-")}))}var a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.keys=function(t){return(t.getAttribute("class")||"").split(/\s+/).map((function(t){return t.split("-").slice(0,-1).join("-")}))},e.prototype.add=function(t,e){return!!this.canAdd(t,e)&&(this.remove(t),t.classList.add(this.keyName+"-"+e),!0)},e.prototype.remove=function(t){var e=i(t,this.keyName);e.forEach((function(e){t.classList.remove(e)})),0===t.classList.length&&t.removeAttribute("class")},e.prototype.value=function(t){var e=i(t,this.keyName)[0]||"",r=e.slice(this.keyName.length+1);return this.canAdd(t,r)?r:""},e}(o.default);e.default=a},function(t,e,r){"use strict";var n=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=r(12);function i(t){var e=t.split("-"),r=e.slice(1).map((function(t){return t[0].toUpperCase()+t.slice(1)})).join("");return e[0]+r}var a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.keys=function(t){return(t.getAttribute("style")||"").split(";").map((function(t){var e=t.split(":");return e[0].trim()}))},e.prototype.add=function(t,e){return!!this.canAdd(t,e)&&(t.style[i(this.keyName)]=e,!0)},e.prototype.remove=function(t){t.style[i(this.keyName)]="",t.getAttribute("style")||t.removeAttribute("style")},e.prototype.value=function(t){var e=t.style[i(this.keyName)];return this.canAdd(t,e)?e:""},e}(o.default);e.default=a},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}();function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var i=function(){function t(e,r){o(this,t),this.quill=e,this.options=r,this.modules={}}return n(t,[{key:"init",value:function(){var t=this;Object.keys(this.options.modules).forEach((function(e){null==t.modules[e]&&t.addModule(e)}))}},{key:"addModule",value:function(t){var e=this.quill.constructor.import("modules/"+t);return this.modules[t]=new e(this.quill,this.options.modules[t]||{}),this.modules[t]}}]),t}();i.DEFAULTS={modules:{}},i.themes={default:i},e.default=i},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),o=function t(e,r,n){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,r);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,r,n)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(n):void 0},i=r(0),a=u(i),c=r(7),s=u(c);function u(t){return t&&t.__esModule?t:{default:t}}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function f(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function h(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var p="\ufeff",d=function(t){function e(t){l(this,e);var r=f(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return r.contentNode=document.createElement("span"),r.contentNode.setAttribute("contenteditable",!1),[].slice.call(r.domNode.childNodes).forEach((function(t){r.contentNode.appendChild(t)})),r.leftGuard=document.createTextNode(p),r.rightGuard=document.createTextNode(p),r.domNode.appendChild(r.leftGuard),r.domNode.appendChild(r.contentNode),r.domNode.appendChild(r.rightGuard),r}return h(e,t),n(e,[{key:"index",value:function(t,r){return t===this.leftGuard?0:t===this.rightGuard?1:o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"index",this).call(this,t,r)}},{key:"restore",value:function(t){var e=void 0,r=void 0,n=t.data.split(p).join("");if(t===this.leftGuard)if(this.prev instanceof s.default){var o=this.prev.length();this.prev.insertAt(o,n),e={startNode:this.prev.domNode,startOffset:o+n.length}}else r=document.createTextNode(n),this.parent.insertBefore(a.default.create(r),this),e={startNode:r,startOffset:n.length};else t===this.rightGuard&&(this.next instanceof s.default?(this.next.insertAt(0,n),e={startNode:this.next.domNode,startOffset:n.length}):(r=document.createTextNode(n),this.parent.insertBefore(a.default.create(r),this.next),e={startNode:r,startOffset:n.length}));return t.data=p,e}},{key:"update",value:function(t,e){var r=this;t.forEach((function(t){if("characterData"===t.type&&(t.target===r.leftGuard||t.target===r.rightGuard)){var n=r.restore(t.target);n&&(e.range=n)}}))}}]),e}(a.default.Embed);e.default=d},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AlignStyle=e.AlignClass=e.AlignAttribute=void 0;var n=r(0),o=i(n);function i(t){return t&&t.__esModule?t:{default:t}}var a={scope:o.default.Scope.BLOCK,whitelist:["right","center","justify"]},c=new o.default.Attributor.Attribute("align","align",a),s=new o.default.Attributor.Class("align","ql-align",a),u=new o.default.Attributor.Style("align","text-align",a);e.AlignAttribute=c,e.AlignClass=s,e.AlignStyle=u},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BackgroundStyle=e.BackgroundClass=void 0;var n=r(0),o=a(n),i=r(26);function a(t){return t&&t.__esModule?t:{default:t}}var c=new o.default.Attributor.Class("background","ql-bg",{scope:o.default.Scope.INLINE}),s=new i.ColorAttributor("background","background-color",{scope:o.default.Scope.INLINE});e.BackgroundClass=c,e.BackgroundStyle=s},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DirectionStyle=e.DirectionClass=e.DirectionAttribute=void 0;var n=r(0),o=i(n);function i(t){return t&&t.__esModule?t:{default:t}}var a={scope:o.default.Scope.BLOCK,whitelist:["rtl"]},c=new o.default.Attributor.Attribute("direction","dir",a),s=new o.default.Attributor.Class("direction","ql-direction",a),u=new o.default.Attributor.Style("direction","direction",a);e.DirectionAttribute=c,e.DirectionClass=s,e.DirectionStyle=u},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FontClass=e.FontStyle=void 0;var n=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),o=function t(e,r,n){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,r);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,r,n)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(n):void 0},i=r(0),a=c(i);function c(t){return t&&t.__esModule?t:{default:t}}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function l(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var f={scope:a.default.Scope.INLINE,whitelist:["serif","monospace"]},h=new a.default.Attributor.Class("font","ql-font",f),p=function(t){function e(){return s(this,e),u(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return l(e,t),n(e,[{key:"value",value:function(t){return o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"value",this).call(this,t).replace(/["']/g,"")}}]),e}(a.default.Attributor.Style),d=new p("font","font-family",f);e.FontStyle=d,e.FontClass=h},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SizeStyle=e.SizeClass=void 0;var n=r(0),o=i(n);function i(t){return t&&t.__esModule?t:{default:t}}var a=new o.default.Attributor.Class("size","ql-size",{scope:o.default.Scope.INLINE,whitelist:["small","large","huge"]}),c=new o.default.Attributor.Style("size","font-size",{scope:o.default.Scope.INLINE,whitelist:["10px","18px","32px"]});e.SizeClass=a,e.SizeStyle=c},function(t,e,r){"use strict";t.exports={align:{"":r(76),center:r(77),right:r(78),justify:r(79)},background:r(80),blockquote:r(81),bold:r(82),clean:r(83),code:r(58),"code-block":r(58),color:r(84),direction:{"":r(85),rtl:r(86)},float:{center:r(87),full:r(88),left:r(89),right:r(90)},formula:r(91),header:{1:r(92),2:r(93)},italic:r(94),image:r(95),indent:{"+1":r(96),"-1":r(97)},link:r(98),list:{ordered:r(99),bullet:r(100),check:r(101)},script:{sub:r(102),super:r(103)},strike:r(104),underline:r(105),video:r(106)}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getLastChangeIndex=e.default=void 0;var n=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),o=r(0),i=l(o),a=r(5),c=l(a),s=r(9),u=l(s);function l(t){return t&&t.__esModule?t:{default:t}}function f(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function h(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function p(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var d=function(t){function e(t,r){f(this,e);var n=h(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,r));return n.lastRecorded=0,n.ignoreChange=!1,n.clear(),n.quill.on(c.default.events.EDITOR_CHANGE,(function(t,e,r,o){t!==c.default.events.TEXT_CHANGE||n.ignoreChange||(n.options.userOnly&&o!==c.default.sources.USER?n.transform(e):n.record(e,r))})),n.quill.keyboard.addBinding({key:"Z",shortKey:!0},n.undo.bind(n)),n.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},n.redo.bind(n)),/Win/i.test(navigator.platform)&&n.quill.keyboard.addBinding({key:"Y",shortKey:!0},n.redo.bind(n)),n}return p(e,t),n(e,[{key:"change",value:function(t,e){if(0!==this.stack[t].length){var r=this.stack[t].pop();this.stack[e].push(r),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(r[t],c.default.sources.USER),this.ignoreChange=!1;var n=v(r[t]);this.quill.setSelection(n)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(t,e){if(0!==t.ops.length){this.stack.redo=[];var r=this.quill.getContents().diff(e),n=Date.now();if(this.lastRecorded+this.options.delay>n&&this.stack.undo.length>0){var o=this.stack.undo.pop();r=r.compose(o.undo),t=o.redo.compose(t)}else this.lastRecorded=n;this.stack.undo.push({redo:t,undo:r}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(t){this.stack.undo.forEach((function(e){e.undo=t.transform(e.undo,!0),e.redo=t.transform(e.redo,!0)})),this.stack.redo.forEach((function(e){e.undo=t.transform(e.undo,!0),e.redo=t.transform(e.redo,!0)}))}},{key:"undo",value:function(){this.change("undo","redo")}}]),e}(u.default);function y(t){var e=t.ops[t.ops.length-1];return null!=e&&(null!=e.insert?"string"===typeof e.insert&&e.insert.endsWith("\n"):null!=e.attributes&&Object.keys(e.attributes).some((function(t){return null!=i.default.query(t,i.default.Scope.BLOCK)})))}function v(t){var e=t.reduce((function(t,e){return t+=e.delete||0,t}),0),r=t.length()-e;return y(t)&&(r-=1),r}d.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1},e.default=d,e.getLastChangeIndex=v},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.BaseTooltip=void 0;var n=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),o=function t(e,r,n){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,r);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,r,n)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(n):void 0},i=r(3),a=O(i),c=r(2),s=O(c),u=r(8),l=O(u),f=r(23),h=O(f),p=r(34),d=O(p),y=r(59),v=O(y),m=r(60),g=O(m),b=r(28),w=O(b),_=r(61),x=O(_);function O(t){return t&&t.__esModule?t:{default:t}}function k(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function E(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function S(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var j=[!1,"center","right","justify"],L=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],P=[!1,"serif","monospace"],N=["1","2","3",!1],A=["small",!1,"large","huge"],T=function(t){function e(t,r){k(this,e);var n=E(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,r)),o=function e(r){if(!document.body.contains(t.root))return document.body.removeEventListener("click",e);null==n.tooltip||n.tooltip.root.contains(r.target)||document.activeElement===n.tooltip.textbox||n.quill.hasFocus()||n.tooltip.hide(),null!=n.pickers&&n.pickers.forEach((function(t){t.container.contains(r.target)||t.close()}))};return t.emitter.listenDOM("click",document.body,o),n}return S(e,t),n(e,[{key:"addModule",value:function(t){var r=o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"addModule",this).call(this,t);return"toolbar"===t&&this.extendToolbar(r),r}},{key:"buildButtons",value:function(t,e){t.forEach((function(t){var r=t.getAttribute("class")||"";r.split(/\s+/).forEach((function(r){if(r.startsWith("ql-")&&(r=r.slice("ql-".length),null!=e[r]))if("direction"===r)t.innerHTML=e[r][""]+e[r]["rtl"];else if("string"===typeof e[r])t.innerHTML=e[r];else{var n=t.value||"";null!=n&&e[r][n]&&(t.innerHTML=e[r][n])}}))}))}},{key:"buildPickers",value:function(t,e){var r=this;this.pickers=t.map((function(t){if(t.classList.contains("ql-align"))return null==t.querySelector("option")&&M(t,j),new g.default(t,e.align);if(t.classList.contains("ql-background")||t.classList.contains("ql-color")){var r=t.classList.contains("ql-background")?"background":"color";return null==t.querySelector("option")&&M(t,L,"background"===r?"#ffffff":"#000000"),new v.default(t,e[r])}return null==t.querySelector("option")&&(t.classList.contains("ql-font")?M(t,P):t.classList.contains("ql-header")?M(t,N):t.classList.contains("ql-size")&&M(t,A)),new w.default(t)}));var n=function(){r.pickers.forEach((function(t){t.update()}))};this.quill.on(l.default.events.EDITOR_CHANGE,n)}}]),e}(d.default);T.DEFAULTS=(0,a.default)(!0,{},d.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var t=this,e=this.container.querySelector("input.ql-image[type=file]");null==e&&(e=document.createElement("input"),e.setAttribute("type","file"),e.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),e.classList.add("ql-image"),e.addEventListener("change",(function(){if(null!=e.files&&null!=e.files[0]){var r=new FileReader;r.onload=function(r){var n=t.quill.getSelection(!0);t.quill.updateContents((new s.default).retain(n.index).delete(n.length).insert({image:r.target.result}),l.default.sources.USER),t.quill.setSelection(n.index+1,l.default.sources.SILENT),e.value=""},r.readAsDataURL(e.files[0])}})),this.container.appendChild(e)),e.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var C=function(t){function e(t,r){k(this,e);var n=E(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,r));return n.textbox=n.root.querySelector('input[type="text"]'),n.listen(),n}return S(e,t),n(e,[{key:"listen",value:function(){var t=this;this.textbox.addEventListener("keydown",(function(e){h.default.match(e,"enter")?(t.save(),e.preventDefault()):h.default.match(e,"escape")&&(t.cancel(),e.preventDefault())}))}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"link",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null!=e?this.textbox.value=e:t!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+t)||""),this.root.setAttribute("data-mode",t)}},{key:"restoreFocus",value:function(){var t=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=t}},{key:"save",value:function(){var t=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":var e=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",t,l.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",t,l.default.sources.USER)),this.quill.root.scrollTop=e;break;case"video":t=I(t);case"formula":if(!t)break;var r=this.quill.getSelection(!0);if(null!=r){var n=r.index+r.length;this.quill.insertEmbed(n,this.root.getAttribute("data-mode"),t,l.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(n+1," ",l.default.sources.USER),this.quill.setSelection(n+2,l.default.sources.USER)}break;default:}this.textbox.value="",this.hide()}}]),e}(x.default);function I(t){var e=t.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||t.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return e?(e[1]||"https")+"://www.youtube.com/embed/"+e[2]+"?showinfo=0":(e=t.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(e[1]||"https")+"://player.vimeo.com/video/"+e[2]+"/":t}function M(t,e){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];e.forEach((function(e){var n=document.createElement("option");e===r?n.setAttribute("selected","selected"):n.setAttribute("value",e),t.appendChild(n)}))}e.BaseTooltip=C,e.default=T},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(){this.head=this.tail=null,this.length=0}return t.prototype.append=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.insertBefore(t[0],null),t.length>1&&this.append.apply(this,t.slice(1))},t.prototype.contains=function(t){var e,r=this.iterator();while(e=r())if(e===t)return!0;return!1},t.prototype.insertBefore=function(t,e){t&&(t.next=e,null!=e?(t.prev=e.prev,null!=e.prev&&(e.prev.next=t),e.prev=t,e===this.head&&(this.head=t)):null!=this.tail?(this.tail.next=t,t.prev=this.tail,this.tail=t):(t.prev=null,this.head=this.tail=t),this.length+=1)},t.prototype.offset=function(t){var e=0,r=this.head;while(null!=r){if(r===t)return e;e+=r.length(),r=r.next}return-1},t.prototype.remove=function(t){this.contains(t)&&(null!=t.prev&&(t.prev.next=t.next),null!=t.next&&(t.next.prev=t.prev),t===this.head&&(this.head=t.next),t===this.tail&&(this.tail=t.prev),this.length-=1)},t.prototype.iterator=function(t){return void 0===t&&(t=this.head),function(){var e=t;return null!=t&&(t=t.next),e}},t.prototype.find=function(t,e){void 0===e&&(e=!1);var r,n=this.iterator();while(r=n()){var o=r.length();if(t<o||e&&t===o&&(null==r.next||0!==r.next.length()))return[r,t];t-=o}return[null,0]},t.prototype.forEach=function(t){var e,r=this.iterator();while(e=r())t(e)},t.prototype.forEachAt=function(t,e,r){if(!(e<=0)){var n,o=this.find(t),i=o[0],a=o[1],c=t-a,s=this.iterator(i);while((n=s())&&c<t+e){var u=n.length();t>c?r(n,t-c,Math.min(e,c+u-t)):r(n,0,Math.min(u,t+e-c)),c+=u}}},t.prototype.map=function(t){return this.reduce((function(e,r){return e.push(t(r)),e}),[])},t.prototype.reduce=function(t,e){var r,n=this.iterator();while(r=n())e=t(e,r);return e},t}();e.default=n},function(t,e,r){"use strict";var n=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=r(17),i=r(1),a={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},c=100,s=function(t){function e(e){var r=t.call(this,e)||this;return r.scroll=r,r.observer=new MutationObserver((function(t){r.update(t)})),r.observer.observe(r.domNode,a),r.attach(),r}return n(e,t),e.prototype.detach=function(){t.prototype.detach.call(this),this.observer.disconnect()},e.prototype.deleteAt=function(e,r){this.update(),0===e&&r===this.length()?this.children.forEach((function(t){t.remove()})):t.prototype.deleteAt.call(this,e,r)},e.prototype.formatAt=function(e,r,n,o){this.update(),t.prototype.formatAt.call(this,e,r,n,o)},e.prototype.insertAt=function(e,r,n){this.update(),t.prototype.insertAt.call(this,e,r,n)},e.prototype.optimize=function(e,r){var n=this;void 0===e&&(e=[]),void 0===r&&(r={}),t.prototype.optimize.call(this,r);var a=[].slice.call(this.observer.takeRecords());while(a.length>0)e.push(a.pop());for(var s=function(t,e){void 0===e&&(e=!0),null!=t&&t!==n&&null!=t.domNode.parentNode&&(null==t.domNode[i.DATA_KEY].mutations&&(t.domNode[i.DATA_KEY].mutations=[]),e&&s(t.parent))},u=function(t){null!=t.domNode[i.DATA_KEY]&&null!=t.domNode[i.DATA_KEY].mutations&&(t instanceof o.default&&t.children.forEach(u),t.optimize(r))},l=e,f=0;l.length>0;f+=1){if(f>=c)throw new Error("[Parchment] Maximum optimize iterations reached");l.forEach((function(t){var e=i.find(t.target,!0);null!=e&&(e.domNode===t.target&&("childList"===t.type?(s(i.find(t.previousSibling,!1)),[].forEach.call(t.addedNodes,(function(t){var e=i.find(t,!1);s(e,!1),e instanceof o.default&&e.children.forEach((function(t){s(t,!1)}))}))):"attributes"===t.type&&s(e.prev)),s(e))})),this.children.forEach(u),l=[].slice.call(this.observer.takeRecords()),a=l.slice();while(a.length>0)e.push(a.pop())}},e.prototype.update=function(e,r){var n=this;void 0===r&&(r={}),e=e||this.observer.takeRecords(),e.map((function(t){var e=i.find(t.target,!0);return null==e?null:null==e.domNode[i.DATA_KEY].mutations?(e.domNode[i.DATA_KEY].mutations=[t],e):(e.domNode[i.DATA_KEY].mutations.push(t),null)})).forEach((function(t){null!=t&&t!==n&&null!=t.domNode[i.DATA_KEY]&&t.update(t.domNode[i.DATA_KEY].mutations||[],r)})),null!=this.domNode[i.DATA_KEY].mutations&&t.prototype.update.call(this,this.domNode[i.DATA_KEY].mutations,r),this.optimize(e,r)},e.blotName="scroll",e.defaultChild="block",e.scope=i.Scope.BLOCK_BLOT,e.tagName="DIV",e}(o.default);e.default=s},function(t,e,r){"use strict";var n=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=r(18),i=r(1);function a(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(var r in t)if(t[r]!==e[r])return!1;return!0}var c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.formats=function(r){if(r.tagName!==e.tagName)return t.formats.call(this,r)},e.prototype.format=function(r,n){var i=this;r!==this.statics.blotName||n?t.prototype.format.call(this,r,n):(this.children.forEach((function(t){t instanceof o.default||(t=t.wrap(e.blotName,!0)),i.attributes.copy(t)})),this.unwrap())},e.prototype.formatAt=function(e,r,n,o){if(null!=this.formats()[n]||i.query(n,i.Scope.ATTRIBUTE)){var a=this.isolate(e,r);a.format(n,o)}else t.prototype.formatAt.call(this,e,r,n,o)},e.prototype.optimize=function(r){t.prototype.optimize.call(this,r);var n=this.formats();if(0===Object.keys(n).length)return this.unwrap();var o=this.next;o instanceof e&&o.prev===this&&a(n,o.formats())&&(o.moveChildren(this),o.remove())},e.blotName="inline",e.scope=i.Scope.INLINE_BLOT,e.tagName="SPAN",e}(o.default);e.default=c},function(t,e,r){"use strict";var n=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=r(18),i=r(1),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.formats=function(r){var n=i.query(e.blotName).tagName;if(r.tagName!==n)return t.formats.call(this,r)},e.prototype.format=function(r,n){null!=i.query(r,i.Scope.BLOCK)&&(r!==this.statics.blotName||n?t.prototype.format.call(this,r,n):this.replaceWith(e.blotName))},e.prototype.formatAt=function(e,r,n,o){null!=i.query(n,i.Scope.BLOCK)?this.format(n,o):t.prototype.formatAt.call(this,e,r,n,o)},e.prototype.insertAt=function(e,r,n){if(null==n||null!=i.query(r,i.Scope.INLINE))t.prototype.insertAt.call(this,e,r,n);else{var o=this.split(e),a=i.create(r,n);o.parent.insertBefore(a,o)}},e.prototype.update=function(e,r){navigator.userAgent.match(/Trident/)?this.build():t.prototype.update.call(this,e,r)},e.blotName="block",e.scope=i.Scope.BLOCK_BLOT,e.tagName="P",e}(o.default);e.default=a},function(t,e,r){"use strict";var n=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=r(19),i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.formats=function(t){},e.prototype.format=function(e,r){t.prototype.formatAt.call(this,0,this.length(),e,r)},e.prototype.formatAt=function(e,r,n,o){0===e&&r===this.length()?this.format(n,o):t.prototype.formatAt.call(this,e,r,n,o)},e.prototype.formats=function(){return this.statics.formats(this.domNode)},e}(o.default);e.default=i},function(t,e,r){"use strict";var n=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=r(19),i=r(1),a=function(t){function e(e){var r=t.call(this,e)||this;return r.text=r.statics.value(r.domNode),r}return n(e,t),e.create=function(t){return document.createTextNode(t)},e.value=function(t){var e=t.data;return e["normalize"]&&(e=e["normalize"]()),e},e.prototype.deleteAt=function(t,e){this.domNode.data=this.text=this.text.slice(0,t)+this.text.slice(t+e)},e.prototype.index=function(t,e){return this.domNode===t?e:-1},e.prototype.insertAt=function(e,r,n){null==n?(this.text=this.text.slice(0,e)+r+this.text.slice(e),this.domNode.data=this.text):t.prototype.insertAt.call(this,e,r,n)},e.prototype.length=function(){return this.text.length},e.prototype.optimize=function(r){t.prototype.optimize.call(this,r),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof e&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},e.prototype.position=function(t,e){return void 0===e&&(e=!1),[this.domNode,t]},e.prototype.split=function(t,e){if(void 0===e&&(e=!1),!e){if(0===t)return this;if(t===this.length())return this.next}var r=i.create(this.domNode.splitText(t));return this.parent.insertBefore(r,this.next),this.text=this.statics.value(this.domNode),r},e.prototype.update=function(t,e){var r=this;t.some((function(t){return"characterData"===t.type&&t.target===r.domNode}))&&(this.text=this.statics.value(this.domNode))},e.prototype.value=function(){return this.text},e.blotName="text",e.scope=i.Scope.INLINE_BLOT,e}(o.default);e.default=a},function(t,e,r){"use strict";var n=document.createElement("div");if(n.classList.toggle("test-class",!1),n.classList.contains("test-class")){var o=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(t,e){return arguments.length>1&&!this.contains(t)===!e?e:o.call(this,t)}}String.prototype.startsWith||(String.prototype.startsWith=function(t,e){return e=e||0,this.substr(e,t.length)===t}),String.prototype.endsWith||(String.prototype.endsWith=function(t,e){var r=this.toString();("number"!==typeof e||!isFinite(e)||Math.floor(e)!==e||e>r.length)&&(e=r.length),e-=t.length;var n=r.indexOf(t,e);return-1!==n&&n===e}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(t){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!==typeof t)throw new TypeError("predicate must be a function");for(var e,r=Object(this),n=r.length>>>0,o=arguments[1],i=0;i<n;i++)if(e=r[i],t.call(o,e,i,r))return e}}),document.addEventListener("DOMContentLoaded",(function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)}))},function(t,e){var r=-1,n=1,o=0;function i(t,e,r){if(t==e)return t?[[o,t]]:[];(r<0||t.length<r)&&(r=null);var n=u(t,e),i=t.substring(0,n);t=t.substring(n),e=e.substring(n),n=l(t,e);var c=t.substring(t.length-n);t=t.substring(0,t.length-n),e=e.substring(0,e.length-n);var s=a(t,e);return i&&s.unshift([o,i]),c&&s.push([o,c]),h(s),null!=r&&(s=y(s,r)),s=v(s),s}function a(t,e){var a;if(!t)return[[n,e]];if(!e)return[[r,t]];var s=t.length>e.length?t:e,u=t.length>e.length?e:t,l=s.indexOf(u);if(-1!=l)return a=[[n,s.substring(0,l)],[o,u],[n,s.substring(l+u.length)]],t.length>e.length&&(a[0][0]=a[2][0]=r),a;if(1==u.length)return[[r,t],[n,e]];var h=f(t,e);if(h){var p=h[0],d=h[1],y=h[2],v=h[3],m=h[4],g=i(p,y),b=i(d,v);return g.concat([[o,m]],b)}return c(t,e)}function c(t,e){for(var o=t.length,i=e.length,a=Math.ceil((o+i)/2),c=a,u=2*a,l=new Array(u),f=new Array(u),h=0;h<u;h++)l[h]=-1,f[h]=-1;l[c+1]=0,f[c+1]=0;for(var p=o-i,d=p%2!=0,y=0,v=0,m=0,g=0,b=0;b<a;b++){for(var w=-b+y;w<=b-v;w+=2){var _=c+w;j=w==-b||w!=b&&l[_-1]<l[_+1]?l[_+1]:l[_-1]+1;var x=j-w;while(j<o&&x<i&&t.charAt(j)==e.charAt(x))j++,x++;if(l[_]=j,j>o)v+=2;else if(x>i)y+=2;else if(d){var O=c+p-w;if(O>=0&&O<u&&-1!=f[O]){var k=o-f[O];if(j>=k)return s(t,e,j,x)}}}for(var E=-b+m;E<=b-g;E+=2){O=c+E;k=E==-b||E!=b&&f[O-1]<f[O+1]?f[O+1]:f[O-1]+1;var S=k-E;while(k<o&&S<i&&t.charAt(o-k-1)==e.charAt(i-S-1))k++,S++;if(f[O]=k,k>o)g+=2;else if(S>i)m+=2;else if(!d){_=c+p-E;if(_>=0&&_<u&&-1!=l[_]){var j=l[_];x=c+j-_;if(k=o-k,j>=k)return s(t,e,j,x)}}}}return[[r,t],[n,e]]}function s(t,e,r,n){var o=t.substring(0,r),a=e.substring(0,n),c=t.substring(r),s=e.substring(n),u=i(o,a),l=i(c,s);return u.concat(l)}function u(t,e){if(!t||!e||t.charAt(0)!=e.charAt(0))return 0;var r=0,n=Math.min(t.length,e.length),o=n,i=0;while(r<o)t.substring(i,o)==e.substring(i,o)?(r=o,i=r):n=o,o=Math.floor((n-r)/2+r);return o}function l(t,e){if(!t||!e||t.charAt(t.length-1)!=e.charAt(e.length-1))return 0;var r=0,n=Math.min(t.length,e.length),o=n,i=0;while(r<o)t.substring(t.length-o,t.length-i)==e.substring(e.length-o,e.length-i)?(r=o,i=r):n=o,o=Math.floor((n-r)/2+r);return o}function f(t,e){var r=t.length>e.length?t:e,n=t.length>e.length?e:t;if(r.length<4||2*n.length<r.length)return null;function o(t,e,r){var n,o,i,a,c=t.substring(r,r+Math.floor(t.length/4)),s=-1,f="";while(-1!=(s=e.indexOf(c,s+1))){var h=u(t.substring(r),e.substring(s)),p=l(t.substring(0,r),e.substring(0,s));f.length<p+h&&(f=e.substring(s-p,s)+e.substring(s,s+h),n=t.substring(0,r-p),o=t.substring(r+h),i=e.substring(0,s-p),a=e.substring(s+h))}return 2*f.length>=t.length?[n,o,i,a,f]:null}var i,a,c,s,f,h=o(r,n,Math.ceil(r.length/4)),p=o(r,n,Math.ceil(r.length/2));if(!h&&!p)return null;i=p?h&&h[4].length>p[4].length?h:p:h,t.length>e.length?(a=i[0],c=i[1],s=i[2],f=i[3]):(s=i[0],f=i[1],a=i[2],c=i[3]);var d=i[4];return[a,c,s,f,d]}function h(t){t.push([o,""]);var e,i=0,a=0,c=0,s="",f="";while(i<t.length)switch(t[i][0]){case n:c++,f+=t[i][1],i++;break;case r:a++,s+=t[i][1],i++;break;case o:a+c>1?(0!==a&&0!==c&&(e=u(f,s),0!==e&&(i-a-c>0&&t[i-a-c-1][0]==o?t[i-a-c-1][1]+=f.substring(0,e):(t.splice(0,0,[o,f.substring(0,e)]),i++),f=f.substring(e),s=s.substring(e)),e=l(f,s),0!==e&&(t[i][1]=f.substring(f.length-e)+t[i][1],f=f.substring(0,f.length-e),s=s.substring(0,s.length-e))),0===a?t.splice(i-c,a+c,[n,f]):0===c?t.splice(i-a,a+c,[r,s]):t.splice(i-a-c,a+c,[r,s],[n,f]),i=i-a-c+(a?1:0)+(c?1:0)+1):0!==i&&t[i-1][0]==o?(t[i-1][1]+=t[i][1],t.splice(i,1)):i++,c=0,a=0,s="",f="";break}""===t[t.length-1][1]&&t.pop();var p=!1;i=1;while(i<t.length-1)t[i-1][0]==o&&t[i+1][0]==o&&(t[i][1].substring(t[i][1].length-t[i-1][1].length)==t[i-1][1]?(t[i][1]=t[i-1][1]+t[i][1].substring(0,t[i][1].length-t[i-1][1].length),t[i+1][1]=t[i-1][1]+t[i+1][1],t.splice(i-1,1),p=!0):t[i][1].substring(0,t[i+1][1].length)==t[i+1][1]&&(t[i-1][1]+=t[i+1][1],t[i][1]=t[i][1].substring(t[i+1][1].length)+t[i+1][1],t.splice(i+1,1),p=!0)),i++;p&&h(t)}var p=i;function d(t,e){if(0===e)return[o,t];for(var n=0,i=0;i<t.length;i++){var a=t[i];if(a[0]===r||a[0]===o){var c=n+a[1].length;if(e===c)return[i+1,t];if(e<c){t=t.slice();var s=e-n,u=[a[0],a[1].slice(0,s)],l=[a[0],a[1].slice(s)];return t.splice(i,1,u,l),[i+1,t]}n=c}}throw new Error("cursor_pos is out of bounds!")}function y(t,e){var r=d(t,e),n=r[1],i=r[0],a=n[i],c=n[i+1];if(null==a)return t;if(a[0]!==o)return t;if(null!=c&&a[1]+c[1]===c[1]+a[1])return n.splice(i,2,c,a),m(n,i,2);if(null!=c&&0===c[1].indexOf(a[1])){n.splice(i,2,[c[0],a[1]],[0,a[1]]);var s=c[1].slice(a[1].length);return s.length>0&&n.splice(i+2,0,[c[0],s]),m(n,i,3)}return t}function v(t){for(var e=!1,i=function(t){return t.charCodeAt(0)>=56320&&t.charCodeAt(0)<=57343},a=function(t){return t.charCodeAt(t.length-1)>=55296&&t.charCodeAt(t.length-1)<=56319},c=2;c<t.length;c+=1)t[c-2][0]===o&&a(t[c-2][1])&&t[c-1][0]===r&&i(t[c-1][1])&&t[c][0]===n&&i(t[c][1])&&(e=!0,t[c-1][1]=t[c-2][1].slice(-1)+t[c-1][1],t[c][1]=t[c-2][1].slice(-1)+t[c][1],t[c-2][1]=t[c-2][1].slice(0,-1));if(!e)return t;var s=[];for(c=0;c<t.length;c+=1)t[c][1].length>0&&s.push(t[c]);return s}function m(t,e,r){for(var n=e+r-1;n>=0&&n>=e-1;n--)if(n+1<t.length){var o=t[n],i=t[n+1];o[0]===i[1]&&t.splice(n,2,[o[0],o[1]+i[1]])}return t}p.INSERT=n,p.DELETE=r,p.EQUAL=o,t.exports=p},function(t,e){function r(t){var e=[];for(var r in t)e.push(r);return e}e=t.exports="function"===typeof Object.keys?Object.keys:r,e.shim=r},function(t,e){var r="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();function n(t){return"[object Arguments]"==Object.prototype.toString.call(t)}function o(t){return t&&"object"==typeof t&&"number"==typeof t.length&&Object.prototype.hasOwnProperty.call(t,"callee")&&!Object.prototype.propertyIsEnumerable.call(t,"callee")||!1}e=t.exports=r?n:o,e.supported=n,e.unsupported=o},function(t,e){"use strict";var r=Object.prototype.hasOwnProperty,n="~";function o(){}function i(t,e,r){this.fn=t,this.context=e,this.once=r||!1}function a(){this._events=new o,this._eventsCount=0}Object.create&&(o.prototype=Object.create(null),(new o).__proto__||(n=!1)),a.prototype.eventNames=function(){var t,e,o=[];if(0===this._eventsCount)return o;for(e in t=this._events)r.call(t,e)&&o.push(n?e.slice(1):e);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(t)):o},a.prototype.listeners=function(t,e){var r=n?n+t:t,o=this._events[r];if(e)return!!o;if(!o)return[];if(o.fn)return[o.fn];for(var i=0,a=o.length,c=new Array(a);i<a;i++)c[i]=o[i].fn;return c},a.prototype.emit=function(t,e,r,o,i,a){var c=n?n+t:t;if(!this._events[c])return!1;var s,u,l=this._events[c],f=arguments.length;if(l.fn){switch(l.once&&this.removeListener(t,l.fn,void 0,!0),f){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,e),!0;case 3:return l.fn.call(l.context,e,r),!0;case 4:return l.fn.call(l.context,e,r,o),!0;case 5:return l.fn.call(l.context,e,r,o,i),!0;case 6:return l.fn.call(l.context,e,r,o,i,a),!0}for(u=1,s=new Array(f-1);u<f;u++)s[u-1]=arguments[u];l.fn.apply(l.context,s)}else{var h,p=l.length;for(u=0;u<p;u++)switch(l[u].once&&this.removeListener(t,l[u].fn,void 0,!0),f){case 1:l[u].fn.call(l[u].context);break;case 2:l[u].fn.call(l[u].context,e);break;case 3:l[u].fn.call(l[u].context,e,r);break;case 4:l[u].fn.call(l[u].context,e,r,o);break;default:if(!s)for(h=1,s=new Array(f-1);h<f;h++)s[h-1]=arguments[h];l[u].fn.apply(l[u].context,s)}}return!0},a.prototype.on=function(t,e,r){var o=new i(e,r||this),a=n?n+t:t;return this._events[a]?this._events[a].fn?this._events[a]=[this._events[a],o]:this._events[a].push(o):(this._events[a]=o,this._eventsCount++),this},a.prototype.once=function(t,e,r){var o=new i(e,r||this,!0),a=n?n+t:t;return this._events[a]?this._events[a].fn?this._events[a]=[this._events[a],o]:this._events[a].push(o):(this._events[a]=o,this._eventsCount++),this},a.prototype.removeListener=function(t,e,r,i){var a=n?n+t:t;if(!this._events[a])return this;if(!e)return 0===--this._eventsCount?this._events=new o:delete this._events[a],this;var c=this._events[a];if(c.fn)c.fn!==e||i&&!c.once||r&&c.context!==r||(0===--this._eventsCount?this._events=new o:delete this._events[a]);else{for(var s=0,u=[],l=c.length;s<l;s++)(c[s].fn!==e||i&&!c[s].once||r&&c[s].context!==r)&&u.push(c[s]);u.length?this._events[a]=1===u.length?u[0]:u:0===--this._eventsCount?this._events=new o:delete this._events[a]}return this},a.prototype.removeAllListeners=function(t){var e;return t?(e=n?n+t:t,this._events[e]&&(0===--this._eventsCount?this._events=new o:delete this._events[e])):(this._events=new o,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prototype.setMaxListeners=function(){return this},a.prefixed=n,a.EventEmitter=a,"undefined"!==typeof t&&(t.exports=a)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.matchText=e.matchSpacing=e.matchNewline=e.matchBlot=e.matchAttributor=e.default=void 0;var n="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=function(){function t(t,e){var r=[],n=!0,o=!1,i=void 0;try{for(var a,c=t[Symbol.iterator]();!(n=(a=c.next()).done);n=!0)if(r.push(a.value),e&&r.length===e)break}catch(s){o=!0,i=s}finally{try{!n&&c["return"]&&c["return"]()}finally{if(o)throw i}}return r}return function(e,r){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),a=r(3),c=S(a),s=r(2),u=S(s),l=r(0),f=S(l),h=r(5),p=S(h),d=r(10),y=S(d),v=r(9),m=S(v),g=r(36),b=r(37),w=r(13),_=S(w),x=r(26),O=r(38),k=r(39),E=r(40);function S(t){return t&&t.__esModule?t:{default:t}}function j(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function L(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function P(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function N(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var A=(0,y.default)("quill:clipboard"),T="__ql-matcher",C=[[Node.TEXT_NODE,X],[Node.TEXT_NODE,Y],["br",z],[Node.ELEMENT_NODE,Y],[Node.ELEMENT_NODE,G],[Node.ELEMENT_NODE,W],[Node.ELEMENT_NODE,U],[Node.ELEMENT_NODE,Z],["li",H],["b",V.bind(V,"bold")],["i",V.bind(V,"italic")],["style",K]],I=[g.AlignAttribute,O.DirectionAttribute].reduce((function(t,e){return t[e.keyName]=e,t}),{}),M=[g.AlignStyle,b.BackgroundStyle,x.ColorStyle,O.DirectionStyle,k.FontStyle,E.SizeStyle].reduce((function(t,e){return t[e.keyName]=e,t}),{}),D=function(t){function e(t,r){L(this,e);var n=P(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,r));return n.quill.root.addEventListener("paste",n.onPaste.bind(n)),n.container=n.quill.addContainer("ql-clipboard"),n.container.setAttribute("contenteditable",!0),n.container.setAttribute("tabindex",-1),n.matchers=[],C.concat(n.options.matchers).forEach((function(t){var e=o(t,2),i=e[0],a=e[1];(r.matchVisual||a!==W)&&n.addMatcher(i,a)})),n}return N(e,t),i(e,[{key:"addMatcher",value:function(t,e){this.matchers.push([t,e])}},{key:"convert",value:function(t){if("string"===typeof t)return this.container.innerHTML=t.replace(/\>\r?\n +\</g,"><"),this.convert();var e=this.quill.getFormat(this.quill.selection.savedRange.index);if(e[_.default.blotName]){var r=this.container.innerText;return this.container.innerHTML="",(new u.default).insert(r,j({},_.default.blotName,e[_.default.blotName]))}var n=this.prepareMatching(),i=o(n,2),a=i[0],c=i[1],s=$(this.container,a,c);return B(s,"\n")&&null==s.ops[s.ops.length-1].attributes&&(s=s.compose((new u.default).retain(s.length()-1).delete(1))),A.log("convert",this.container.innerHTML,s),this.container.innerHTML="",s}},{key:"dangerouslyPasteHTML",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:p.default.sources.API;if("string"===typeof t)this.quill.setContents(this.convert(t),e),this.quill.setSelection(0,p.default.sources.SILENT);else{var n=this.convert(e);this.quill.updateContents((new u.default).retain(t).concat(n),r),this.quill.setSelection(t+n.length(),p.default.sources.SILENT)}}},{key:"onPaste",value:function(t){var e=this;if(!t.defaultPrevented&&this.quill.isEnabled()){var r=this.quill.getSelection(),n=(new u.default).retain(r.index),o=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(p.default.sources.SILENT),setTimeout((function(){n=n.concat(e.convert()).delete(r.length),e.quill.updateContents(n,p.default.sources.USER),e.quill.setSelection(n.length()-r.length,p.default.sources.SILENT),e.quill.scrollingContainer.scrollTop=o,e.quill.focus()}),1)}}},{key:"prepareMatching",value:function(){var t=this,e=[],r=[];return this.matchers.forEach((function(n){var i=o(n,2),a=i[0],c=i[1];switch(a){case Node.TEXT_NODE:r.push(c);break;case Node.ELEMENT_NODE:e.push(c);break;default:[].forEach.call(t.container.querySelectorAll(a),(function(t){t[T]=t[T]||[],t[T].push(c)}));break}})),[e,r]}}]),e}(m.default);function q(t,e,r){return"object"===("undefined"===typeof e?"undefined":n(e))?Object.keys(e).reduce((function(t,r){return q(t,r,e[r])}),t):t.reduce((function(t,n){return n.attributes&&n.attributes[e]?t.push(n):t.insert(n.insert,(0,c.default)({},j({},e,r),n.attributes))}),new u.default)}function R(t){if(t.nodeType!==Node.ELEMENT_NODE)return{};var e="__ql-computed-style";return t[e]||(t[e]=window.getComputedStyle(t))}function B(t,e){for(var r="",n=t.ops.length-1;n>=0&&r.length<e.length;--n){var o=t.ops[n];if("string"!==typeof o.insert)break;r=o.insert+r}return r.slice(-1*e.length)===e}function F(t){if(0===t.childNodes.length)return!1;var e=R(t);return["block","list-item"].indexOf(e.display)>-1}function $(t,e,r){return t.nodeType===t.TEXT_NODE?r.reduce((function(e,r){return r(t,e)}),new u.default):t.nodeType===t.ELEMENT_NODE?[].reduce.call(t.childNodes||[],(function(n,o){var i=$(o,e,r);return o.nodeType===t.ELEMENT_NODE&&(i=e.reduce((function(t,e){return e(o,t)}),i),i=(o[T]||[]).reduce((function(t,e){return e(o,t)}),i)),n.concat(i)}),new u.default):new u.default}function V(t,e,r){return q(r,t,!0)}function U(t,e){var r=f.default.Attributor.Attribute.keys(t),n=f.default.Attributor.Class.keys(t),o=f.default.Attributor.Style.keys(t),i={};return r.concat(n).concat(o).forEach((function(e){var r=f.default.query(e,f.default.Scope.ATTRIBUTE);null!=r&&(i[r.attrName]=r.value(t),i[r.attrName])||(r=I[e],null==r||r.attrName!==e&&r.keyName!==e||(i[r.attrName]=r.value(t)||void 0),r=M[e],null==r||r.attrName!==e&&r.keyName!==e||(r=M[e],i[r.attrName]=r.value(t)||void 0))})),Object.keys(i).length>0&&(e=q(e,i)),e}function G(t,e){var r=f.default.query(t);if(null==r)return e;if(r.prototype instanceof f.default.Embed){var n={},o=r.value(t);null!=o&&(n[r.blotName]=o,e=(new u.default).insert(n,r.formats(t)))}else"function"===typeof r.formats&&(e=q(e,r.blotName,r.formats(t)));return e}function z(t,e){return B(e,"\n")||e.insert("\n"),e}function K(){return new u.default}function H(t,e){var r=f.default.query(t);if(null==r||"list-item"!==r.blotName||!B(e,"\n"))return e;var n=-1,o=t.parentNode;while(!o.classList.contains("ql-clipboard"))"list"===(f.default.query(o)||{}).blotName&&(n+=1),o=o.parentNode;return n<=0?e:e.compose((new u.default).retain(e.length()-1).retain(1,{indent:n}))}function Y(t,e){return B(e,"\n")||(F(t)||e.length()>0&&t.nextSibling&&F(t.nextSibling))&&e.insert("\n"),e}function W(t,e){if(F(t)&&null!=t.nextElementSibling&&!B(e,"\n\n")){var r=t.offsetHeight+parseFloat(R(t).marginTop)+parseFloat(R(t).marginBottom);t.nextElementSibling.offsetTop>t.offsetTop+1.5*r&&e.insert("\n")}return e}function Z(t,e){var r={},n=t.style||{};return n.fontStyle&&"italic"===R(t).fontStyle&&(r.italic=!0),n.fontWeight&&(R(t).fontWeight.startsWith("bold")||parseInt(R(t).fontWeight)>=700)&&(r.bold=!0),Object.keys(r).length>0&&(e=q(e,r)),parseFloat(n.textIndent||0)>0&&(e=(new u.default).insert("\t").concat(e)),e}function X(t,e){var r=t.data;if("O:P"===t.parentNode.tagName)return e.insert(r.trim());if(0===r.trim().length&&t.parentNode.classList.contains("ql-clipboard"))return e;if(!R(t.parentNode).whiteSpace.startsWith("pre")){var n=function(t,e){return e=e.replace(/[^\u00a0]/g,""),e.length<1&&t?" ":e};r=r.replace(/\r\n/g," ").replace(/\n/g," "),r=r.replace(/\s\s+/g,n.bind(n,!0)),(null==t.previousSibling&&F(t.parentNode)||null!=t.previousSibling&&F(t.previousSibling))&&(r=r.replace(/^\s+/,n.bind(n,!1))),(null==t.nextSibling&&F(t.parentNode)||null!=t.nextSibling&&F(t.nextSibling))&&(r=r.replace(/\s+$/,n.bind(n,!1)))}return e.insert(r)}D.DEFAULTS={matchers:[],matchVisual:!0},e.default=D,e.matchAttributor=U,e.matchBlot=G,e.matchNewline=Y,e.matchSpacing=W,e.matchText=X},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),o=function t(e,r,n){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,r);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,r,n)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(n):void 0},i=r(6),a=c(i);function c(t){return t&&t.__esModule?t:{default:t}}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function l(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var f=function(t){function e(){return s(this,e),u(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return l(e,t),n(e,[{key:"optimize",value:function(t){o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return o(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),e}(a.default);f.blotName="bold",f.tagName=["STRONG","B"],e.default=f},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.addControls=e.default=void 0;var n=function(){function t(t,e){var r=[],n=!0,o=!1,i=void 0;try{for(var a,c=t[Symbol.iterator]();!(n=(a=c.next()).done);n=!0)if(r.push(a.value),e&&r.length===e)break}catch(s){o=!0,i=s}finally{try{!n&&c["return"]&&c["return"]()}finally{if(o)throw i}}return r}return function(e,r){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),i=r(2),a=y(i),c=r(0),s=y(c),u=r(5),l=y(u),f=r(10),h=y(f),p=r(9),d=y(p);function y(t){return t&&t.__esModule?t:{default:t}}function v(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function m(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function g(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function b(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var w=(0,h.default)("quill:toolbar"),_=function(t){function e(t,r){m(this,e);var o,i=g(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,r));if(Array.isArray(i.options.container)){var a=document.createElement("div");O(a,i.options.container),t.container.parentNode.insertBefore(a,t.container),i.container=a}else"string"===typeof i.options.container?i.container=document.querySelector(i.options.container):i.container=i.options.container;return i.container instanceof HTMLElement?(i.container.classList.add("ql-toolbar"),i.controls=[],i.handlers={},Object.keys(i.options.handlers).forEach((function(t){i.addHandler(t,i.options.handlers[t])})),[].forEach.call(i.container.querySelectorAll("button, select"),(function(t){i.attach(t)})),i.quill.on(l.default.events.EDITOR_CHANGE,(function(t,e){t===l.default.events.SELECTION_CHANGE&&i.update(e)})),i.quill.on(l.default.events.SCROLL_OPTIMIZE,(function(){var t=i.quill.selection.getRange(),e=n(t,1),r=e[0];i.update(r)})),i):(o=w.error("Container required for toolbar",i.options),g(i,o))}return b(e,t),o(e,[{key:"addHandler",value:function(t,e){this.handlers[t]=e}},{key:"attach",value:function(t){var e=this,r=[].find.call(t.classList,(function(t){return 0===t.indexOf("ql-")}));if(r){if(r=r.slice("ql-".length),"BUTTON"===t.tagName&&t.setAttribute("type","button"),null==this.handlers[r]){if(null!=this.quill.scroll.whitelist&&null==this.quill.scroll.whitelist[r])return void w.warn("ignoring attaching to disabled format",r,t);if(null==s.default.query(r))return void w.warn("ignoring attaching to nonexistent format",r,t)}var o="SELECT"===t.tagName?"change":"click";t.addEventListener(o,(function(o){var i=void 0;if("SELECT"===t.tagName){if(t.selectedIndex<0)return;var c=t.options[t.selectedIndex];i=!c.hasAttribute("selected")&&(c.value||!1)}else i=!t.classList.contains("ql-active")&&(t.value||!t.hasAttribute("value")),o.preventDefault();e.quill.focus();var u=e.quill.selection.getRange(),f=n(u,1),h=f[0];if(null!=e.handlers[r])e.handlers[r].call(e,i);else if(s.default.query(r).prototype instanceof s.default.Embed){if(i=prompt("Enter "+r),!i)return;e.quill.updateContents((new a.default).retain(h.index).delete(h.length).insert(v({},r,i)),l.default.sources.USER)}else e.quill.format(r,i,l.default.sources.USER);e.update(h)})),this.controls.push([r,t])}}},{key:"update",value:function(t){var e=null==t?{}:this.quill.getFormat(t);this.controls.forEach((function(r){var o=n(r,2),i=o[0],a=o[1];if("SELECT"===a.tagName){var c=void 0;if(null==t)c=null;else if(null==e[i])c=a.querySelector("option[selected]");else if(!Array.isArray(e[i])){var s=e[i];"string"===typeof s&&(s=s.replace(/\"/g,'\\"')),c=a.querySelector('option[value="'+s+'"]')}null==c?(a.value="",a.selectedIndex=-1):c.selected=!0}else if(null==t)a.classList.remove("ql-active");else if(a.hasAttribute("value")){var u=e[i]===a.getAttribute("value")||null!=e[i]&&e[i].toString()===a.getAttribute("value")||null==e[i]&&!a.getAttribute("value");a.classList.toggle("ql-active",u)}else a.classList.toggle("ql-active",null!=e[i])}))}}]),e}(d.default);function x(t,e,r){var n=document.createElement("button");n.setAttribute("type","button"),n.classList.add("ql-"+e),null!=r&&(n.value=r),t.appendChild(n)}function O(t,e){Array.isArray(e[0])||(e=[e]),e.forEach((function(e){var r=document.createElement("span");r.classList.add("ql-formats"),e.forEach((function(t){if("string"===typeof t)x(r,t);else{var e=Object.keys(t)[0],n=t[e];Array.isArray(n)?k(r,e,n):x(r,e,n)}})),t.appendChild(r)}))}function k(t,e,r){var n=document.createElement("select");n.classList.add("ql-"+e),r.forEach((function(t){var e=document.createElement("option");!1!==t?e.setAttribute("value",t):e.setAttribute("selected","selected"),n.appendChild(e)})),t.appendChild(n)}_.DEFAULTS={},_.DEFAULTS={container:null,handlers:{clean:function(){var t=this,e=this.quill.getSelection();if(null!=e)if(0==e.length){var r=this.quill.getFormat();Object.keys(r).forEach((function(e){null!=s.default.query(e,s.default.Scope.INLINE)&&t.quill.format(e,!1)}))}else this.quill.removeFormat(e,l.default.sources.USER)},direction:function(t){var e=this.quill.getFormat()["align"];"rtl"===t&&null==e?this.quill.format("align","right",l.default.sources.USER):t||"right"!==e||this.quill.format("align",!1,l.default.sources.USER),this.quill.format("direction",t,l.default.sources.USER)},indent:function(t){var e=this.quill.getSelection(),r=this.quill.getFormat(e),n=parseInt(r.indent||0);if("+1"===t||"-1"===t){var o="+1"===t?1:-1;"rtl"===r.direction&&(o*=-1),this.quill.format("indent",n+o,l.default.sources.USER)}},link:function(t){!0===t&&(t=prompt("Enter link URL:")),this.quill.format("link",t,l.default.sources.USER)},list:function(t){var e=this.quill.getSelection(),r=this.quill.getFormat(e);"check"===t?"checked"===r["list"]||"unchecked"===r["list"]?this.quill.format("list",!1,l.default.sources.USER):this.quill.format("list","unchecked",l.default.sources.USER):this.quill.format("list",t,l.default.sources.USER)}}},e.default=_,e.addControls=O},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),o=function t(e,r,n){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,r);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,r,n)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(n):void 0},i=r(28),a=c(i);function c(t){return t&&t.__esModule?t:{default:t}}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function l(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var f=function(t){function e(t,r){s(this,e);var n=u(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.label.innerHTML=r,n.container.classList.add("ql-color-picker"),[].slice.call(n.container.querySelectorAll(".ql-picker-item"),0,7).forEach((function(t){t.classList.add("ql-primary")})),n}return l(e,t),n(e,[{key:"buildItem",value:function(t){var r=o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"buildItem",this).call(this,t);return r.style.backgroundColor=t.getAttribute("value")||"",r}},{key:"selectItem",value:function(t,r){o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"selectItem",this).call(this,t,r);var n=this.label.querySelector(".ql-color-label"),i=t&&t.getAttribute("data-value")||"";n&&("line"===n.tagName?n.style.stroke=i:n.style.fill=i)}}]),e}(a.default);e.default=f},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),o=function t(e,r,n){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,r);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,r,n)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(n):void 0},i=r(28),a=c(i);function c(t){return t&&t.__esModule?t:{default:t}}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function l(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var f=function(t){function e(t,r){s(this,e);var n=u(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.container.classList.add("ql-icon-picker"),[].forEach.call(n.container.querySelectorAll(".ql-picker-item"),(function(t){t.innerHTML=r[t.getAttribute("data-value")||""]})),n.defaultItem=n.container.querySelector(".ql-selected"),n.selectItem(n.defaultItem),n}return l(e,t),n(e,[{key:"selectItem",value:function(t,r){o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"selectItem",this).call(this,t,r),t=t||this.defaultItem,this.label.innerHTML=t.innerHTML}}]),e}(a.default);e.default=f},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}();function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var i=function(){function t(e,r){var n=this;o(this,t),this.quill=e,this.boundsContainer=r||document.body,this.root=e.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",(function(){n.root.style.marginTop=-1*n.quill.root.scrollTop+"px"})),this.hide()}return n(t,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(t){var e=t.left+t.width/2-this.root.offsetWidth/2,r=t.bottom+this.quill.root.scrollTop;this.root.style.left=e+"px",this.root.style.top=r+"px",this.root.classList.remove("ql-flip");var n=this.boundsContainer.getBoundingClientRect(),o=this.root.getBoundingClientRect(),i=0;if(o.right>n.right&&(i=n.right-o.right,this.root.style.left=e+i+"px"),o.left<n.left&&(i=n.left-o.left,this.root.style.left=e+i+"px"),o.bottom>n.bottom){var a=o.bottom-o.top,c=t.bottom-t.top+a;this.root.style.top=r-c+"px",this.root.classList.add("ql-flip")}return i}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),t}();e.default=i},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){var r=[],n=!0,o=!1,i=void 0;try{for(var a,c=t[Symbol.iterator]();!(n=(a=c.next()).done);n=!0)if(r.push(a.value),e&&r.length===e)break}catch(s){o=!0,i=s}finally{try{!n&&c["return"]&&c["return"]()}finally{if(o)throw i}}return r}return function(e,r){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=function t(e,r,n){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,r);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,r,n)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(n):void 0},i=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),a=r(3),c=m(a),s=r(8),u=m(s),l=r(43),f=m(l),h=r(27),p=m(h),d=r(15),y=r(41),v=m(y);function m(t){return t&&t.__esModule?t:{default:t}}function g(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function b(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function w(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var _=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],x=function(t){function e(t,r){g(this,e),null!=r.modules.toolbar&&null==r.modules.toolbar.container&&(r.modules.toolbar.container=_);var n=b(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,r));return n.quill.container.classList.add("ql-snow"),n}return w(e,t),i(e,[{key:"extendToolbar",value:function(t){t.container.classList.add("ql-snow"),this.buildButtons([].slice.call(t.container.querySelectorAll("button")),v.default),this.buildPickers([].slice.call(t.container.querySelectorAll("select")),v.default),this.tooltip=new O(this.quill,this.options.bounds),t.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},(function(e,r){t.handlers["link"].call(t,!r.format.link)}))}}]),e}(f.default);x.DEFAULTS=(0,c.default)(!0,{},f.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(t){if(t){var e=this.quill.getSelection();if(null==e||0==e.length)return;var r=this.quill.getText(e);/^\S+@\S+\.\S+$/.test(r)&&0!==r.indexOf("mailto:")&&(r="mailto:"+r);var n=this.quill.theme.tooltip;n.edit("link",r)}else this.quill.format("link",!1)}}}}});var O=function(t){function e(t,r){g(this,e);var n=b(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,r));return n.preview=n.root.querySelector("a.ql-preview"),n}return w(e,t),i(e,[{key:"listen",value:function(){var t=this;o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",(function(e){t.root.classList.contains("ql-editing")?t.save():t.edit("link",t.preview.textContent),e.preventDefault()})),this.root.querySelector("a.ql-remove").addEventListener("click",(function(e){if(null!=t.linkRange){var r=t.linkRange;t.restoreFocus(),t.quill.formatText(r,"link",!1,u.default.sources.USER),delete t.linkRange}e.preventDefault(),t.hide()})),this.quill.on(u.default.events.SELECTION_CHANGE,(function(e,r,o){if(null!=e){if(0===e.length&&o===u.default.sources.USER){var i=t.quill.scroll.descendant(p.default,e.index),a=n(i,2),c=a[0],s=a[1];if(null!=c){t.linkRange=new d.Range(e.index-s,c.length());var l=p.default.formats(c.domNode);return t.preview.textContent=l,t.preview.setAttribute("href",l),t.show(),void t.position(t.quill.getBounds(t.linkRange))}}else delete t.linkRange;t.hide()}}))}},{key:"show",value:function(){o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),e}(l.BaseTooltip);O.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),e.default=x},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(29),o=rt(n),i=r(36),a=r(38),c=r(64),s=r(65),u=rt(s),l=r(66),f=rt(l),h=r(67),p=rt(h),d=r(37),y=r(26),v=r(39),m=r(40),g=r(56),b=rt(g),w=r(68),_=rt(w),x=r(27),O=rt(x),k=r(69),E=rt(k),S=r(70),j=rt(S),L=r(71),P=rt(L),N=r(72),A=rt(N),T=r(73),C=rt(T),I=r(13),M=rt(I),D=r(74),q=rt(D),R=r(75),B=rt(R),F=r(57),$=rt(F),V=r(41),U=rt(V),G=r(28),z=rt(G),K=r(59),H=rt(K),Y=r(60),W=rt(Y),Z=r(61),X=rt(Z),J=r(108),Q=rt(J),tt=r(62),et=rt(tt);function rt(t){return t&&t.__esModule?t:{default:t}}o.default.register({"attributors/attribute/direction":a.DirectionAttribute,"attributors/class/align":i.AlignClass,"attributors/class/background":d.BackgroundClass,"attributors/class/color":y.ColorClass,"attributors/class/direction":a.DirectionClass,"attributors/class/font":v.FontClass,"attributors/class/size":m.SizeClass,"attributors/style/align":i.AlignStyle,"attributors/style/background":d.BackgroundStyle,"attributors/style/color":y.ColorStyle,"attributors/style/direction":a.DirectionStyle,"attributors/style/font":v.FontStyle,"attributors/style/size":m.SizeStyle},!0),o.default.register({"formats/align":i.AlignClass,"formats/direction":a.DirectionClass,"formats/indent":c.IndentClass,"formats/background":d.BackgroundStyle,"formats/color":y.ColorStyle,"formats/font":v.FontClass,"formats/size":m.SizeClass,"formats/blockquote":u.default,"formats/code-block":M.default,"formats/header":f.default,"formats/list":p.default,"formats/bold":b.default,"formats/code":I.Code,"formats/italic":_.default,"formats/link":O.default,"formats/script":E.default,"formats/strike":j.default,"formats/underline":P.default,"formats/image":A.default,"formats/video":C.default,"formats/list/item":h.ListItem,"modules/formula":q.default,"modules/syntax":B.default,"modules/toolbar":$.default,"themes/bubble":Q.default,"themes/snow":et.default,"ui/icons":U.default,"ui/picker":z.default,"ui/icon-picker":W.default,"ui/color-picker":H.default,"ui/tooltip":X.default},!0),e.default=o.default},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IndentClass=void 0;var n=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),o=function t(e,r,n){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,r);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,r,n)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(n):void 0},i=r(0),a=c(i);function c(t){return t&&t.__esModule?t:{default:t}}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function l(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var f=function(t){function e(){return s(this,e),u(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return l(e,t),n(e,[{key:"add",value:function(t,r){if("+1"===r||"-1"===r){var n=this.value(t)||0;r="+1"===r?n+1:n-1}return 0===r?(this.remove(t),!0):o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"add",this).call(this,t,r)}},{key:"canAdd",value:function(t,r){return o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"canAdd",this).call(this,t,r)||o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"canAdd",this).call(this,t,parseInt(r))}},{key:"value",value:function(t){return parseInt(o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"value",this).call(this,t))||void 0}}]),e}(a.default.Attributor.Class),h=new f("indent","ql-indent",{scope:a.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});e.IndentClass=h},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(4),o=i(n);function i(t){return t&&t.__esModule?t:{default:t}}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function s(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var u=function(t){function e(){return a(this,e),c(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return s(e,t),e}(o.default);u.blotName="blockquote",u.tagName="blockquote",e.default=u},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),o=r(4),i=a(o);function a(t){return t&&t.__esModule?t:{default:t}}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function u(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var l=function(t){function e(){return c(this,e),s(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return u(e,t),n(e,null,[{key:"formats",value:function(t){return this.tagName.indexOf(t.tagName)+1}}]),e}(i.default);l.blotName="header",l.tagName=["H1","H2","H3","H4","H5","H6"],e.default=l},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.ListItem=void 0;var n=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),o=function t(e,r,n){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,r);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,r,n)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(n):void 0},i=r(0),a=f(i),c=r(4),s=f(c),u=r(25),l=f(u);function f(t){return t&&t.__esModule?t:{default:t}}function h(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function d(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function y(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var v=function(t){function e(){return p(this,e),d(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return y(e,t),n(e,[{key:"format",value:function(t,r){t!==m.blotName||r?o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,r):this.replaceWith(a.default.create(this.statics.scope))}},{key:"remove",value:function(){null==this.prev&&null==this.next?this.parent.remove():o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(t,r){return this.parent.isolate(this.offset(this.parent),this.length()),t===this.parent.statics.blotName?(this.parent.replaceWith(t,r),this):(this.parent.unwrap(),o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replaceWith",this).call(this,t,r))}}],[{key:"formats",value:function(t){return t.tagName===this.tagName?void 0:o(e.__proto__||Object.getPrototypeOf(e),"formats",this).call(this,t)}}]),e}(s.default);v.blotName="list-item",v.tagName="LI";var m=function(t){function e(t){p(this,e);var r=d(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t)),n=function(e){if(e.target.parentNode===t){var n=r.statics.formats(t),o=a.default.find(e.target);"checked"===n?o.format("list","unchecked"):"unchecked"===n&&o.format("list","checked")}};return t.addEventListener("touchstart",n),t.addEventListener("mousedown",n),r}return y(e,t),n(e,null,[{key:"create",value:function(t){var r="ordered"===t?"OL":"UL",n=o(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,r);return"checked"!==t&&"unchecked"!==t||n.setAttribute("data-checked","checked"===t),n}},{key:"formats",value:function(t){return"OL"===t.tagName?"ordered":"UL"===t.tagName?t.hasAttribute("data-checked")?"true"===t.getAttribute("data-checked")?"checked":"unchecked":"bullet":void 0}}]),n(e,[{key:"format",value:function(t,e){this.children.length>0&&this.children.tail.format(t,e)}},{key:"formats",value:function(){return h({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(t,r){if(t instanceof v)o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertBefore",this).call(this,t,r);else{var n=null==r?this.length():r.offset(this),i=this.split(n);i.parent.insertBefore(t,i)}}},{key:"optimize",value:function(t){o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t);var r=this.next;null!=r&&r.prev===this&&r.statics.blotName===this.statics.blotName&&r.domNode.tagName===this.domNode.tagName&&r.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(r.moveChildren(this),r.remove())}},{key:"replace",value:function(t){if(t.statics.blotName!==this.statics.blotName){var r=a.default.create(this.statics.defaultChild);t.moveChildren(r),this.appendChild(r)}o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replace",this).call(this,t)}}]),e}(l.default);m.blotName="list",m.scope=a.default.Scope.BLOCK_BLOT,m.tagName=["OL","UL"],m.defaultChild="list-item",m.allowedChildren=[v],e.ListItem=v,e.default=m},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(56),o=i(n);function i(t){return t&&t.__esModule?t:{default:t}}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function s(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var u=function(t){function e(){return a(this,e),c(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return s(e,t),e}(o.default);u.blotName="italic",u.tagName=["EM","I"],e.default=u},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),o=function t(e,r,n){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,r);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,r,n)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(n):void 0},i=r(6),a=c(i);function c(t){return t&&t.__esModule?t:{default:t}}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function l(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var f=function(t){function e(){return s(this,e),u(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return l(e,t),n(e,null,[{key:"create",value:function(t){return"super"===t?document.createElement("sup"):"sub"===t?document.createElement("sub"):o(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t)}},{key:"formats",value:function(t){return"SUB"===t.tagName?"sub":"SUP"===t.tagName?"super":void 0}}]),e}(a.default);f.blotName="script",f.tagName=["SUB","SUP"],e.default=f},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(6),o=i(n);function i(t){return t&&t.__esModule?t:{default:t}}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function s(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var u=function(t){function e(){return a(this,e),c(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return s(e,t),e}(o.default);u.blotName="strike",u.tagName="S",e.default=u},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(6),o=i(n);function i(t){return t&&t.__esModule?t:{default:t}}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function s(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var u=function(t){function e(){return a(this,e),c(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return s(e,t),e}(o.default);u.blotName="underline",u.tagName="U",e.default=u},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),o=function t(e,r,n){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,r);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,r,n)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(n):void 0},i=r(0),a=s(i),c=r(27);function s(t){return t&&t.__esModule?t:{default:t}}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function f(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var h=["alt","height","width"],p=function(t){function e(){return u(this,e),l(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return f(e,t),n(e,[{key:"format",value:function(t,r){h.indexOf(t)>-1?r?this.domNode.setAttribute(t,r):this.domNode.removeAttribute(t):o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,r)}}],[{key:"create",value:function(t){var r=o(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return"string"===typeof t&&r.setAttribute("src",this.sanitize(t)),r}},{key:"formats",value:function(t){return h.reduce((function(e,r){return t.hasAttribute(r)&&(e[r]=t.getAttribute(r)),e}),{})}},{key:"match",value:function(t){return/\.(jpe?g|gif|png)$/.test(t)||/^data:image\/.+;base64/.test(t)}},{key:"sanitize",value:function(t){return(0,c.sanitize)(t,["http","https","data"])?t:"//:0"}},{key:"value",value:function(t){return t.getAttribute("src")}}]),e}(a.default.Embed);p.blotName="image",p.tagName="IMG",e.default=p},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),o=function t(e,r,n){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,r);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,r,n)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(n):void 0},i=r(4),a=r(27),c=s(a);function s(t){return t&&t.__esModule?t:{default:t}}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function f(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var h=["height","width"],p=function(t){function e(){return u(this,e),l(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return f(e,t),n(e,[{key:"format",value:function(t,r){h.indexOf(t)>-1?r?this.domNode.setAttribute(t,r):this.domNode.removeAttribute(t):o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,r)}}],[{key:"create",value:function(t){var r=o(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return r.setAttribute("frameborder","0"),r.setAttribute("allowfullscreen",!0),r.setAttribute("src",this.sanitize(t)),r}},{key:"formats",value:function(t){return h.reduce((function(e,r){return t.hasAttribute(r)&&(e[r]=t.getAttribute(r)),e}),{})}},{key:"sanitize",value:function(t){return c.default.sanitize(t)}},{key:"value",value:function(t){return t.getAttribute("src")}}]),e}(i.BlockEmbed);p.blotName="video",p.className="ql-video",p.tagName="IFRAME",e.default=p},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.FormulaBlot=void 0;var n=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),o=function t(e,r,n){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,r);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,r,n)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(n):void 0},i=r(35),a=f(i),c=r(5),s=f(c),u=r(9),l=f(u);function f(t){return t&&t.__esModule?t:{default:t}}function h(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function p(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function d(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var y=function(t){function e(){return h(this,e),p(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return d(e,t),n(e,null,[{key:"create",value:function(t){var r=o(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return"string"===typeof t&&(window.katex.render(t,r,{throwOnError:!1,errorColor:"#f00"}),r.setAttribute("data-value",t)),r}},{key:"value",value:function(t){return t.getAttribute("data-value")}}]),e}(a.default);y.blotName="formula",y.className="ql-formula",y.tagName="SPAN";var v=function(t){function e(){h(this,e);var t=p(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));if(null==window.katex)throw new Error("Formula module requires KaTeX.");return t}return d(e,t),n(e,null,[{key:"register",value:function(){s.default.register(y,!0)}}]),e}(l.default);e.FormulaBlot=y,e.default=v},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.CodeToken=e.CodeBlock=void 0;var n=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),o=function t(e,r,n){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,r);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,r,n)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(n):void 0},i=r(0),a=p(i),c=r(5),s=p(c),u=r(9),l=p(u),f=r(13),h=p(f);function p(t){return t&&t.__esModule?t:{default:t}}function d(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function y(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function v(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var m=function(t){function e(){return d(this,e),y(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return v(e,t),n(e,[{key:"replaceWith",value:function(t){this.domNode.textContent=this.domNode.textContent,this.attach(),o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replaceWith",this).call(this,t)}},{key:"highlight",value:function(t){var e=this.domNode.textContent;this.cachedText!==e&&((e.trim().length>0||null==this.cachedText)&&(this.domNode.innerHTML=t(e),this.domNode.normalize(),this.attach()),this.cachedText=e)}}]),e}(h.default);m.className="ql-syntax";var g=new a.default.Attributor.Class("token","hljs",{scope:a.default.Scope.INLINE}),b=function(t){function e(t,r){d(this,e);var n=y(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,r));if("function"!==typeof n.options.highlight)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var o=null;return n.quill.on(s.default.events.SCROLL_OPTIMIZE,(function(){clearTimeout(o),o=setTimeout((function(){n.highlight(),o=null}),n.options.interval)})),n.highlight(),n}return v(e,t),n(e,null,[{key:"register",value:function(){s.default.register(g,!0),s.default.register(m,!0)}}]),n(e,[{key:"highlight",value:function(){var t=this;if(!this.quill.selection.composing){this.quill.update(s.default.sources.USER);var e=this.quill.getSelection();this.quill.scroll.descendants(m).forEach((function(e){e.highlight(t.options.highlight)})),this.quill.update(s.default.sources.SILENT),null!=e&&this.quill.setSelection(e,s.default.sources.SILENT)}}}]),e}(l.default);b.DEFAULTS={highlight:function(){return null==window.hljs?null:function(t){var e=window.hljs.highlightAuto(t);return e.value}}(),interval:1e3},e.CodeBlock=m,e.CodeToken=g,e.default=b},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(t,e){t.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(t,e){t.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(t,e){t.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(t,e){t.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.BubbleTooltip=void 0;var n=function t(e,r,n){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,r);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,r,n)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(n):void 0},o=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),i=r(3),a=d(i),c=r(8),s=d(c),u=r(43),l=d(u),f=r(15),h=r(41),p=d(h);function d(t){return t&&t.__esModule?t:{default:t}}function y(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function v(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function m(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var g=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],b=function(t){function e(t,r){y(this,e),null!=r.modules.toolbar&&null==r.modules.toolbar.container&&(r.modules.toolbar.container=g);var n=v(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,r));return n.quill.container.classList.add("ql-bubble"),n}return m(e,t),o(e,[{key:"extendToolbar",value:function(t){this.tooltip=new w(this.quill,this.options.bounds),this.tooltip.root.appendChild(t.container),this.buildButtons([].slice.call(t.container.querySelectorAll("button")),p.default),this.buildPickers([].slice.call(t.container.querySelectorAll("select")),p.default)}}]),e}(l.default);b.DEFAULTS=(0,a.default)(!0,{},l.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(t){t?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var w=function(t){function e(t,r){y(this,e);var n=v(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,r));return n.quill.on(s.default.events.EDITOR_CHANGE,(function(t,e,r,o){if(t===s.default.events.SELECTION_CHANGE)if(null!=e&&e.length>0&&o===s.default.sources.USER){n.show(),n.root.style.left="0px",n.root.style.width="",n.root.style.width=n.root.offsetWidth+"px";var i=n.quill.getLines(e.index,e.length);if(1===i.length)n.position(n.quill.getBounds(e));else{var a=i[i.length-1],c=n.quill.getIndex(a),u=Math.min(a.length()-1,e.index+e.length-c),l=n.quill.getBounds(new f.Range(c,u));n.position(l)}}else document.activeElement!==n.textbox&&n.quill.hasFocus()&&n.hide()})),n}return m(e,t),o(e,[{key:"listen",value:function(){var t=this;n(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",(function(){t.root.classList.remove("ql-editing")})),this.quill.on(s.default.events.SCROLL_OPTIMIZE,(function(){setTimeout((function(){if(!t.root.classList.contains("ql-hidden")){var e=t.quill.getSelection();null!=e&&t.position(t.quill.getBounds(e))}}),1)}))}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(t){var r=n(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"position",this).call(this,t),o=this.root.querySelector(".ql-tooltip-arrow");if(o.style.marginLeft="",0===r)return r;o.style.marginLeft=-1*r-o.offsetWidth/2+"px"}}]),e}(u.BaseTooltip);w.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),e.BubbleTooltip=w,e.default=b},function(t,e,r){t.exports=r(63)}])["default"]}))}).call(this,r("ce44").Buffer)},"796d":function(t,e){t.exports=i},"7dac":function(t,e,r){},"7e40":function(t,e,r){(function(e,n,o){t.exports=n(r("bf17"),r("023d"))})(0,(function(t){return t.pad.Iso10126={pad:function(e,r){var n=4*r,o=n-e.sigBytes%n;e.concat(t.lib.WordArray.random(o-1)).concat(t.lib.WordArray.create([o<<24],1))},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},t.pad.Iso10126}))},8652:function(t,e,r){(function(e,n,o){t.exports=n(r("bf17"),r("023d"))})(0,(function(t){return t.mode.OFB=function(){var e=t.lib.BlockCipherMode.extend(),r=e.Encryptor=e.extend({processBlock:function(t,e){var r=this._cipher,n=r.blockSize,o=this._iv,i=this._keystream;o&&(i=this._keystream=o.slice(0),this._iv=void 0),r.encryptBlock(i,0);for(var a=0;a<n;a++)t[e+a]^=i[a]}});return e.Decryptor=r,e}(),t.mode.OFB}))},"8bbf":function(t,e){t.exports=a},"91a8":function(t,e){var r={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==r.call(t)}},"9f89":function(t,e){t.exports=c},a303:function(t,e,r){(function(e,n,o){t.exports=n(r("bf17"),r("023d"))})(0,(function(t){return t.pad.NoPadding={pad:function(){},unpad:function(){}},t.pad.NoPadding}))},a42b:function(t,e){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(n){"object"===typeof window&&(r=window)}t.exports=r},a479:function(t,e,r){},a59b:function(t,e,r){"use strict";r("d08f")},a613:function(t,e,r){"use strict";r("bc8c")},a638:function(t,e,r){(function(e,n){t.exports=n(r("bf17"))})(0,(function(t){return function(e){var r=t,n=r.lib,o=n.WordArray,i=n.Hasher,a=r.algo,c=[];(function(){for(var t=0;t<64;t++)c[t]=4294967296*e.abs(e.sin(t+1))|0})();var s=a.MD5=i.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(t,e){for(var r=0;r<16;r++){var n=e+r,o=t[n];t[n]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}var i=this._hash.words,a=t[e+0],s=t[e+1],p=t[e+2],d=t[e+3],y=t[e+4],v=t[e+5],m=t[e+6],g=t[e+7],b=t[e+8],w=t[e+9],_=t[e+10],x=t[e+11],O=t[e+12],k=t[e+13],E=t[e+14],S=t[e+15],j=i[0],L=i[1],P=i[2],N=i[3];j=u(j,L,P,N,a,7,c[0]),N=u(N,j,L,P,s,12,c[1]),P=u(P,N,j,L,p,17,c[2]),L=u(L,P,N,j,d,22,c[3]),j=u(j,L,P,N,y,7,c[4]),N=u(N,j,L,P,v,12,c[5]),P=u(P,N,j,L,m,17,c[6]),L=u(L,P,N,j,g,22,c[7]),j=u(j,L,P,N,b,7,c[8]),N=u(N,j,L,P,w,12,c[9]),P=u(P,N,j,L,_,17,c[10]),L=u(L,P,N,j,x,22,c[11]),j=u(j,L,P,N,O,7,c[12]),N=u(N,j,L,P,k,12,c[13]),P=u(P,N,j,L,E,17,c[14]),L=u(L,P,N,j,S,22,c[15]),j=l(j,L,P,N,s,5,c[16]),N=l(N,j,L,P,m,9,c[17]),P=l(P,N,j,L,x,14,c[18]),L=l(L,P,N,j,a,20,c[19]),j=l(j,L,P,N,v,5,c[20]),N=l(N,j,L,P,_,9,c[21]),P=l(P,N,j,L,S,14,c[22]),L=l(L,P,N,j,y,20,c[23]),j=l(j,L,P,N,w,5,c[24]),N=l(N,j,L,P,E,9,c[25]),P=l(P,N,j,L,d,14,c[26]),L=l(L,P,N,j,b,20,c[27]),j=l(j,L,P,N,k,5,c[28]),N=l(N,j,L,P,p,9,c[29]),P=l(P,N,j,L,g,14,c[30]),L=l(L,P,N,j,O,20,c[31]),j=f(j,L,P,N,v,4,c[32]),N=f(N,j,L,P,b,11,c[33]),P=f(P,N,j,L,x,16,c[34]),L=f(L,P,N,j,E,23,c[35]),j=f(j,L,P,N,s,4,c[36]),N=f(N,j,L,P,y,11,c[37]),P=f(P,N,j,L,g,16,c[38]),L=f(L,P,N,j,_,23,c[39]),j=f(j,L,P,N,k,4,c[40]),N=f(N,j,L,P,a,11,c[41]),P=f(P,N,j,L,d,16,c[42]),L=f(L,P,N,j,m,23,c[43]),j=f(j,L,P,N,w,4,c[44]),N=f(N,j,L,P,O,11,c[45]),P=f(P,N,j,L,S,16,c[46]),L=f(L,P,N,j,p,23,c[47]),j=h(j,L,P,N,a,6,c[48]),N=h(N,j,L,P,g,10,c[49]),P=h(P,N,j,L,E,15,c[50]),L=h(L,P,N,j,v,21,c[51]),j=h(j,L,P,N,O,6,c[52]),N=h(N,j,L,P,d,10,c[53]),P=h(P,N,j,L,_,15,c[54]),L=h(L,P,N,j,s,21,c[55]),j=h(j,L,P,N,b,6,c[56]),N=h(N,j,L,P,S,10,c[57]),P=h(P,N,j,L,m,15,c[58]),L=h(L,P,N,j,k,21,c[59]),j=h(j,L,P,N,y,6,c[60]),N=h(N,j,L,P,x,10,c[61]),P=h(P,N,j,L,p,15,c[62]),L=h(L,P,N,j,w,21,c[63]),i[0]=i[0]+j|0,i[1]=i[1]+L|0,i[2]=i[2]+P|0,i[3]=i[3]+N|0},_doFinalize:function(){var t=this._data,r=t.words,n=8*this._nDataBytes,o=8*t.sigBytes;r[o>>>5]|=128<<24-o%32;var i=e.floor(n/4294967296),a=n;r[15+(o+64>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),r[14+(o+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),t.sigBytes=4*(r.length+1),this._process();for(var c=this._hash,s=c.words,u=0;u<4;u++){var l=s[u];s[u]=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8)}return c},clone:function(){var t=i.clone.call(this);return t._hash=this._hash.clone(),t}});function u(t,e,r,n,o,i,a){var c=t+(e&r|~e&n)+o+a;return(c<<i|c>>>32-i)+e}function l(t,e,r,n,o,i,a){var c=t+(e&n|r&~n)+o+a;return(c<<i|c>>>32-i)+e}function f(t,e,r,n,o,i,a){var c=t+(e^r^n)+o+a;return(c<<i|c>>>32-i)+e}function h(t,e,r,n,o,i,a){var c=t+(r^(e|~n))+o+a;return(c<<i|c>>>32-i)+e}r.MD5=i._createHelper(s),r.HmacMD5=i._createHmacHelper(s)}(Math),t.MD5}))},a71c:function(t,e,r){(function(e,n,o){t.exports=n(r("bf17"),r("023d"))})(0,(function(t){return t.mode.ECB=function(){var e=t.lib.BlockCipherMode.extend();return e.Encryptor=e.extend({processBlock:function(t,e){this._cipher.encryptBlock(t,e)}}),e.Decryptor=e.extend({processBlock:function(t,e){this._cipher.decryptBlock(t,e)}}),e}(),t.mode.ECB}))},ad71:function(t,e,r){(function(e,n,o){t.exports=n(r("bf17"),r("f97e"),r("a638"),r("57eb"),r("023d"))})(0,(function(t){return function(){var e=t,r=e.lib,n=r.WordArray,o=r.BlockCipher,i=e.algo,a=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],c=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],s=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],u=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],l=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],f=i.DES=o.extend({_doReset:function(){for(var t=this._key,e=t.words,r=[],n=0;n<56;n++){var o=a[n]-1;r[n]=e[o>>>5]>>>31-o%32&1}for(var i=this._subKeys=[],u=0;u<16;u++){var l=i[u]=[],f=s[u];for(n=0;n<24;n++)l[n/6|0]|=r[(c[n]-1+f)%28]<<31-n%6,l[4+(n/6|0)]|=r[28+(c[n+24]-1+f)%28]<<31-n%6;l[0]=l[0]<<1|l[0]>>>31;for(n=1;n<7;n++)l[n]=l[n]>>>4*(n-1)+3;l[7]=l[7]<<5|l[7]>>>27}var h=this._invSubKeys=[];for(n=0;n<16;n++)h[n]=i[15-n]},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._subKeys)},decryptBlock:function(t,e){this._doCryptBlock(t,e,this._invSubKeys)},_doCryptBlock:function(t,e,r){this._lBlock=t[e],this._rBlock=t[e+1],h.call(this,4,252645135),h.call(this,16,65535),p.call(this,2,858993459),p.call(this,8,16711935),h.call(this,1,1431655765);for(var n=0;n<16;n++){for(var o=r[n],i=this._lBlock,a=this._rBlock,c=0,s=0;s<8;s++)c|=u[s][((a^o[s])&l[s])>>>0];this._lBlock=a,this._rBlock=i^c}var f=this._lBlock;this._lBlock=this._rBlock,this._rBlock=f,h.call(this,1,1431655765),p.call(this,8,16711935),p.call(this,2,858993459),h.call(this,16,65535),h.call(this,4,252645135),t[e]=this._lBlock,t[e+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function h(t,e){var r=(this._lBlock>>>t^this._rBlock)&e;this._rBlock^=r,this._lBlock^=r<<t}function p(t,e){var r=(this._rBlock>>>t^this._lBlock)&e;this._lBlock^=r,this._rBlock^=r<<t}e.DES=o._createHelper(f);var d=i.TripleDES=o.extend({_doReset:function(){var t=this._key,e=t.words;if(2!==e.length&&4!==e.length&&e.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var r=e.slice(0,2),o=e.length<4?e.slice(0,2):e.slice(2,4),i=e.length<6?e.slice(0,2):e.slice(4,6);this._des1=f.createEncryptor(n.create(r)),this._des2=f.createEncryptor(n.create(o)),this._des3=f.createEncryptor(n.create(i))},encryptBlock:function(t,e){this._des1.encryptBlock(t,e),this._des2.decryptBlock(t,e),this._des3.encryptBlock(t,e)},decryptBlock:function(t,e){this._des3.decryptBlock(t,e),this._des2.encryptBlock(t,e),this._des1.decryptBlock(t,e)},keySize:6,ivSize:2,blockSize:2});e.TripleDES=o._createHelper(d)}(),t.TripleDES}))},af8a:function(t,e,r){(function(e,n,o){t.exports=n(r("bf17"),r("da25"))})(0,(function(t){return function(){var e=t,r=e.lib,n=r.WordArray,o=e.algo,i=o.SHA256,a=o.SHA224=i.extend({_doReset:function(){this._hash=new n.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var t=i._doFinalize.call(this);return t.sigBytes-=4,t}});e.SHA224=i._createHelper(a),e.HmacSHA224=i._createHmacHelper(a)}(),t.SHA224}))},b472:function(t,e,r){(function(e,n){t.exports=n(r("bf17"))})(0,(function(t){
|
|
16
|
+
(function(e,r){t.exports=r()})("undefined"!==typeof self&&self,(function(){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:n})},r.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=109)}([function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(17),o=r(18),i=r(19),a=r(45),c=r(46),s=r(47),u=r(48),l=r(49),f=r(12),h=r(32),p=r(33),d=r(31),y=r(1),v={Scope:y.Scope,create:y.create,find:y.find,query:y.query,register:y.register,Container:n.default,Format:o.default,Leaf:i.default,Embed:u.default,Scroll:a.default,Block:s.default,Inline:c.default,Text:l.default,Attributor:{Attribute:f.default,Class:h.default,Style:p.default,Store:d.default}};e.default=v},function(t,e,r){"use strict";var n=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(e){var r=this;return e="[Parchment] "+e,r=t.call(this,e)||this,r.message=e,r.name=r.constructor.name,r}return n(e,t),e}(Error);e.ParchmentError=o;var i,a={},c={},s={},u={};function l(t,e){var r=h(t);if(null==r)throw new o("Unable to create "+t+" blot");var n=r,i=t instanceof Node||t["nodeType"]===Node.TEXT_NODE?t:n.create(e);return new n(i,e)}function f(t,r){return void 0===r&&(r=!1),null==t?null:null!=t[e.DATA_KEY]?t[e.DATA_KEY].blot:r?f(t.parentNode,r):null}function h(t,e){var r;if(void 0===e&&(e=i.ANY),"string"===typeof t)r=u[t]||a[t];else if(t instanceof Text||t["nodeType"]===Node.TEXT_NODE)r=u["text"];else if("number"===typeof t)t&i.LEVEL&i.BLOCK?r=u["block"]:t&i.LEVEL&i.INLINE&&(r=u["inline"]);else if(t instanceof HTMLElement){var n=(t.getAttribute("class")||"").split(/\s+/);for(var o in n)if(r=c[n[o]],r)break;r=r||s[t.tagName]}return null==r?null:e&i.LEVEL&r.scope&&e&i.TYPE&r.scope?r:null}function p(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(t.length>1)return t.map((function(t){return p(t)}));var r=t[0];if("string"!==typeof r.blotName&&"string"!==typeof r.attrName)throw new o("Invalid definition");if("abstract"===r.blotName)throw new o("Cannot register abstract class");if(u[r.blotName||r.attrName]=r,"string"===typeof r.keyName)a[r.keyName]=r;else if(null!=r.className&&(c[r.className]=r),null!=r.tagName){Array.isArray(r.tagName)?r.tagName=r.tagName.map((function(t){return t.toUpperCase()})):r.tagName=r.tagName.toUpperCase();var n=Array.isArray(r.tagName)?r.tagName:[r.tagName];n.forEach((function(t){null!=s[t]&&null!=r.className||(s[t]=r)}))}return r}e.DATA_KEY="__blot",function(t){t[t["TYPE"]=3]="TYPE",t[t["LEVEL"]=12]="LEVEL",t[t["ATTRIBUTE"]=13]="ATTRIBUTE",t[t["BLOT"]=14]="BLOT",t[t["INLINE"]=7]="INLINE",t[t["BLOCK"]=11]="BLOCK",t[t["BLOCK_BLOT"]=10]="BLOCK_BLOT",t[t["INLINE_BLOT"]=6]="INLINE_BLOT",t[t["BLOCK_ATTRIBUTE"]=9]="BLOCK_ATTRIBUTE",t[t["INLINE_ATTRIBUTE"]=5]="INLINE_ATTRIBUTE",t[t["ANY"]=15]="ANY"}(i=e.Scope||(e.Scope={})),e.create=l,e.find=f,e.query=h,e.register=p},function(t,e,r){var n=r(51),o=r(11),i=r(3),a=r(20),c=String.fromCharCode(0),s=function(t){Array.isArray(t)?this.ops=t:null!=t&&Array.isArray(t.ops)?this.ops=t.ops:this.ops=[]};s.prototype.insert=function(t,e){var r={};return 0===t.length?this:(r.insert=t,null!=e&&"object"===typeof e&&Object.keys(e).length>0&&(r.attributes=e),this.push(r))},s.prototype["delete"]=function(t){return t<=0?this:this.push({delete:t})},s.prototype.retain=function(t,e){if(t<=0)return this;var r={retain:t};return null!=e&&"object"===typeof e&&Object.keys(e).length>0&&(r.attributes=e),this.push(r)},s.prototype.push=function(t){var e=this.ops.length,r=this.ops[e-1];if(t=i(!0,{},t),"object"===typeof r){if("number"===typeof t["delete"]&&"number"===typeof r["delete"])return this.ops[e-1]={delete:r["delete"]+t["delete"]},this;if("number"===typeof r["delete"]&&null!=t.insert&&(e-=1,r=this.ops[e-1],"object"!==typeof r))return this.ops.unshift(t),this;if(o(t.attributes,r.attributes)){if("string"===typeof t.insert&&"string"===typeof r.insert)return this.ops[e-1]={insert:r.insert+t.insert},"object"===typeof t.attributes&&(this.ops[e-1].attributes=t.attributes),this;if("number"===typeof t.retain&&"number"===typeof r.retain)return this.ops[e-1]={retain:r.retain+t.retain},"object"===typeof t.attributes&&(this.ops[e-1].attributes=t.attributes),this}}return e===this.ops.length?this.ops.push(t):this.ops.splice(e,0,t),this},s.prototype.chop=function(){var t=this.ops[this.ops.length-1];return t&&t.retain&&!t.attributes&&this.ops.pop(),this},s.prototype.filter=function(t){return this.ops.filter(t)},s.prototype.forEach=function(t){this.ops.forEach(t)},s.prototype.map=function(t){return this.ops.map(t)},s.prototype.partition=function(t){var e=[],r=[];return this.forEach((function(n){var o=t(n)?e:r;o.push(n)})),[e,r]},s.prototype.reduce=function(t,e){return this.ops.reduce(t,e)},s.prototype.changeLength=function(){return this.reduce((function(t,e){return e.insert?t+a.length(e):e.delete?t-e.delete:t}),0)},s.prototype.length=function(){return this.reduce((function(t,e){return t+a.length(e)}),0)},s.prototype.slice=function(t,e){t=t||0,"number"!==typeof e&&(e=1/0);var r=[],n=a.iterator(this.ops),o=0;while(o<e&&n.hasNext()){var i;o<t?i=n.next(t-o):(i=n.next(e-o),r.push(i)),o+=a.length(i)}return new s(r)},s.prototype.compose=function(t){var e=a.iterator(this.ops),r=a.iterator(t.ops),n=[],i=r.peek();if(null!=i&&"number"===typeof i.retain&&null==i.attributes){var c=i.retain;while("insert"===e.peekType()&&e.peekLength()<=c)c-=e.peekLength(),n.push(e.next());i.retain-c>0&&r.next(i.retain-c)}var u=new s(n);while(e.hasNext()||r.hasNext())if("insert"===r.peekType())u.push(r.next());else if("delete"===e.peekType())u.push(e.next());else{var l=Math.min(e.peekLength(),r.peekLength()),f=e.next(l),h=r.next(l);if("number"===typeof h.retain){var p={};"number"===typeof f.retain?p.retain=l:p.insert=f.insert;var d=a.attributes.compose(f.attributes,h.attributes,"number"===typeof f.retain);if(d&&(p.attributes=d),u.push(p),!r.hasNext()&&o(u.ops[u.ops.length-1],p)){var y=new s(e.rest());return u.concat(y).chop()}}else"number"===typeof h["delete"]&&"number"===typeof f.retain&&u.push(h)}return u.chop()},s.prototype.concat=function(t){var e=new s(this.ops.slice());return t.ops.length>0&&(e.push(t.ops[0]),e.ops=e.ops.concat(t.ops.slice(1))),e},s.prototype.diff=function(t,e){if(this.ops===t.ops)return new s;var r=[this,t].map((function(e){return e.map((function(r){if(null!=r.insert)return"string"===typeof r.insert?r.insert:c;var n=e===t?"on":"with";throw new Error("diff() called "+n+" non-document")})).join("")})),i=new s,u=n(r[0],r[1],e),l=a.iterator(this.ops),f=a.iterator(t.ops);return u.forEach((function(t){var e=t[1].length;while(e>0){var r=0;switch(t[0]){case n.INSERT:r=Math.min(f.peekLength(),e),i.push(f.next(r));break;case n.DELETE:r=Math.min(e,l.peekLength()),l.next(r),i["delete"](r);break;case n.EQUAL:r=Math.min(l.peekLength(),f.peekLength(),e);var c=l.next(r),s=f.next(r);o(c.insert,s.insert)?i.retain(r,a.attributes.diff(c.attributes,s.attributes)):i.push(s)["delete"](r);break}e-=r}})),i.chop()},s.prototype.eachLine=function(t,e){e=e||"\n";var r=a.iterator(this.ops),n=new s,o=0;while(r.hasNext()){if("insert"!==r.peekType())return;var i=r.peek(),c=a.length(i)-r.peekLength(),u="string"===typeof i.insert?i.insert.indexOf(e,c)-c:-1;if(u<0)n.push(r.next());else if(u>0)n.push(r.next(u));else{if(!1===t(n,r.next(1).attributes||{},o))return;o+=1,n=new s}}n.length()>0&&t(n,{},o)},s.prototype.transform=function(t,e){if(e=!!e,"number"===typeof t)return this.transformPosition(t,e);var r=a.iterator(this.ops),n=a.iterator(t.ops),o=new s;while(r.hasNext()||n.hasNext())if("insert"!==r.peekType()||!e&&"insert"===n.peekType())if("insert"===n.peekType())o.push(n.next());else{var i=Math.min(r.peekLength(),n.peekLength()),c=r.next(i),u=n.next(i);if(c["delete"])continue;u["delete"]?o.push(u):o.retain(i,a.attributes.transform(c.attributes,u.attributes,e))}else o.retain(a.length(r.next()));return o.chop()},s.prototype.transformPosition=function(t,e){e=!!e;var r=a.iterator(this.ops),n=0;while(r.hasNext()&&n<=t){var o=r.peekLength(),i=r.peekType();r.next(),"delete"!==i?("insert"===i&&(n<t||!e)&&(t+=o),n+=o):t-=Math.min(o,t-n)}return t},t.exports=s},function(t,e){"use strict";var r=Object.prototype.hasOwnProperty,n=Object.prototype.toString,o=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=function(t){return"function"===typeof Array.isArray?Array.isArray(t):"[object Array]"===n.call(t)},c=function(t){if(!t||"[object Object]"!==n.call(t))return!1;var e,o=r.call(t,"constructor"),i=t.constructor&&t.constructor.prototype&&r.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!o&&!i)return!1;for(e in t);return"undefined"===typeof e||r.call(t,e)},s=function(t,e){o&&"__proto__"===e.name?o(t,e.name,{enumerable:!0,configurable:!0,value:e.newValue,writable:!0}):t[e.name]=e.newValue},u=function(t,e){if("__proto__"===e){if(!r.call(t,e))return;if(i)return i(t,e).value}return t[e]};t.exports=function t(){var e,r,n,o,i,l,f=arguments[0],h=1,p=arguments.length,d=!1;for("boolean"===typeof f&&(d=f,f=arguments[1]||{},h=2),(null==f||"object"!==typeof f&&"function"!==typeof f)&&(f={});h<p;++h)if(e=arguments[h],null!=e)for(r in e)n=u(f,r),o=u(e,r),f!==o&&(d&&o&&(c(o)||(i=a(o)))?(i?(i=!1,l=n&&a(n)?n:[]):l=n&&c(n)?n:{},s(f,{name:r,newValue:t(d,l,o)})):"undefined"!==typeof o&&s(f,{name:r,newValue:o}));return f}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.BlockEmbed=e.bubbleFormats=void 0;var n=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),o=function t(e,r,n){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,r);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,r,n)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(n):void 0},i=r(3),a=m(i),c=r(2),s=m(c),u=r(0),l=m(u),f=r(16),h=m(f),p=r(6),d=m(p),y=r(7),v=m(y);function m(t){return t&&t.__esModule?t:{default:t}}function g(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function b(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function w(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var _=1,x=function(t){function e(){return g(this,e),b(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return w(e,t),n(e,[{key:"attach",value:function(){o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"attach",this).call(this),this.attributes=new l.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return(new s.default).insert(this.value(),(0,a.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(t,e){var r=l.default.query(t,l.default.Scope.BLOCK_ATTRIBUTE);null!=r&&this.attributes.attribute(r,e)}},{key:"formatAt",value:function(t,e,r,n){this.format(r,n)}},{key:"insertAt",value:function(t,r,n){if("string"===typeof r&&r.endsWith("\n")){var i=l.default.create(O.blotName);this.parent.insertBefore(i,0===t?this:this.next),i.insertAt(0,r.slice(0,-1))}else o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertAt",this).call(this,t,r,n)}}]),e}(l.default.Embed);x.scope=l.default.Scope.BLOCK_BLOT;var O=function(t){function e(t){g(this,e);var r=b(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return r.cache={},r}return w(e,t),n(e,[{key:"delta",value:function(){return null==this.cache.delta&&(this.cache.delta=this.descendants(l.default.Leaf).reduce((function(t,e){return 0===e.length()?t:t.insert(e.value(),k(e))}),new s.default).insert("\n",k(this))),this.cache.delta}},{key:"deleteAt",value:function(t,r){o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"deleteAt",this).call(this,t,r),this.cache={}}},{key:"formatAt",value:function(t,r,n,i){r<=0||(l.default.query(n,l.default.Scope.BLOCK)?t+r===this.length()&&this.format(n,i):o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"formatAt",this).call(this,t,Math.min(r,this.length()-t-1),n,i),this.cache={})}},{key:"insertAt",value:function(t,r,n){if(null!=n)return o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertAt",this).call(this,t,r,n);if(0!==r.length){var i=r.split("\n"),a=i.shift();a.length>0&&(t<this.length()-1||null==this.children.tail?o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertAt",this).call(this,Math.min(t,this.length()-1),a):this.children.tail.insertAt(this.children.tail.length(),a),this.cache={});var c=this;i.reduce((function(t,e){return c=c.split(t,!0),c.insertAt(0,e),e.length}),t+a.length)}}},{key:"insertBefore",value:function(t,r){var n=this.children.head;o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertBefore",this).call(this,t,r),n instanceof h.default&&n.remove(),this.cache={}}},{key:"length",value:function(){return null==this.cache.length&&(this.cache.length=o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"length",this).call(this)+_),this.cache.length}},{key:"moveChildren",value:function(t,r){o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"moveChildren",this).call(this,t,r),this.cache={}}},{key:"optimize",value:function(t){o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t),this.cache={}}},{key:"path",value:function(t){return o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"path",this).call(this,t,!0)}},{key:"removeChild",value:function(t){o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"removeChild",this).call(this,t),this.cache={}}},{key:"split",value:function(t){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(r&&(0===t||t>=this.length()-_)){var n=this.clone();return 0===t?(this.parent.insertBefore(n,this),this):(this.parent.insertBefore(n,this.next),n)}var i=o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"split",this).call(this,t,r);return this.cache={},i}}]),e}(l.default.Block);function k(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null==t?e:("function"===typeof t.formats&&(e=(0,a.default)(e,t.formats())),null==t.parent||"scroll"==t.parent.blotName||t.parent.statics.scope!==t.statics.scope?e:k(t.parent,e))}O.blotName="block",O.tagName="P",O.defaultChild="break",O.allowedChildren=[d.default,l.default.Embed,v.default],e.bubbleFormats=k,e.BlockEmbed=x,e.default=O},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.overload=e.expandConfig=void 0;var n="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=function(){function t(t,e){var r=[],n=!0,o=!1,i=void 0;try{for(var a,c=t[Symbol.iterator]();!(n=(a=c.next()).done);n=!0)if(r.push(a.value),e&&r.length===e)break}catch(s){o=!0,i=s}finally{try{!n&&c["return"]&&c["return"]()}finally{if(o)throw i}}return r}return function(e,r){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}();r(50);var a=r(2),c=k(a),s=r(14),u=k(s),l=r(8),f=k(l),h=r(9),p=k(h),d=r(0),y=k(d),v=r(15),m=k(v),g=r(3),b=k(g),w=r(10),_=k(w),x=r(34),O=k(x);function k(t){return t&&t.__esModule?t:{default:t}}function E(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function S(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var j=(0,_.default)("quill"),L=function(){function t(e){var r=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(S(this,t),this.options=P(e,n),this.container=this.options.container,null==this.container)return j.error("Invalid Quill container",e);this.options.debug&&t.debug(this.options.debug);var o=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new f.default,this.scroll=y.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new u.default(this.scroll),this.selection=new m.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(f.default.events.EDITOR_CHANGE,(function(t){t===f.default.events.TEXT_CHANGE&&r.root.classList.toggle("ql-blank",r.editor.isBlank())})),this.emitter.on(f.default.events.SCROLL_UPDATE,(function(t,e){var n=r.selection.lastRange,o=n&&0===n.length?n.index:void 0;N.call(r,(function(){return r.editor.update(null,e,o)}),t)}));var i=this.clipboard.convert("<div class='ql-editor' style=\"white-space: normal;\">"+o+"<p><br></p></div>");this.setContents(i),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return i(t,null,[{key:"debug",value:function(t){!0===t&&(t="log"),_.default.level(t)}},{key:"find",value:function(t){return t.__quill||y.default.find(t)}},{key:"import",value:function(t){return null==this.imports[t]&&j.error("Cannot import "+t+". Are you sure it was registered?"),this.imports[t]}},{key:"register",value:function(t,e){var r=this,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("string"!==typeof t){var o=t.attrName||t.blotName;"string"===typeof o?this.register("formats/"+o,t,e):Object.keys(t).forEach((function(n){r.register(n,t[n],e)}))}else null==this.imports[t]||n||j.warn("Overwriting "+t+" with",e),this.imports[t]=e,(t.startsWith("blots/")||t.startsWith("formats/"))&&"abstract"!==e.blotName?y.default.register(e):t.startsWith("modules")&&"function"===typeof e.register&&e.register()}}]),i(t,[{key:"addContainer",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"===typeof t){var r=t;t=document.createElement("div"),t.classList.add(r)}return this.container.insertBefore(t,e),t}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(t,e,r){var n=this,i=A(t,e,r),a=o(i,4);return t=a[0],e=a[1],r=a[3],N.call(this,(function(){return n.editor.deleteText(t,e)}),r,t,-1*e)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(t),this.container.classList.toggle("ql-disabled",!t)}},{key:"focus",value:function(){var t=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=t,this.scrollIntoView()}},{key:"format",value:function(t,e){var r=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:f.default.sources.API;return N.call(this,(function(){var n=r.getSelection(!0),o=new c.default;if(null==n)return o;if(y.default.query(t,y.default.Scope.BLOCK))o=r.editor.formatLine(n.index,n.length,E({},t,e));else{if(0===n.length)return r.selection.format(t,e),o;o=r.editor.formatText(n.index,n.length,E({},t,e))}return r.setSelection(n,f.default.sources.SILENT),o}),n)}},{key:"formatLine",value:function(t,e,r,n,i){var a=this,c=void 0,s=A(t,e,r,n,i),u=o(s,4);return t=u[0],e=u[1],c=u[2],i=u[3],N.call(this,(function(){return a.editor.formatLine(t,e,c)}),i,t,0)}},{key:"formatText",value:function(t,e,r,n,i){var a=this,c=void 0,s=A(t,e,r,n,i),u=o(s,4);return t=u[0],e=u[1],c=u[2],i=u[3],N.call(this,(function(){return a.editor.formatText(t,e,c)}),i,t,0)}},{key:"getBounds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=void 0;r="number"===typeof t?this.selection.getBounds(t,e):this.selection.getBounds(t.index,t.length);var n=this.container.getBoundingClientRect();return{bottom:r.bottom-n.top,height:r.height,left:r.left-n.left,right:r.right-n.left,top:r.top-n.top,width:r.width}}},{key:"getContents",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-t,r=A(t,e),n=o(r,2);return t=n[0],e=n[1],this.editor.getContents(t,e)}},{key:"getFormat",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0),e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"number"===typeof t?this.editor.getFormat(t,e):this.editor.getFormat(t.index,t.length)}},{key:"getIndex",value:function(t){return t.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(t){return this.scroll.leaf(t)}},{key:"getLine",value:function(t){return this.scroll.line(t)}},{key:"getLines",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!==typeof t?this.scroll.lines(t.index,t.length):this.scroll.lines(t,e)}},{key:"getModule",value:function(t){return this.theme.modules[t]}},{key:"getSelection",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return t&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-t,r=A(t,e),n=o(r,2);return t=n[0],e=n[1],this.editor.getText(t,e)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(e,r,n){var o=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t.sources.API;return N.call(this,(function(){return o.editor.insertEmbed(e,r,n)}),i,e)}},{key:"insertText",value:function(t,e,r,n,i){var a=this,c=void 0,s=A(t,0,r,n,i),u=o(s,4);return t=u[0],c=u[2],i=u[3],N.call(this,(function(){return a.editor.insertText(t,e,c)}),i,t,e.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(t,e,r){this.clipboard.dangerouslyPasteHTML(t,e,r)}},{key:"removeFormat",value:function(t,e,r){var n=this,i=A(t,e,r),a=o(i,4);return t=a[0],e=a[1],r=a[3],N.call(this,(function(){return n.editor.removeFormat(t,e)}),r,t)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(t){var e=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.default.sources.API;return N.call(this,(function(){t=new c.default(t);var r=e.getLength(),n=e.editor.deleteText(0,r),o=e.editor.applyDelta(t),i=o.ops[o.ops.length-1];null!=i&&"string"===typeof i.insert&&"\n"===i.insert[i.insert.length-1]&&(e.editor.deleteText(e.getLength()-1,1),o.delete(1));var a=n.compose(o);return a}),r)}},{key:"setSelection",value:function(e,r,n){if(null==e)this.selection.setRange(null,r||t.sources.API);else{var i=A(e,r,n),a=o(i,4);e=a[0],r=a[1],n=a[3],this.selection.setRange(new v.Range(e,r),n),n!==f.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.default.sources.API,r=(new c.default).insert(t);return this.setContents(r,e)}},{key:"update",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:f.default.sources.USER,e=this.scroll.update(t);return this.selection.update(t),e}},{key:"updateContents",value:function(t){var e=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f.default.sources.API;return N.call(this,(function(){return t=new c.default(t),e.editor.applyDelta(t,r)}),r,!0)}}]),t}();function P(t,e){if(e=(0,b.default)(!0,{container:t,modules:{clipboard:!0,keyboard:!0,history:!0}},e),e.theme&&e.theme!==L.DEFAULTS.theme){if(e.theme=L.import("themes/"+e.theme),null==e.theme)throw new Error("Invalid theme "+e.theme+". Did you register it?")}else e.theme=O.default;var r=(0,b.default)(!0,{},e.theme.DEFAULTS);[r,e].forEach((function(t){t.modules=t.modules||{},Object.keys(t.modules).forEach((function(e){!0===t.modules[e]&&(t.modules[e]={})}))}));var n=Object.keys(r.modules).concat(Object.keys(e.modules)),o=n.reduce((function(t,e){var r=L.import("modules/"+e);return null==r?j.error("Cannot load "+e+" module. Are you sure you registered it?"):t[e]=r.DEFAULTS||{},t}),{});return null!=e.modules&&e.modules.toolbar&&e.modules.toolbar.constructor!==Object&&(e.modules.toolbar={container:e.modules.toolbar}),e=(0,b.default)(!0,{},L.DEFAULTS,{modules:o},r,e),["bounds","container","scrollingContainer"].forEach((function(t){"string"===typeof e[t]&&(e[t]=document.querySelector(e[t]))})),e.modules=Object.keys(e.modules).reduce((function(t,r){return e.modules[r]&&(t[r]=e.modules[r]),t}),{}),e}function N(t,e,r,n){if(this.options.strict&&!this.isEnabled()&&e===f.default.sources.USER)return new c.default;var o=null==r?null:this.getSelection(),i=this.editor.delta,a=t();if(null!=o&&(!0===r&&(r=o.index),null==n?o=C(o,a,e):0!==n&&(o=C(o,r,n,e)),this.setSelection(o,f.default.sources.SILENT)),a.length()>0){var s,u,l=[f.default.events.TEXT_CHANGE,a,i,e];if((s=this.emitter).emit.apply(s,[f.default.events.EDITOR_CHANGE].concat(l)),e!==f.default.sources.SILENT)(u=this.emitter).emit.apply(u,l)}return a}function A(t,e,r,o,i){var a={};return"number"===typeof t.index&&"number"===typeof t.length?"number"!==typeof e?(i=o,o=r,r=e,e=t.length,t=t.index):(e=t.length,t=t.index):"number"!==typeof e&&(i=o,o=r,r=e,e=0),"object"===("undefined"===typeof r?"undefined":n(r))?(a=r,i=o):"string"===typeof r&&(null!=o?a[r]=o:i=r),i=i||f.default.sources.API,[t,e,a,i]}function C(t,e,r,n){if(null==t)return null;var i=void 0,a=void 0;if(e instanceof c.default){var s=[t.index,t.index+t.length].map((function(t){return e.transformPosition(t,n!==f.default.sources.USER)})),u=o(s,2);i=u[0],a=u[1]}else{var l=[t.index,t.index+t.length].map((function(t){return t<e||t===e&&n===f.default.sources.USER?t:r>=0?t+r:Math.max(e,t+r)})),h=o(l,2);i=h[0],a=h[1]}return new v.Range(i,a-i)}L.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},L.events=f.default.events,L.sources=f.default.sources,L.version="1.3.7",L.imports={delta:c.default,parchment:y.default,"core/module":p.default,"core/theme":O.default},e.expandConfig=P,e.overload=A,e.default=L},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),o=function t(e,r,n){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,r);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,r,n)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(n):void 0},i=r(7),a=u(i),c=r(0),s=u(c);function u(t){return t&&t.__esModule?t:{default:t}}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function f(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function h(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var p=function(t){function e(){return l(this,e),f(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return h(e,t),n(e,[{key:"formatAt",value:function(t,r,n,i){if(e.compare(this.statics.blotName,n)<0&&s.default.query(n,s.default.Scope.BLOT)){var a=this.isolate(t,r);i&&a.wrap(n,i)}else o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"formatAt",this).call(this,t,r,n,i)}},{key:"optimize",value:function(t){if(o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t),this.parent instanceof e&&e.compare(this.statics.blotName,this.parent.statics.blotName)>0){var r=this.parent.isolate(this.offset(),this.length());this.moveChildren(r),r.wrap(this)}}}],[{key:"compare",value:function(t,r){var n=e.order.indexOf(t),o=e.order.indexOf(r);return n>=0||o>=0?n-o:t===r?0:t<r?-1:1}}]),e}(s.default.Inline);p.allowedChildren=[p,s.default.Embed,a.default],p.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],e.default=p},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),o=i(n);function i(t){return t&&t.__esModule?t:{default:t}}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function s(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var u=function(t){function e(){return a(this,e),c(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return s(e,t),e}(o.default.Text);e.default=u},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),o=function t(e,r,n){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,r);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,r,n)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(n):void 0},i=r(54),a=u(i),c=r(10),s=u(c);function u(t){return t&&t.__esModule?t:{default:t}}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function f(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function h(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var p=(0,s.default)("quill:events"),d=["selectionchange","mousedown","mouseup","click"];d.forEach((function(t){document.addEventListener(t,(function(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];[].slice.call(document.querySelectorAll(".ql-container")).forEach((function(t){var r;t.__quill&&t.__quill.emitter&&(r=t.__quill.emitter).handleDOM.apply(r,e)}))}))}));var y=function(t){function e(){l(this,e);var t=f(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return t.listeners={},t.on("error",p.error),t}return h(e,t),n(e,[{key:"emit",value:function(){p.log.apply(p,arguments),o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(t){for(var e=arguments.length,r=Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];(this.listeners[t.type]||[]).forEach((function(e){var n=e.node,o=e.handler;(t.target===n||n.contains(t.target))&&o.apply(void 0,[t].concat(r))}))}},{key:"listenDOM",value:function(t,e,r){this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push({node:e,handler:r})}}]),e}(a.default);y.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},y.sources={API:"api",SILENT:"silent",USER:"user"},e.default=y},function(t,e,r){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var o=function t(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n(this,t),this.quill=e,this.options=r};o.DEFAULTS={},e.default=o},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=["error","warn","log","info"],o="warn";function i(t){if(n.indexOf(t)<=n.indexOf(o)){for(var e,r=arguments.length,i=Array(r>1?r-1:0),a=1;a<r;a++)i[a-1]=arguments[a];(e=console)[t].apply(e,i)}}function a(t){return n.reduce((function(e,r){return e[r]=i.bind(console,r,t),e}),{})}i.level=a.level=function(t){o=t},e.default=a},function(t,e,r){var n=Array.prototype.slice,o=r(52),i=r(53),a=t.exports=function(t,e,r){return r||(r={}),t===e||(t instanceof Date&&e instanceof Date?t.getTime()===e.getTime():!t||!e||"object"!=typeof t&&"object"!=typeof e?r.strict?t===e:t==e:u(t,e,r))};function c(t){return null===t||void 0===t}function s(t){return!(!t||"object"!==typeof t||"number"!==typeof t.length)&&("function"===typeof t.copy&&"function"===typeof t.slice&&!(t.length>0&&"number"!==typeof t[0]))}function u(t,e,r){var u,l;if(c(t)||c(e))return!1;if(t.prototype!==e.prototype)return!1;if(i(t))return!!i(e)&&(t=n.call(t),e=n.call(e),a(t,e,r));if(s(t)){if(!s(e))return!1;if(t.length!==e.length)return!1;for(u=0;u<t.length;u++)if(t[u]!==e[u])return!1;return!0}try{var f=o(t),h=o(e)}catch(p){return!1}if(f.length!=h.length)return!1;for(f.sort(),h.sort(),u=f.length-1;u>=0;u--)if(f[u]!=h[u])return!1;for(u=f.length-1;u>=0;u--)if(l=f[u],!a(t[l],e[l],r))return!1;return typeof t===typeof e}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(1),o=function(){function t(t,e,r){void 0===r&&(r={}),this.attrName=t,this.keyName=e;var o=n.Scope.TYPE&n.Scope.ATTRIBUTE;null!=r.scope?this.scope=r.scope&n.Scope.LEVEL|o:this.scope=n.Scope.ATTRIBUTE,null!=r.whitelist&&(this.whitelist=r.whitelist)}return t.keys=function(t){return[].map.call(t.attributes,(function(t){return t.name}))},t.prototype.add=function(t,e){return!!this.canAdd(t,e)&&(t.setAttribute(this.keyName,e),!0)},t.prototype.canAdd=function(t,e){var r=n.query(t,n.Scope.BLOT&(this.scope|n.Scope.TYPE));return null!=r&&(null==this.whitelist||("string"===typeof e?this.whitelist.indexOf(e.replace(/["']/g,""))>-1:this.whitelist.indexOf(e)>-1))},t.prototype.remove=function(t){t.removeAttribute(this.keyName)},t.prototype.value=function(t){var e=t.getAttribute(this.keyName);return this.canAdd(t,e)&&e?e:""},t}();e.default=o},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.Code=void 0;var n=function(){function t(t,e){var r=[],n=!0,o=!1,i=void 0;try{for(var a,c=t[Symbol.iterator]();!(n=(a=c.next()).done);n=!0)if(r.push(a.value),e&&r.length===e)break}catch(s){o=!0,i=s}finally{try{!n&&c["return"]&&c["return"]()}finally{if(o)throw i}}return r}return function(e,r){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),i=function t(e,r,n){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,r);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,r,n)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(n):void 0},a=r(2),c=v(a),s=r(0),u=v(s),l=r(4),f=v(l),h=r(6),p=v(h),d=r(7),y=v(d);function v(t){return t&&t.__esModule?t:{default:t}}function m(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function g(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function b(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var w=function(t){function e(){return m(this,e),g(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return b(e,t),e}(p.default);w.blotName="code",w.tagName="CODE";var _=function(t){function e(){return m(this,e),g(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return b(e,t),o(e,[{key:"delta",value:function(){var t=this,e=this.domNode.textContent;return e.endsWith("\n")&&(e=e.slice(0,-1)),e.split("\n").reduce((function(e,r){return e.insert(r).insert("\n",t.formats())}),new c.default)}},{key:"format",value:function(t,r){if(t!==this.statics.blotName||!r){var o=this.descendant(y.default,this.length()-1),a=n(o,1),c=a[0];null!=c&&c.deleteAt(c.length()-1,1),i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,r)}}},{key:"formatAt",value:function(t,r,n,o){if(0!==r&&null!=u.default.query(n,u.default.Scope.BLOCK)&&(n!==this.statics.blotName||o!==this.statics.formats(this.domNode))){var i=this.newlineIndex(t);if(!(i<0||i>=t+r)){var a=this.newlineIndex(t,!0)+1,c=i-a+1,s=this.isolate(a,c),l=s.next;s.format(n,o),l instanceof e&&l.formatAt(0,t-a+r-c,n,o)}}}},{key:"insertAt",value:function(t,e,r){if(null==r){var o=this.descendant(y.default,t),i=n(o,2),a=i[0],c=i[1];a.insertAt(c,e)}}},{key:"length",value:function(){var t=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?t:t+1}},{key:"newlineIndex",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e)return this.domNode.textContent.slice(0,t).lastIndexOf("\n");var r=this.domNode.textContent.slice(t).indexOf("\n");return r>-1?t+r:-1}},{key:"optimize",value:function(t){this.domNode.textContent.endsWith("\n")||this.appendChild(u.default.create("text","\n")),i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t);var r=this.next;null!=r&&r.prev===this&&r.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===r.statics.formats(r.domNode)&&(r.optimize(t),r.moveChildren(this),r.remove())}},{key:"replace",value:function(t){i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replace",this).call(this,t),[].slice.call(this.domNode.querySelectorAll("*")).forEach((function(t){var e=u.default.find(t);null==e?t.parentNode.removeChild(t):e instanceof u.default.Embed?e.remove():e.unwrap()}))}}],[{key:"create",value:function(t){var r=i(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return r.setAttribute("spellcheck",!1),r}},{key:"formats",value:function(){return!0}}]),e}(f.default);_.blotName="code-block",_.tagName="PRE",_.TAB=" ",e.Code=w,e.default=_},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=function(){function t(t,e){var r=[],n=!0,o=!1,i=void 0;try{for(var a,c=t[Symbol.iterator]();!(n=(a=c.next()).done);n=!0)if(r.push(a.value),e&&r.length===e)break}catch(s){o=!0,i=s}finally{try{!n&&c["return"]&&c["return"]()}finally{if(o)throw i}}return r}return function(e,r){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),a=r(2),c=S(a),s=r(20),u=S(s),l=r(0),f=S(l),h=r(13),p=S(h),d=r(24),y=S(d),v=r(4),m=S(v),g=r(16),b=S(g),w=r(21),_=S(w),x=r(11),O=S(x),k=r(3),E=S(k);function S(t){return t&&t.__esModule?t:{default:t}}function j(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function L(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var P=/^[ -~]*$/,N=function(){function t(e){L(this,t),this.scroll=e,this.delta=this.getDelta()}return i(t,[{key:"applyDelta",value:function(t){var e=this,r=!1;this.scroll.update();var i=this.scroll.length();return this.scroll.batchStart(),t=C(t),t.reduce((function(t,a){var c=a.retain||a.delete||a.insert.length||1,s=a.attributes||{};if(null!=a.insert){if("string"===typeof a.insert){var l=a.insert;l.endsWith("\n")&&r&&(r=!1,l=l.slice(0,-1)),t>=i&&!l.endsWith("\n")&&(r=!0),e.scroll.insertAt(t,l);var h=e.scroll.line(t),p=o(h,2),d=p[0],y=p[1],g=(0,E.default)({},(0,v.bubbleFormats)(d));if(d instanceof m.default){var b=d.descendant(f.default.Leaf,y),w=o(b,1),_=w[0];g=(0,E.default)(g,(0,v.bubbleFormats)(_))}s=u.default.attributes.diff(g,s)||{}}else if("object"===n(a.insert)){var x=Object.keys(a.insert)[0];if(null==x)return t;e.scroll.insertAt(t,x,a.insert[x])}i+=c}return Object.keys(s).forEach((function(r){e.scroll.formatAt(t,c,r,s[r])})),t+c}),0),t.reduce((function(t,r){return"number"===typeof r.delete?(e.scroll.deleteAt(t,r.delete),t):t+(r.retain||r.insert.length||1)}),0),this.scroll.batchEnd(),this.update(t)}},{key:"deleteText",value:function(t,e){return this.scroll.deleteAt(t,e),this.update((new c.default).retain(t).delete(e))}},{key:"formatLine",value:function(t,e){var r=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.scroll.update(),Object.keys(n).forEach((function(o){if(null==r.scroll.whitelist||r.scroll.whitelist[o]){var i=r.scroll.lines(t,Math.max(e,1)),a=e;i.forEach((function(e){var i=e.length();if(e instanceof p.default){var c=t-e.offset(r.scroll),s=e.newlineIndex(c+a)-c+1;e.formatAt(c,s,o,n[o])}else e.format(o,n[o]);a-=i}))}})),this.scroll.optimize(),this.update((new c.default).retain(t).retain(e,(0,_.default)(n)))}},{key:"formatText",value:function(t,e){var r=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object.keys(n).forEach((function(o){r.scroll.formatAt(t,e,o,n[o])})),this.update((new c.default).retain(t).retain(e,(0,_.default)(n)))}},{key:"getContents",value:function(t,e){return this.delta.slice(t,t+e)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce((function(t,e){return t.concat(e.delta())}),new c.default)}},{key:"getFormat",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=[],n=[];0===e?this.scroll.path(t).forEach((function(t){var e=o(t,1),i=e[0];i instanceof m.default?r.push(i):i instanceof f.default.Leaf&&n.push(i)})):(r=this.scroll.lines(t,e),n=this.scroll.descendants(f.default.Leaf,t,e));var i=[r,n].map((function(t){if(0===t.length)return{};var e=(0,v.bubbleFormats)(t.shift());while(Object.keys(e).length>0){var r=t.shift();if(null==r)return e;e=A((0,v.bubbleFormats)(r),e)}return e}));return E.default.apply(E.default,i)}},{key:"getText",value:function(t,e){return this.getContents(t,e).filter((function(t){return"string"===typeof t.insert})).map((function(t){return t.insert})).join("")}},{key:"insertEmbed",value:function(t,e,r){return this.scroll.insertAt(t,e,r),this.update((new c.default).retain(t).insert(j({},e,r)))}},{key:"insertText",value:function(t,e){var r=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e=e.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(t,e),Object.keys(n).forEach((function(o){r.scroll.formatAt(t,e.length,o,n[o])})),this.update((new c.default).retain(t).insert(e,(0,_.default)(n)))}},{key:"isBlank",value:function(){if(0==this.scroll.children.length)return!0;if(this.scroll.children.length>1)return!1;var t=this.scroll.children.head;return t.statics.blotName===m.default.blotName&&(!(t.children.length>1)&&t.children.head instanceof b.default)}},{key:"removeFormat",value:function(t,e){var r=this.getText(t,e),n=this.scroll.line(t+e),i=o(n,2),a=i[0],s=i[1],u=0,l=new c.default;null!=a&&(u=a instanceof p.default?a.newlineIndex(s)-s+1:a.length()-s,l=a.delta().slice(s,s+u-1).insert("\n"));var f=this.getContents(t,e+u),h=f.diff((new c.default).insert(r).concat(l)),d=(new c.default).retain(t).concat(h);return this.applyDelta(d)}},{key:"update",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,n=this.delta;if(1===e.length&&"characterData"===e[0].type&&e[0].target.data.match(P)&&f.default.find(e[0].target)){var o=f.default.find(e[0].target),i=(0,v.bubbleFormats)(o),a=o.offset(this.scroll),s=e[0].oldValue.replace(y.default.CONTENTS,""),u=(new c.default).insert(s),l=(new c.default).insert(o.value()),h=(new c.default).retain(a).concat(u.diff(l,r));t=h.reduce((function(t,e){return e.insert?t.insert(e.insert,i):t.push(e)}),new c.default),this.delta=n.compose(t)}else this.delta=this.getDelta(),t&&(0,O.default)(n.compose(t),this.delta)||(t=n.diff(this.delta,r));return t}}]),t}();function A(t,e){return Object.keys(e).reduce((function(r,n){return null==t[n]||(e[n]===t[n]?r[n]=e[n]:Array.isArray(e[n])?e[n].indexOf(t[n])<0&&(r[n]=e[n].concat([t[n]])):r[n]=[e[n],t[n]]),r}),{})}function C(t){return t.reduce((function(t,e){if(1===e.insert){var r=(0,_.default)(e.attributes);return delete r["image"],t.insert({image:e.attributes.image},r)}if(null==e.attributes||!0!==e.attributes.list&&!0!==e.attributes.bullet||(e=(0,_.default)(e),e.attributes.list?e.attributes.list="ordered":(e.attributes.list="bullet",delete e.attributes.bullet)),"string"===typeof e.insert){var n=e.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n");return t.insert(n,e.attributes)}return t.push(e)}),new c.default)}e.default=N},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.Range=void 0;var n=function(){function t(t,e){var r=[],n=!0,o=!1,i=void 0;try{for(var a,c=t[Symbol.iterator]();!(n=(a=c.next()).done);n=!0)if(r.push(a.value),e&&r.length===e)break}catch(s){o=!0,i=s}finally{try{!n&&c["return"]&&c["return"]()}finally{if(o)throw i}}return r}return function(e,r){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),i=r(0),a=y(i),c=r(21),s=y(c),u=r(11),l=y(u),f=r(8),h=y(f),p=r(10),d=y(p);function y(t){return t&&t.__esModule?t:{default:t}}function v(t){if(Array.isArray(t)){for(var e=0,r=Array(t.length);e<t.length;e++)r[e]=t[e];return r}return Array.from(t)}function m(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var g=(0,d.default)("quill:selection"),b=function t(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;m(this,t),this.index=e,this.length=r},w=function(){function t(e,r){var n=this;m(this,t),this.emitter=r,this.scroll=e,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=a.default.create("cursor",this),this.lastRange=this.savedRange=new b(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,(function(){n.mouseDown||setTimeout(n.update.bind(n,h.default.sources.USER),1)})),this.emitter.on(h.default.events.EDITOR_CHANGE,(function(t,e){t===h.default.events.TEXT_CHANGE&&e.length()>0&&n.update(h.default.sources.SILENT)})),this.emitter.on(h.default.events.SCROLL_BEFORE_UPDATE,(function(){if(n.hasFocus()){var t=n.getNativeRange();null!=t&&t.start.node!==n.cursor.textNode&&n.emitter.once(h.default.events.SCROLL_UPDATE,(function(){try{n.setNativeRange(t.start.node,t.start.offset,t.end.node,t.end.offset)}catch(e){}}))}})),this.emitter.on(h.default.events.SCROLL_OPTIMIZE,(function(t,e){if(e.range){var r=e.range,o=r.startNode,i=r.startOffset,a=r.endNode,c=r.endOffset;n.setNativeRange(o,i,a,c)}})),this.update(h.default.sources.SILENT)}return o(t,[{key:"handleComposition",value:function(){var t=this;this.root.addEventListener("compositionstart",(function(){t.composing=!0})),this.root.addEventListener("compositionend",(function(){if(t.composing=!1,t.cursor.parent){var e=t.cursor.restore();if(!e)return;setTimeout((function(){t.setNativeRange(e.startNode,e.startOffset,e.endNode,e.endOffset)}),1)}}))}},{key:"handleDragging",value:function(){var t=this;this.emitter.listenDOM("mousedown",document.body,(function(){t.mouseDown=!0})),this.emitter.listenDOM("mouseup",document.body,(function(){t.mouseDown=!1,t.update(h.default.sources.USER)}))}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(t,e){if(null==this.scroll.whitelist||this.scroll.whitelist[t]){this.scroll.update();var r=this.getNativeRange();if(null!=r&&r.native.collapsed&&!a.default.query(t,a.default.Scope.BLOCK)){if(r.start.node!==this.cursor.textNode){var n=a.default.find(r.start.node,!1);if(null==n)return;if(n instanceof a.default.Leaf){var o=n.split(r.start.offset);n.parent.insertBefore(this.cursor,o)}else n.insertBefore(this.cursor,r.start.node);this.cursor.attach()}this.cursor.format(t,e),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=this.scroll.length();t=Math.min(t,r-1),e=Math.min(t+e,r-1)-t;var o=void 0,i=this.scroll.leaf(t),a=n(i,2),c=a[0],s=a[1];if(null==c)return null;var u=c.position(s,!0),l=n(u,2);o=l[0],s=l[1];var f=document.createRange();if(e>0){f.setStart(o,s);var h=this.scroll.leaf(t+e),p=n(h,2);if(c=p[0],s=p[1],null==c)return null;var d=c.position(s,!0),y=n(d,2);return o=y[0],s=y[1],f.setEnd(o,s),f.getBoundingClientRect()}var v="left",m=void 0;return o instanceof Text?(s<o.data.length?(f.setStart(o,s),f.setEnd(o,s+1)):(f.setStart(o,s-1),f.setEnd(o,s),v="right"),m=f.getBoundingClientRect()):(m=c.domNode.getBoundingClientRect(),s>0&&(v="right")),{bottom:m.top+m.height,height:m.height,left:m[v],right:m[v],top:m.top,width:0}}},{key:"getNativeRange",value:function(){var t=document.getSelection();if(null==t||t.rangeCount<=0)return null;var e=t.getRangeAt(0);if(null==e)return null;var r=this.normalizeNative(e);return g.info("getNativeRange",r),r}},{key:"getRange",value:function(){var t=this.getNativeRange();if(null==t)return[null,null];var e=this.normalizedToRange(t);return[e,t]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(t){var e=this,r=[[t.start.node,t.start.offset]];t.native.collapsed||r.push([t.end.node,t.end.offset]);var o=r.map((function(t){var r=n(t,2),o=r[0],i=r[1],c=a.default.find(o,!0),s=c.offset(e.scroll);return 0===i?s:c instanceof a.default.Container?s+c.length():s+c.index(o,i)})),i=Math.min(Math.max.apply(Math,v(o)),this.scroll.length()-1),c=Math.min.apply(Math,[i].concat(v(o)));return new b(c,i-c)}},{key:"normalizeNative",value:function(t){if(!_(this.root,t.startContainer)||!t.collapsed&&!_(this.root,t.endContainer))return null;var e={start:{node:t.startContainer,offset:t.startOffset},end:{node:t.endContainer,offset:t.endOffset},native:t};return[e.start,e.end].forEach((function(t){var e=t.node,r=t.offset;while(!(e instanceof Text)&&e.childNodes.length>0)if(e.childNodes.length>r)e=e.childNodes[r],r=0;else{if(e.childNodes.length!==r)break;e=e.lastChild,r=e instanceof Text?e.data.length:e.childNodes.length+1}t.node=e,t.offset=r})),e}},{key:"rangeToNative",value:function(t){var e=this,r=t.collapsed?[t.index]:[t.index,t.index+t.length],o=[],i=this.scroll.length();return r.forEach((function(t,r){t=Math.min(i-1,t);var a=void 0,c=e.scroll.leaf(t),s=n(c,2),u=s[0],l=s[1],f=u.position(l,0!==r),h=n(f,2);a=h[0],l=h[1],o.push(a,l)})),o.length<2&&(o=o.concat(o)),o}},{key:"scrollIntoView",value:function(t){var e=this.lastRange;if(null!=e){var r=this.getBounds(e.index,e.length);if(null!=r){var o=this.scroll.length()-1,i=this.scroll.line(Math.min(e.index,o)),a=n(i,1),c=a[0],s=c;if(e.length>0){var u=this.scroll.line(Math.min(e.index+e.length,o)),l=n(u,1);s=l[0]}if(null!=c&&null!=s){var f=t.getBoundingClientRect();r.top<f.top?t.scrollTop-=f.top-r.top:r.bottom>f.bottom&&(t.scrollTop+=r.bottom-f.bottom)}}}}},{key:"setNativeRange",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(g.info("setNativeRange",t,e,r,n),null==t||null!=this.root.parentNode&&null!=t.parentNode&&null!=r.parentNode){var i=document.getSelection();if(null!=i)if(null!=t){this.hasFocus()||this.root.focus();var a=(this.getNativeRange()||{}).native;if(null==a||o||t!==a.startContainer||e!==a.startOffset||r!==a.endContainer||n!==a.endOffset){"BR"==t.tagName&&(e=[].indexOf.call(t.parentNode.childNodes,t),t=t.parentNode),"BR"==r.tagName&&(n=[].indexOf.call(r.parentNode.childNodes,r),r=r.parentNode);var c=document.createRange();c.setStart(t,e),c.setEnd(r,n),i.removeAllRanges(),i.addRange(c)}}else i.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:h.default.sources.API;if("string"===typeof e&&(r=e,e=!1),g.info("setRange",t),null!=t){var n=this.rangeToNative(t);this.setNativeRange.apply(this,v(n).concat([e]))}else this.setNativeRange(null);this.update(r)}},{key:"update",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h.default.sources.USER,e=this.lastRange,r=this.getRange(),o=n(r,2),i=o[0],a=o[1];if(this.lastRange=i,null!=this.lastRange&&(this.savedRange=this.lastRange),!(0,l.default)(e,this.lastRange)){var c;!this.composing&&null!=a&&a.native.collapsed&&a.start.node!==this.cursor.textNode&&this.cursor.restore();var u,f=[h.default.events.SELECTION_CHANGE,(0,s.default)(this.lastRange),(0,s.default)(e),t];if((c=this.emitter).emit.apply(c,[h.default.events.EDITOR_CHANGE].concat(f)),t!==h.default.sources.SILENT)(u=this.emitter).emit.apply(u,f)}}}]),t}();function _(t,e){try{e.parentNode}catch(r){return!1}return e instanceof Text&&(e=e.parentNode),t.contains(e)}e.Range=b,e.default=w},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),o=function t(e,r,n){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,r);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,r,n)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(n):void 0},i=r(0),a=c(i);function c(t){return t&&t.__esModule?t:{default:t}}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function l(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var f=function(t){function e(){return s(this,e),u(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return l(e,t),n(e,[{key:"insertInto",value:function(t,r){0===t.children.length?o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertInto",this).call(this,t,r):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),e}(a.default.Embed);f.blotName="break",f.tagName="BR",e.default=f},function(t,e,r){"use strict";var n=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=r(44),i=r(30),a=r(1),c=function(t){function e(e){var r=t.call(this,e)||this;return r.build(),r}return n(e,t),e.prototype.appendChild=function(t){this.insertBefore(t)},e.prototype.attach=function(){t.prototype.attach.call(this),this.children.forEach((function(t){t.attach()}))},e.prototype.build=function(){var t=this;this.children=new o.default,[].slice.call(this.domNode.childNodes).reverse().forEach((function(e){try{var r=s(e);t.insertBefore(r,t.children.head||void 0)}catch(n){if(n instanceof a.ParchmentError)return;throw n}}))},e.prototype.deleteAt=function(t,e){if(0===t&&e===this.length())return this.remove();this.children.forEachAt(t,e,(function(t,e,r){t.deleteAt(e,r)}))},e.prototype.descendant=function(t,r){var n=this.children.find(r),o=n[0],i=n[1];return null==t.blotName&&t(o)||null!=t.blotName&&o instanceof t?[o,i]:o instanceof e?o.descendant(t,i):[null,-1]},e.prototype.descendants=function(t,r,n){void 0===r&&(r=0),void 0===n&&(n=Number.MAX_VALUE);var o=[],i=n;return this.children.forEachAt(r,n,(function(r,n,a){(null==t.blotName&&t(r)||null!=t.blotName&&r instanceof t)&&o.push(r),r instanceof e&&(o=o.concat(r.descendants(t,n,i))),i-=a})),o},e.prototype.detach=function(){this.children.forEach((function(t){t.detach()})),t.prototype.detach.call(this)},e.prototype.formatAt=function(t,e,r,n){this.children.forEachAt(t,e,(function(t,e,o){t.formatAt(e,o,r,n)}))},e.prototype.insertAt=function(t,e,r){var n=this.children.find(t),o=n[0],i=n[1];if(o)o.insertAt(i,e,r);else{var c=null==r?a.create("text",e):a.create(e,r);this.appendChild(c)}},e.prototype.insertBefore=function(t,e){if(null!=this.statics.allowedChildren&&!this.statics.allowedChildren.some((function(e){return t instanceof e})))throw new a.ParchmentError("Cannot insert "+t.statics.blotName+" into "+this.statics.blotName);t.insertInto(this,e)},e.prototype.length=function(){return this.children.reduce((function(t,e){return t+e.length()}),0)},e.prototype.moveChildren=function(t,e){this.children.forEach((function(r){t.insertBefore(r,e)}))},e.prototype.optimize=function(e){if(t.prototype.optimize.call(this,e),0===this.children.length)if(null!=this.statics.defaultChild){var r=a.create(this.statics.defaultChild);this.appendChild(r),r.optimize(e)}else this.remove()},e.prototype.path=function(t,r){void 0===r&&(r=!1);var n=this.children.find(t,r),o=n[0],i=n[1],a=[[this,t]];return o instanceof e?a.concat(o.path(i,r)):(null!=o&&a.push([o,i]),a)},e.prototype.removeChild=function(t){this.children.remove(t)},e.prototype.replace=function(r){r instanceof e&&r.moveChildren(this),t.prototype.replace.call(this,r)},e.prototype.split=function(t,e){if(void 0===e&&(e=!1),!e){if(0===t)return this;if(t===this.length())return this.next}var r=this.clone();return this.parent.insertBefore(r,this.next),this.children.forEachAt(t,this.length(),(function(t,n,o){t=t.split(n,e),r.appendChild(t)})),r},e.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},e.prototype.update=function(t,e){var r=this,n=[],o=[];t.forEach((function(t){t.target===r.domNode&&"childList"===t.type&&(n.push.apply(n,t.addedNodes),o.push.apply(o,t.removedNodes))})),o.forEach((function(t){if(!(null!=t.parentNode&&"IFRAME"!==t.tagName&&document.body.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var e=a.find(t);null!=e&&(null!=e.domNode.parentNode&&e.domNode.parentNode!==r.domNode||e.detach())}})),n.filter((function(t){return t.parentNode==r.domNode})).sort((function(t,e){return t===e?0:t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1})).forEach((function(t){var e=null;null!=t.nextSibling&&(e=a.find(t.nextSibling));var n=s(t);n.next==e&&null!=n.next||(null!=n.parent&&n.parent.removeChild(r),r.insertBefore(n,e||void 0))}))},e}(i.default);function s(t){var e=a.find(t);if(null==e)try{e=a.create(t)}catch(r){e=a.create(a.Scope.INLINE),[].slice.call(t.childNodes).forEach((function(t){e.domNode.appendChild(t)})),t.parentNode&&t.parentNode.replaceChild(e.domNode,t),e.attach()}return e}e.default=c},function(t,e,r){"use strict";var n=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=r(12),i=r(31),a=r(17),c=r(1),s=function(t){function e(e){var r=t.call(this,e)||this;return r.attributes=new i.default(r.domNode),r}return n(e,t),e.formats=function(t){return"string"===typeof this.tagName||(Array.isArray(this.tagName)?t.tagName.toLowerCase():void 0)},e.prototype.format=function(t,e){var r=c.query(t);r instanceof o.default?this.attributes.attribute(r,e):e&&(null==r||t===this.statics.blotName&&this.formats()[t]===e||this.replaceWith(t,e))},e.prototype.formats=function(){var t=this.attributes.values(),e=this.statics.formats(this.domNode);return null!=e&&(t[this.statics.blotName]=e),t},e.prototype.replaceWith=function(e,r){var n=t.prototype.replaceWith.call(this,e,r);return this.attributes.copy(n),n},e.prototype.update=function(e,r){var n=this;t.prototype.update.call(this,e,r),e.some((function(t){return t.target===n.domNode&&"attributes"===t.type}))&&this.attributes.build()},e.prototype.wrap=function(r,n){var o=t.prototype.wrap.call(this,r,n);return o instanceof e&&o.statics.scope===this.statics.scope&&this.attributes.move(o),o},e}(a.default);e.default=s},function(t,e,r){"use strict";var n=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=r(30),i=r(1),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.value=function(t){return!0},e.prototype.index=function(t,e){return this.domNode===t||this.domNode.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(e,1):-1},e.prototype.position=function(t,e){var r=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return t>0&&(r+=1),[this.parent.domNode,r]},e.prototype.value=function(){var t;return t={},t[this.statics.blotName]=this.statics.value(this.domNode)||!0,t},e.scope=i.Scope.INLINE_BLOT,e}(o.default);e.default=a},function(t,e,r){var n=r(11),o=r(3),i={attributes:{compose:function(t,e,r){"object"!==typeof t&&(t={}),"object"!==typeof e&&(e={});var n=o(!0,{},e);for(var i in r||(n=Object.keys(n).reduce((function(t,e){return null!=n[e]&&(t[e]=n[e]),t}),{})),t)void 0!==t[i]&&void 0===e[i]&&(n[i]=t[i]);return Object.keys(n).length>0?n:void 0},diff:function(t,e){"object"!==typeof t&&(t={}),"object"!==typeof e&&(e={});var r=Object.keys(t).concat(Object.keys(e)).reduce((function(r,o){return n(t[o],e[o])||(r[o]=void 0===e[o]?null:e[o]),r}),{});return Object.keys(r).length>0?r:void 0},transform:function(t,e,r){if("object"!==typeof t)return e;if("object"===typeof e){if(!r)return e;var n=Object.keys(e).reduce((function(r,n){return void 0===t[n]&&(r[n]=e[n]),r}),{});return Object.keys(n).length>0?n:void 0}}},iterator:function(t){return new a(t)},length:function(t){return"number"===typeof t["delete"]?t["delete"]:"number"===typeof t.retain?t.retain:"string"===typeof t.insert?t.insert.length:1}};function a(t){this.ops=t,this.index=0,this.offset=0}a.prototype.hasNext=function(){return this.peekLength()<1/0},a.prototype.next=function(t){t||(t=1/0);var e=this.ops[this.index];if(e){var r=this.offset,n=i.length(e);if(t>=n-r?(t=n-r,this.index+=1,this.offset=0):this.offset+=t,"number"===typeof e["delete"])return{delete:t};var o={};return e.attributes&&(o.attributes=e.attributes),"number"===typeof e.retain?o.retain=t:"string"===typeof e.insert?o.insert=e.insert.substr(r,t):o.insert=e.insert,o}return{retain:1/0}},a.prototype.peek=function(){return this.ops[this.index]},a.prototype.peekLength=function(){return this.ops[this.index]?i.length(this.ops[this.index])-this.offset:1/0},a.prototype.peekType=function(){return this.ops[this.index]?"number"===typeof this.ops[this.index]["delete"]?"delete":"number"===typeof this.ops[this.index].retain?"retain":"insert":"retain"},a.prototype.rest=function(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);var t=this.offset,e=this.index,r=this.next(),n=this.ops.slice(this.index);return this.offset=t,this.index=e,[r].concat(n)}return[]},t.exports=i},function(t,r){var n=function(){"use strict";function t(t,e){return null!=e&&t instanceof e}var r,n,o;try{r=Map}catch(f){r=function(){}}try{n=Set}catch(f){n=function(){}}try{o=Promise}catch(f){o=function(){}}function i(a,c,s,u,f){"object"===typeof c&&(s=c.depth,u=c.prototype,f=c.includeNonEnumerable,c=c.circular);var h=[],p=[],d="undefined"!=typeof e;function y(a,s){if(null===a)return null;if(0===s)return a;var v,m;if("object"!=typeof a)return a;if(t(a,r))v=new r;else if(t(a,n))v=new n;else if(t(a,o))v=new o((function(t,e){a.then((function(e){t(y(e,s-1))}),(function(t){e(y(t,s-1))}))}));else if(i.__isArray(a))v=[];else if(i.__isRegExp(a))v=new RegExp(a.source,l(a)),a.lastIndex&&(v.lastIndex=a.lastIndex);else if(i.__isDate(a))v=new Date(a.getTime());else{if(d&&e.isBuffer(a))return v=e.allocUnsafe?e.allocUnsafe(a.length):new e(a.length),a.copy(v),v;t(a,Error)?v=Object.create(a):"undefined"==typeof u?(m=Object.getPrototypeOf(a),v=Object.create(m)):(v=Object.create(u),m=u)}if(c){var g=h.indexOf(a);if(-1!=g)return p[g];h.push(a),p.push(v)}for(var b in t(a,r)&&a.forEach((function(t,e){var r=y(e,s-1),n=y(t,s-1);v.set(r,n)})),t(a,n)&&a.forEach((function(t){var e=y(t,s-1);v.add(e)})),a){var w;m&&(w=Object.getOwnPropertyDescriptor(m,b)),w&&null==w.set||(v[b]=y(a[b],s-1))}if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(a);for(b=0;b<_.length;b++){var x=_[b],O=Object.getOwnPropertyDescriptor(a,x);(!O||O.enumerable||f)&&(v[x]=y(a[x],s-1),O.enumerable||Object.defineProperty(v,x,{enumerable:!1}))}}if(f){var k=Object.getOwnPropertyNames(a);for(b=0;b<k.length;b++){var E=k[b];O=Object.getOwnPropertyDescriptor(a,E);O&&O.enumerable||(v[E]=y(a[E],s-1),Object.defineProperty(v,E,{enumerable:!1}))}}return v}return"undefined"==typeof c&&(c=!0),"undefined"==typeof s&&(s=1/0),y(a,s)}function a(t){return Object.prototype.toString.call(t)}function c(t){return"object"===typeof t&&"[object Date]"===a(t)}function s(t){return"object"===typeof t&&"[object Array]"===a(t)}function u(t){return"object"===typeof t&&"[object RegExp]"===a(t)}function l(t){var e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),e}return i.clonePrototype=function(t){if(null===t)return null;var e=function(){};return e.prototype=t,new e},i.__objToStr=a,i.__isDate=c,i.__isArray=s,i.__isRegExp=u,i.__getRegExpFlags=l,i}();"object"===typeof t&&t.exports&&(t.exports=n)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){var r=[],n=!0,o=!1,i=void 0;try{for(var a,c=t[Symbol.iterator]();!(n=(a=c.next()).done);n=!0)if(r.push(a.value),e&&r.length===e)break}catch(s){o=!0,i=s}finally{try{!n&&c["return"]&&c["return"]()}finally{if(o)throw i}}return r}return function(e,r){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),i=function t(e,r,n){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,r);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,r,n)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(n):void 0},a=r(0),c=g(a),s=r(8),u=g(s),l=r(4),f=g(l),h=r(16),p=g(h),d=r(13),y=g(d),v=r(25),m=g(v);function g(t){return t&&t.__esModule?t:{default:t}}function b(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function w(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function _(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function x(t){return t instanceof f.default||t instanceof l.BlockEmbed}var O=function(t){function e(t,r){b(this,e);var n=w(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.emitter=r.emitter,Array.isArray(r.whitelist)&&(n.whitelist=r.whitelist.reduce((function(t,e){return t[e]=!0,t}),{})),n.domNode.addEventListener("DOMNodeInserted",(function(){})),n.optimize(),n.enable(),n}return _(e,t),o(e,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(t,r){var o=this.line(t),a=n(o,2),c=a[0],s=a[1],u=this.line(t+r),f=n(u,1),h=f[0];if(i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"deleteAt",this).call(this,t,r),null!=h&&c!==h&&s>0){if(c instanceof l.BlockEmbed||h instanceof l.BlockEmbed)return void this.optimize();if(c instanceof y.default){var d=c.newlineIndex(c.length(),!0);if(d>-1&&(c=c.split(d+1),c===h))return void this.optimize()}else if(h instanceof y.default){var v=h.newlineIndex(0);v>-1&&h.split(v+1)}var m=h.children.head instanceof p.default?null:h.children.head;c.moveChildren(h,m),c.remove()}this.optimize()}},{key:"enable",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.domNode.setAttribute("contenteditable",t)}},{key:"formatAt",value:function(t,r,n,o){(null==this.whitelist||this.whitelist[n])&&(i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"formatAt",this).call(this,t,r,n,o),this.optimize())}},{key:"insertAt",value:function(t,r,n){if(null==n||null==this.whitelist||this.whitelist[r]){if(t>=this.length())if(null==n||null==c.default.query(r,c.default.Scope.BLOCK)){var o=c.default.create(this.statics.defaultChild);this.appendChild(o),null==n&&r.endsWith("\n")&&(r=r.slice(0,-1)),o.insertAt(0,r,n)}else{var a=c.default.create(r,n);this.appendChild(a)}else i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertAt",this).call(this,t,r,n);this.optimize()}}},{key:"insertBefore",value:function(t,r){if(t.statics.scope===c.default.Scope.INLINE_BLOT){var n=c.default.create(this.statics.defaultChild);n.appendChild(t),t=n}i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertBefore",this).call(this,t,r)}},{key:"leaf",value:function(t){return this.path(t).pop()||[null,-1]}},{key:"line",value:function(t){return t===this.length()?this.line(t-1):this.descendant(x,t)}},{key:"lines",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE,r=function t(e,r,n){var o=[],i=n;return e.children.forEachAt(r,n,(function(e,r,n){x(e)?o.push(e):e instanceof c.default.Container&&(o=o.concat(t(e,r,i))),i-=n})),o};return r(this,t,e)}},{key:"optimize",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!0!==this.batch&&(i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t,r),t.length>0&&this.emitter.emit(u.default.events.SCROLL_OPTIMIZE,t,r))}},{key:"path",value:function(t){return i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"path",this).call(this,t).slice(1)}},{key:"update",value:function(t){if(!0!==this.batch){var r=u.default.sources.USER;"string"===typeof t&&(r=t),Array.isArray(t)||(t=this.observer.takeRecords()),t.length>0&&this.emitter.emit(u.default.events.SCROLL_BEFORE_UPDATE,r,t),i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"update",this).call(this,t.concat([])),t.length>0&&this.emitter.emit(u.default.events.SCROLL_UPDATE,r,t)}}}]),e}(c.default.Scroll);O.blotName="scroll",O.className="ql-editor",O.tagName="DIV",O.defaultChild="block",O.allowedChildren=[f.default,l.BlockEmbed,m.default],e.default=O},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SHORTKEY=e.default=void 0;var n="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=function(){function t(t,e){var r=[],n=!0,o=!1,i=void 0;try{for(var a,c=t[Symbol.iterator]();!(n=(a=c.next()).done);n=!0)if(r.push(a.value),e&&r.length===e)break}catch(s){o=!0,i=s}finally{try{!n&&c["return"]&&c["return"]()}finally{if(o)throw i}}return r}return function(e,r){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),a=r(21),c=k(a),s=r(11),u=k(s),l=r(3),f=k(l),h=r(2),p=k(h),d=r(20),y=k(d),v=r(0),m=k(v),g=r(5),b=k(g),w=r(10),_=k(w),x=r(9),O=k(x);function k(t){return t&&t.__esModule?t:{default:t}}function E(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function S(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function j(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function L(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var P=(0,_.default)("quill:keyboard"),N=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",A=function(t){function e(t,r){S(this,e);var n=j(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,r));return n.bindings={},Object.keys(n.options.bindings).forEach((function(e){("list autofill"!==e||null==t.scroll.whitelist||t.scroll.whitelist["list"])&&n.options.bindings[e]&&n.addBinding(n.options.bindings[e])})),n.addBinding({key:e.keys.ENTER,shiftKey:null},D),n.addBinding({key:e.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},(function(){})),/Firefox/i.test(navigator.userAgent)?(n.addBinding({key:e.keys.BACKSPACE},{collapsed:!0},T),n.addBinding({key:e.keys.DELETE},{collapsed:!0},I)):(n.addBinding({key:e.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},T),n.addBinding({key:e.keys.DELETE},{collapsed:!0,suffix:/^.?$/},I)),n.addBinding({key:e.keys.BACKSPACE},{collapsed:!1},M),n.addBinding({key:e.keys.DELETE},{collapsed:!1},M),n.addBinding({key:e.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},T),n.listen(),n}return L(e,t),i(e,null,[{key:"match",value:function(t,e){return e=B(e),!["altKey","ctrlKey","metaKey","shiftKey"].some((function(r){return!!e[r]!==t[r]&&null!==e[r]}))&&e.key===(t.which||t.keyCode)}}]),i(e,[{key:"addBinding",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=B(t);if(null==n||null==n.key)return P.warn("Attempted to add invalid keyboard binding",n);"function"===typeof e&&(e={handler:e}),"function"===typeof r&&(r={handler:r}),n=(0,f.default)(n,e,r),this.bindings[n.key]=this.bindings[n.key]||[],this.bindings[n.key].push(n)}},{key:"listen",value:function(){var t=this;this.quill.root.addEventListener("keydown",(function(r){if(!r.defaultPrevented){var i=r.which||r.keyCode,a=(t.bindings[i]||[]).filter((function(t){return e.match(r,t)}));if(0!==a.length){var c=t.quill.getSelection();if(null!=c&&t.quill.hasFocus()){var s=t.quill.getLine(c.index),l=o(s,2),f=l[0],h=l[1],p=t.quill.getLeaf(c.index),d=o(p,2),y=d[0],v=d[1],g=0===c.length?[y,v]:t.quill.getLeaf(c.index+c.length),b=o(g,2),w=b[0],_=b[1],x=y instanceof m.default.Text?y.value().slice(0,v):"",O=w instanceof m.default.Text?w.value().slice(_):"",k={collapsed:0===c.length,empty:0===c.length&&f.length()<=1,format:t.quill.getFormat(c),offset:h,prefix:x,suffix:O},E=a.some((function(e){if(null!=e.collapsed&&e.collapsed!==k.collapsed)return!1;if(null!=e.empty&&e.empty!==k.empty)return!1;if(null!=e.offset&&e.offset!==k.offset)return!1;if(Array.isArray(e.format)){if(e.format.every((function(t){return null==k.format[t]})))return!1}else if("object"===n(e.format)&&!Object.keys(e.format).every((function(t){return!0===e.format[t]?null!=k.format[t]:!1===e.format[t]?null==k.format[t]:(0,u.default)(e.format[t],k.format[t])})))return!1;return!(null!=e.prefix&&!e.prefix.test(k.prefix))&&(!(null!=e.suffix&&!e.suffix.test(k.suffix))&&!0!==e.handler.call(t,c,k))}));E&&r.preventDefault()}}}}))}}]),e}(O.default);function C(t,e){var r,n=t===A.keys.LEFT?"prefix":"suffix";return r={key:t,shiftKey:e,altKey:null},E(r,n,/^$/),E(r,"handler",(function(r){var n=r.index;t===A.keys.RIGHT&&(n+=r.length+1);var i=this.quill.getLeaf(n),a=o(i,1),c=a[0];return!(c instanceof m.default.Embed)||(t===A.keys.LEFT?e?this.quill.setSelection(r.index-1,r.length+1,b.default.sources.USER):this.quill.setSelection(r.index-1,b.default.sources.USER):e?this.quill.setSelection(r.index,r.length+1,b.default.sources.USER):this.quill.setSelection(r.index+r.length+1,b.default.sources.USER),!1)})),r}function T(t,e){if(!(0===t.index||this.quill.getLength()<=1)){var r=this.quill.getLine(t.index),n=o(r,1),i=n[0],a={};if(0===e.offset){var c=this.quill.getLine(t.index-1),s=o(c,1),u=s[0];if(null!=u&&u.length()>1){var l=i.formats(),f=this.quill.getFormat(t.index-1,1);a=y.default.attributes.diff(l,f)||{}}}var h=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(e.prefix)?2:1;this.quill.deleteText(t.index-h,h,b.default.sources.USER),Object.keys(a).length>0&&this.quill.formatLine(t.index-h,h,a,b.default.sources.USER),this.quill.focus()}}function I(t,e){var r=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(e.suffix)?2:1;if(!(t.index>=this.quill.getLength()-r)){var n={},i=0,a=this.quill.getLine(t.index),c=o(a,1),s=c[0];if(e.offset>=s.length()-1){var u=this.quill.getLine(t.index+1),l=o(u,1),f=l[0];if(f){var h=s.formats(),p=this.quill.getFormat(t.index,1);n=y.default.attributes.diff(h,p)||{},i=f.length()}}this.quill.deleteText(t.index,r,b.default.sources.USER),Object.keys(n).length>0&&this.quill.formatLine(t.index+i-1,r,n,b.default.sources.USER)}}function M(t){var e=this.quill.getLines(t),r={};if(e.length>1){var n=e[0].formats(),o=e[e.length-1].formats();r=y.default.attributes.diff(o,n)||{}}this.quill.deleteText(t,b.default.sources.USER),Object.keys(r).length>0&&this.quill.formatLine(t.index,1,r,b.default.sources.USER),this.quill.setSelection(t.index,b.default.sources.SILENT),this.quill.focus()}function D(t,e){var r=this;t.length>0&&this.quill.scroll.deleteAt(t.index,t.length);var n=Object.keys(e.format).reduce((function(t,r){return m.default.query(r,m.default.Scope.BLOCK)&&!Array.isArray(e.format[r])&&(t[r]=e.format[r]),t}),{});this.quill.insertText(t.index,"\n",n,b.default.sources.USER),this.quill.setSelection(t.index+1,b.default.sources.SILENT),this.quill.focus(),Object.keys(e.format).forEach((function(t){null==n[t]&&(Array.isArray(e.format[t])||"link"!==t&&r.quill.format(t,e.format[t],b.default.sources.USER))}))}function q(t){return{key:A.keys.TAB,shiftKey:!t,format:{"code-block":!0},handler:function(e){var r=m.default.query("code-block"),n=e.index,i=e.length,a=this.quill.scroll.descendant(r,n),c=o(a,2),s=c[0],u=c[1];if(null!=s){var l=this.quill.getIndex(s),f=s.newlineIndex(u,!0)+1,h=s.newlineIndex(l+u+i),p=s.domNode.textContent.slice(f,h).split("\n");u=0,p.forEach((function(e,o){t?(s.insertAt(f+u,r.TAB),u+=r.TAB.length,0===o?n+=r.TAB.length:i+=r.TAB.length):e.startsWith(r.TAB)&&(s.deleteAt(f+u,r.TAB.length),u-=r.TAB.length,0===o?n-=r.TAB.length:i-=r.TAB.length),u+=e.length+1})),this.quill.update(b.default.sources.USER),this.quill.setSelection(n,i,b.default.sources.SILENT)}}}}function R(t){return{key:t[0].toUpperCase(),shortKey:!0,handler:function(e,r){this.quill.format(t,!r.format[t],b.default.sources.USER)}}}function B(t){if("string"===typeof t||"number"===typeof t)return B({key:t});if("object"===("undefined"===typeof t?"undefined":n(t))&&(t=(0,c.default)(t,!1)),"string"===typeof t.key)if(null!=A.keys[t.key.toUpperCase()])t.key=A.keys[t.key.toUpperCase()];else{if(1!==t.key.length)return null;t.key=t.key.toUpperCase().charCodeAt(0)}return t.shortKey&&(t[N]=t.shortKey,delete t.shortKey),t}A.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},A.DEFAULTS={bindings:{bold:R("bold"),italic:R("italic"),underline:R("underline"),indent:{key:A.keys.TAB,format:["blockquote","indent","list"],handler:function(t,e){if(e.collapsed&&0!==e.offset)return!0;this.quill.format("indent","+1",b.default.sources.USER)}},outdent:{key:A.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(t,e){if(e.collapsed&&0!==e.offset)return!0;this.quill.format("indent","-1",b.default.sources.USER)}},"outdent backspace":{key:A.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(t,e){null!=e.format.indent?this.quill.format("indent","-1",b.default.sources.USER):null!=e.format.list&&this.quill.format("list",!1,b.default.sources.USER)}},"indent code-block":q(!0),"outdent code-block":q(!1),"remove tab":{key:A.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(t){this.quill.deleteText(t.index-1,1,b.default.sources.USER)}},tab:{key:A.keys.TAB,handler:function(t){this.quill.history.cutoff();var e=(new p.default).retain(t.index).delete(t.length).insert("\t");this.quill.updateContents(e,b.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(t.index+1,b.default.sources.SILENT)}},"list empty enter":{key:A.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(t,e){this.quill.format("list",!1,b.default.sources.USER),e.format.indent&&this.quill.format("indent",!1,b.default.sources.USER)}},"checklist enter":{key:A.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(t){var e=this.quill.getLine(t.index),r=o(e,2),n=r[0],i=r[1],a=(0,f.default)({},n.formats(),{list:"checked"}),c=(new p.default).retain(t.index).insert("\n",a).retain(n.length()-i-1).retain(1,{list:"unchecked"});this.quill.updateContents(c,b.default.sources.USER),this.quill.setSelection(t.index+1,b.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:A.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(t,e){var r=this.quill.getLine(t.index),n=o(r,2),i=n[0],a=n[1],c=(new p.default).retain(t.index).insert("\n",e.format).retain(i.length()-a-1).retain(1,{header:null});this.quill.updateContents(c,b.default.sources.USER),this.quill.setSelection(t.index+1,b.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(t,e){var r=e.prefix.length,n=this.quill.getLine(t.index),i=o(n,2),a=i[0],c=i[1];if(c>r)return!0;var s=void 0;switch(e.prefix.trim()){case"[]":case"[ ]":s="unchecked";break;case"[x]":s="checked";break;case"-":case"*":s="bullet";break;default:s="ordered"}this.quill.insertText(t.index," ",b.default.sources.USER),this.quill.history.cutoff();var u=(new p.default).retain(t.index-c).delete(r+1).retain(a.length()-2-c).retain(1,{list:s});this.quill.updateContents(u,b.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(t.index-r,b.default.sources.SILENT)}},"code exit":{key:A.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(t){var e=this.quill.getLine(t.index),r=o(e,2),n=r[0],i=r[1],a=(new p.default).retain(t.index+n.length()-i-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(a,b.default.sources.USER)}},"embed left":C(A.keys.LEFT,!1),"embed left shift":C(A.keys.LEFT,!0),"embed right":C(A.keys.RIGHT,!1),"embed right shift":C(A.keys.RIGHT,!0)}},e.default=A,e.SHORTKEY=N},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){var r=[],n=!0,o=!1,i=void 0;try{for(var a,c=t[Symbol.iterator]();!(n=(a=c.next()).done);n=!0)if(r.push(a.value),e&&r.length===e)break}catch(s){o=!0,i=s}finally{try{!n&&c["return"]&&c["return"]()}finally{if(o)throw i}}return r}return function(e,r){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=function t(e,r,n){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,r);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,r,n)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(n):void 0},i=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),a=r(0),c=l(a),s=r(7),u=l(s);function l(t){return t&&t.__esModule?t:{default:t}}function f(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function h(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function p(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var d=function(t){function e(t,r){f(this,e);var n=h(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.selection=r,n.textNode=document.createTextNode(e.CONTENTS),n.domNode.appendChild(n.textNode),n._length=0,n}return p(e,t),i(e,null,[{key:"value",value:function(){}}]),i(e,[{key:"detach",value:function(){null!=this.parent&&this.parent.removeChild(this)}},{key:"format",value:function(t,r){if(0!==this._length)return o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,r);var n=this,i=0;while(null!=n&&n.statics.scope!==c.default.Scope.BLOCK_BLOT)i+=n.offset(n.parent),n=n.parent;null!=n&&(this._length=e.CONTENTS.length,n.optimize(),n.formatAt(i,e.CONTENTS.length,t,r),this._length=0)}},{key:"index",value:function(t,r){return t===this.textNode?0:o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"index",this).call(this,t,r)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!this.selection.composing&&null!=this.parent){var t=this.textNode,r=this.selection.getNativeRange(),o=void 0,i=void 0,a=void 0;if(null!=r&&r.start.node===t&&r.end.node===t){var s=[t,r.start.offset,r.end.offset];o=s[0],i=s[1],a=s[2]}while(null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==e.CONTENTS){var l=this.textNode.data.split(e.CONTENTS).join("");this.next instanceof u.default?(o=this.next.domNode,this.next.insertAt(0,l),this.textNode.data=e.CONTENTS):(this.textNode.data=l,this.parent.insertBefore(c.default.create(this.textNode),this),this.textNode=document.createTextNode(e.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),null!=i){var f=[i,a].map((function(t){return Math.max(0,Math.min(o.data.length,t-1))})),h=n(f,2);return i=h[0],a=h[1],{startNode:o,startOffset:i,endNode:o,endOffset:a}}}}},{key:"update",value:function(t,e){var r=this;if(t.some((function(t){return"characterData"===t.type&&t.target===r.textNode}))){var n=this.restore();n&&(e.range=n)}}},{key:"value",value:function(){return""}}]),e}(c.default.Embed);d.blotName="cursor",d.className="ql-cursor",d.tagName="span",d.CONTENTS="\ufeff",e.default=d},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),o=c(n),i=r(4),a=c(i);function c(t){return t&&t.__esModule?t:{default:t}}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function l(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var f=function(t){function e(){return s(this,e),u(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return l(e,t),e}(o.default.Container);f.allowedChildren=[a.default,i.BlockEmbed,f],e.default=f},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ColorStyle=e.ColorClass=e.ColorAttributor=void 0;var n=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),o=function t(e,r,n){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,r);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,r,n)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(n):void 0},i=r(0),a=c(i);function c(t){return t&&t.__esModule?t:{default:t}}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function l(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var f=function(t){function e(){return s(this,e),u(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return l(e,t),n(e,[{key:"value",value:function(t){var r=o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"value",this).call(this,t);return r.startsWith("rgb(")?(r=r.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+r.split(",").map((function(t){return("00"+parseInt(t).toString(16)).slice(-2)})).join("")):r}}]),e}(a.default.Attributor.Style),h=new a.default.Attributor.Class("color","ql-color",{scope:a.default.Scope.INLINE}),p=new f("color","color",{scope:a.default.Scope.INLINE});e.ColorAttributor=f,e.ColorClass=h,e.ColorStyle=p},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sanitize=e.default=void 0;var n=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),o=function t(e,r,n){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,r);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,r,n)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(n):void 0},i=r(6),a=c(i);function c(t){return t&&t.__esModule?t:{default:t}}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function l(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var f=function(t){function e(){return s(this,e),u(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return l(e,t),n(e,[{key:"format",value:function(t,r){if(t!==this.statics.blotName||!r)return o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,r);r=this.constructor.sanitize(r),this.domNode.setAttribute("href",r)}}],[{key:"create",value:function(t){var r=o(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return t=this.sanitize(t),r.setAttribute("href",t),r.setAttribute("rel","noopener noreferrer"),r.setAttribute("target","_blank"),r}},{key:"formats",value:function(t){return t.getAttribute("href")}},{key:"sanitize",value:function(t){return h(t,this.PROTOCOL_WHITELIST)?t:this.SANITIZED_URL}}]),e}(a.default);function h(t,e){var r=document.createElement("a");r.href=t;var n=r.href.slice(0,r.href.indexOf(":"));return e.indexOf(n)>-1}f.blotName="link",f.tagName="A",f.SANITIZED_URL="about:blank",f.PROTOCOL_WHITELIST=["http","https","mailto","tel"],e.default=f,e.sanitize=h},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),i=r(23),a=u(i),c=r(107),s=u(c);function u(t){return t&&t.__esModule?t:{default:t}}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var f=0;function h(t,e){t.setAttribute(e,!("true"===t.getAttribute(e)))}var p=function(){function t(e){var r=this;l(this,t),this.select=e,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",(function(){r.togglePicker()})),this.label.addEventListener("keydown",(function(t){switch(t.keyCode){case a.default.keys.ENTER:r.togglePicker();break;case a.default.keys.ESCAPE:r.escape(),t.preventDefault();break;default:}})),this.select.addEventListener("change",this.update.bind(this))}return o(t,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),h(this.label,"aria-expanded"),h(this.options,"aria-hidden")}},{key:"buildItem",value:function(t){var e=this,r=document.createElement("span");return r.tabIndex="0",r.setAttribute("role","button"),r.classList.add("ql-picker-item"),t.hasAttribute("value")&&r.setAttribute("data-value",t.getAttribute("value")),t.textContent&&r.setAttribute("data-label",t.textContent),r.addEventListener("click",(function(){e.selectItem(r,!0)})),r.addEventListener("keydown",(function(t){switch(t.keyCode){case a.default.keys.ENTER:e.selectItem(r,!0),t.preventDefault();break;case a.default.keys.ESCAPE:e.escape(),t.preventDefault();break;default:}})),r}},{key:"buildLabel",value:function(){var t=document.createElement("span");return t.classList.add("ql-picker-label"),t.innerHTML=s.default,t.tabIndex="0",t.setAttribute("role","button"),t.setAttribute("aria-expanded","false"),this.container.appendChild(t),t}},{key:"buildOptions",value:function(){var t=this,e=document.createElement("span");e.classList.add("ql-picker-options"),e.setAttribute("aria-hidden","true"),e.tabIndex="-1",e.id="ql-picker-options-"+f,f+=1,this.label.setAttribute("aria-controls",e.id),this.options=e,[].slice.call(this.select.options).forEach((function(r){var n=t.buildItem(r);e.appendChild(n),!0===r.selected&&t.selectItem(n)})),this.container.appendChild(e)}},{key:"buildPicker",value:function(){var t=this;[].slice.call(this.select.attributes).forEach((function(e){t.container.setAttribute(e.name,e.value)})),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var t=this;this.close(),setTimeout((function(){return t.label.focus()}),1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.container.querySelector(".ql-selected");if(t!==r&&(null!=r&&r.classList.remove("ql-selected"),null!=t&&(t.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(t.parentNode.children,t),t.hasAttribute("data-value")?this.label.setAttribute("data-value",t.getAttribute("data-value")):this.label.removeAttribute("data-value"),t.hasAttribute("data-label")?this.label.setAttribute("data-label",t.getAttribute("data-label")):this.label.removeAttribute("data-label"),e))){if("function"===typeof Event)this.select.dispatchEvent(new Event("change"));else if("object"===("undefined"===typeof Event?"undefined":n(Event))){var o=document.createEvent("Event");o.initEvent("change",!0,!0),this.select.dispatchEvent(o)}this.close()}}},{key:"update",value:function(){var t=void 0;if(this.select.selectedIndex>-1){var e=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];t=this.select.options[this.select.selectedIndex],this.selectItem(e)}else this.selectItem(null);var r=null!=t&&t!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",r)}}]),t}();e.default=p},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(0),o=P(n),i=r(5),a=P(i),c=r(4),s=P(c),u=r(16),l=P(u),f=r(25),h=P(f),p=r(24),d=P(p),y=r(35),v=P(y),m=r(6),g=P(m),b=r(22),w=P(b),_=r(7),x=P(_),O=r(55),k=P(O),E=r(42),S=P(E),j=r(23),L=P(j);function P(t){return t&&t.__esModule?t:{default:t}}a.default.register({"blots/block":s.default,"blots/block/embed":c.BlockEmbed,"blots/break":l.default,"blots/container":h.default,"blots/cursor":d.default,"blots/embed":v.default,"blots/inline":g.default,"blots/scroll":w.default,"blots/text":x.default,"modules/clipboard":k.default,"modules/history":S.default,"modules/keyboard":L.default}),o.default.register(s.default,l.default,d.default,g.default,w.default,x.default),e.default=a.default},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(1),o=function(){function t(t){this.domNode=t,this.domNode[n.DATA_KEY]={blot:this}}return Object.defineProperty(t.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),t.create=function(t){if(null==this.tagName)throw new n.ParchmentError("Blot definition missing tagName");var e;return Array.isArray(this.tagName)?("string"===typeof t&&(t=t.toUpperCase(),parseInt(t).toString()===t&&(t=parseInt(t))),e="number"===typeof t?document.createElement(this.tagName[t-1]):this.tagName.indexOf(t)>-1?document.createElement(t):document.createElement(this.tagName[0])):e=document.createElement(this.tagName),this.className&&e.classList.add(this.className),e},t.prototype.attach=function(){null!=this.parent&&(this.scroll=this.parent.scroll)},t.prototype.clone=function(){var t=this.domNode.cloneNode(!1);return n.create(t)},t.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),delete this.domNode[n.DATA_KEY]},t.prototype.deleteAt=function(t,e){var r=this.isolate(t,e);r.remove()},t.prototype.formatAt=function(t,e,r,o){var i=this.isolate(t,e);if(null!=n.query(r,n.Scope.BLOT)&&o)i.wrap(r,o);else if(null!=n.query(r,n.Scope.ATTRIBUTE)){var a=n.create(this.statics.scope);i.wrap(a),a.format(r,o)}},t.prototype.insertAt=function(t,e,r){var o=null==r?n.create("text",e):n.create(e,r),i=this.split(t);this.parent.insertBefore(o,i)},t.prototype.insertInto=function(t,e){void 0===e&&(e=null),null!=this.parent&&this.parent.children.remove(this);var r=null;t.children.insertBefore(this,e),null!=e&&(r=e.domNode),this.domNode.parentNode==t.domNode&&this.domNode.nextSibling==r||t.domNode.insertBefore(this.domNode,r),this.parent=t,this.attach()},t.prototype.isolate=function(t,e){var r=this.split(t);return r.split(e),r},t.prototype.length=function(){return 1},t.prototype.offset=function(t){return void 0===t&&(t=this.parent),null==this.parent||this==t?0:this.parent.children.offset(this)+this.parent.offset(t)},t.prototype.optimize=function(t){null!=this.domNode[n.DATA_KEY]&&delete this.domNode[n.DATA_KEY].mutations},t.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},t.prototype.replace=function(t){null!=t.parent&&(t.parent.insertBefore(this,t.next),t.remove())},t.prototype.replaceWith=function(t,e){var r="string"===typeof t?n.create(t,e):t;return r.replace(this),r},t.prototype.split=function(t,e){return 0===t?this:this.next},t.prototype.update=function(t,e){},t.prototype.wrap=function(t,e){var r="string"===typeof t?n.create(t,e):t;return null!=this.parent&&this.parent.insertBefore(r,this.next),r.appendChild(this),r},t.blotName="abstract",t}();e.default=o},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(12),o=r(32),i=r(33),a=r(1),c=function(){function t(t){this.attributes={},this.domNode=t,this.build()}return t.prototype.attribute=function(t,e){e?t.add(this.domNode,e)&&(null!=t.value(this.domNode)?this.attributes[t.attrName]=t:delete this.attributes[t.attrName]):(t.remove(this.domNode),delete this.attributes[t.attrName])},t.prototype.build=function(){var t=this;this.attributes={};var e=n.default.keys(this.domNode),r=o.default.keys(this.domNode),c=i.default.keys(this.domNode);e.concat(r).concat(c).forEach((function(e){var r=a.query(e,a.Scope.ATTRIBUTE);r instanceof n.default&&(t.attributes[r.attrName]=r)}))},t.prototype.copy=function(t){var e=this;Object.keys(this.attributes).forEach((function(r){var n=e.attributes[r].value(e.domNode);t.format(r,n)}))},t.prototype.move=function(t){var e=this;this.copy(t),Object.keys(this.attributes).forEach((function(t){e.attributes[t].remove(e.domNode)})),this.attributes={}},t.prototype.values=function(){var t=this;return Object.keys(this.attributes).reduce((function(e,r){return e[r]=t.attributes[r].value(t.domNode),e}),{})},t}();e.default=c},function(t,e,r){"use strict";var n=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=r(12);function i(t,e){var r=t.getAttribute("class")||"";return r.split(/\s+/).filter((function(t){return 0===t.indexOf(e+"-")}))}var a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.keys=function(t){return(t.getAttribute("class")||"").split(/\s+/).map((function(t){return t.split("-").slice(0,-1).join("-")}))},e.prototype.add=function(t,e){return!!this.canAdd(t,e)&&(this.remove(t),t.classList.add(this.keyName+"-"+e),!0)},e.prototype.remove=function(t){var e=i(t,this.keyName);e.forEach((function(e){t.classList.remove(e)})),0===t.classList.length&&t.removeAttribute("class")},e.prototype.value=function(t){var e=i(t,this.keyName)[0]||"",r=e.slice(this.keyName.length+1);return this.canAdd(t,r)?r:""},e}(o.default);e.default=a},function(t,e,r){"use strict";var n=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=r(12);function i(t){var e=t.split("-"),r=e.slice(1).map((function(t){return t[0].toUpperCase()+t.slice(1)})).join("");return e[0]+r}var a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.keys=function(t){return(t.getAttribute("style")||"").split(";").map((function(t){var e=t.split(":");return e[0].trim()}))},e.prototype.add=function(t,e){return!!this.canAdd(t,e)&&(t.style[i(this.keyName)]=e,!0)},e.prototype.remove=function(t){t.style[i(this.keyName)]="",t.getAttribute("style")||t.removeAttribute("style")},e.prototype.value=function(t){var e=t.style[i(this.keyName)];return this.canAdd(t,e)?e:""},e}(o.default);e.default=a},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}();function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var i=function(){function t(e,r){o(this,t),this.quill=e,this.options=r,this.modules={}}return n(t,[{key:"init",value:function(){var t=this;Object.keys(this.options.modules).forEach((function(e){null==t.modules[e]&&t.addModule(e)}))}},{key:"addModule",value:function(t){var e=this.quill.constructor.import("modules/"+t);return this.modules[t]=new e(this.quill,this.options.modules[t]||{}),this.modules[t]}}]),t}();i.DEFAULTS={modules:{}},i.themes={default:i},e.default=i},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),o=function t(e,r,n){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,r);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,r,n)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(n):void 0},i=r(0),a=u(i),c=r(7),s=u(c);function u(t){return t&&t.__esModule?t:{default:t}}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function f(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function h(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var p="\ufeff",d=function(t){function e(t){l(this,e);var r=f(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return r.contentNode=document.createElement("span"),r.contentNode.setAttribute("contenteditable",!1),[].slice.call(r.domNode.childNodes).forEach((function(t){r.contentNode.appendChild(t)})),r.leftGuard=document.createTextNode(p),r.rightGuard=document.createTextNode(p),r.domNode.appendChild(r.leftGuard),r.domNode.appendChild(r.contentNode),r.domNode.appendChild(r.rightGuard),r}return h(e,t),n(e,[{key:"index",value:function(t,r){return t===this.leftGuard?0:t===this.rightGuard?1:o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"index",this).call(this,t,r)}},{key:"restore",value:function(t){var e=void 0,r=void 0,n=t.data.split(p).join("");if(t===this.leftGuard)if(this.prev instanceof s.default){var o=this.prev.length();this.prev.insertAt(o,n),e={startNode:this.prev.domNode,startOffset:o+n.length}}else r=document.createTextNode(n),this.parent.insertBefore(a.default.create(r),this),e={startNode:r,startOffset:n.length};else t===this.rightGuard&&(this.next instanceof s.default?(this.next.insertAt(0,n),e={startNode:this.next.domNode,startOffset:n.length}):(r=document.createTextNode(n),this.parent.insertBefore(a.default.create(r),this.next),e={startNode:r,startOffset:n.length}));return t.data=p,e}},{key:"update",value:function(t,e){var r=this;t.forEach((function(t){if("characterData"===t.type&&(t.target===r.leftGuard||t.target===r.rightGuard)){var n=r.restore(t.target);n&&(e.range=n)}}))}}]),e}(a.default.Embed);e.default=d},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AlignStyle=e.AlignClass=e.AlignAttribute=void 0;var n=r(0),o=i(n);function i(t){return t&&t.__esModule?t:{default:t}}var a={scope:o.default.Scope.BLOCK,whitelist:["right","center","justify"]},c=new o.default.Attributor.Attribute("align","align",a),s=new o.default.Attributor.Class("align","ql-align",a),u=new o.default.Attributor.Style("align","text-align",a);e.AlignAttribute=c,e.AlignClass=s,e.AlignStyle=u},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BackgroundStyle=e.BackgroundClass=void 0;var n=r(0),o=a(n),i=r(26);function a(t){return t&&t.__esModule?t:{default:t}}var c=new o.default.Attributor.Class("background","ql-bg",{scope:o.default.Scope.INLINE}),s=new i.ColorAttributor("background","background-color",{scope:o.default.Scope.INLINE});e.BackgroundClass=c,e.BackgroundStyle=s},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DirectionStyle=e.DirectionClass=e.DirectionAttribute=void 0;var n=r(0),o=i(n);function i(t){return t&&t.__esModule?t:{default:t}}var a={scope:o.default.Scope.BLOCK,whitelist:["rtl"]},c=new o.default.Attributor.Attribute("direction","dir",a),s=new o.default.Attributor.Class("direction","ql-direction",a),u=new o.default.Attributor.Style("direction","direction",a);e.DirectionAttribute=c,e.DirectionClass=s,e.DirectionStyle=u},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FontClass=e.FontStyle=void 0;var n=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),o=function t(e,r,n){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,r);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,r,n)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(n):void 0},i=r(0),a=c(i);function c(t){return t&&t.__esModule?t:{default:t}}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function l(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var f={scope:a.default.Scope.INLINE,whitelist:["serif","monospace"]},h=new a.default.Attributor.Class("font","ql-font",f),p=function(t){function e(){return s(this,e),u(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return l(e,t),n(e,[{key:"value",value:function(t){return o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"value",this).call(this,t).replace(/["']/g,"")}}]),e}(a.default.Attributor.Style),d=new p("font","font-family",f);e.FontStyle=d,e.FontClass=h},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SizeStyle=e.SizeClass=void 0;var n=r(0),o=i(n);function i(t){return t&&t.__esModule?t:{default:t}}var a=new o.default.Attributor.Class("size","ql-size",{scope:o.default.Scope.INLINE,whitelist:["small","large","huge"]}),c=new o.default.Attributor.Style("size","font-size",{scope:o.default.Scope.INLINE,whitelist:["10px","18px","32px"]});e.SizeClass=a,e.SizeStyle=c},function(t,e,r){"use strict";t.exports={align:{"":r(76),center:r(77),right:r(78),justify:r(79)},background:r(80),blockquote:r(81),bold:r(82),clean:r(83),code:r(58),"code-block":r(58),color:r(84),direction:{"":r(85),rtl:r(86)},float:{center:r(87),full:r(88),left:r(89),right:r(90)},formula:r(91),header:{1:r(92),2:r(93)},italic:r(94),image:r(95),indent:{"+1":r(96),"-1":r(97)},link:r(98),list:{ordered:r(99),bullet:r(100),check:r(101)},script:{sub:r(102),super:r(103)},strike:r(104),underline:r(105),video:r(106)}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getLastChangeIndex=e.default=void 0;var n=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),o=r(0),i=l(o),a=r(5),c=l(a),s=r(9),u=l(s);function l(t){return t&&t.__esModule?t:{default:t}}function f(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function h(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function p(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var d=function(t){function e(t,r){f(this,e);var n=h(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,r));return n.lastRecorded=0,n.ignoreChange=!1,n.clear(),n.quill.on(c.default.events.EDITOR_CHANGE,(function(t,e,r,o){t!==c.default.events.TEXT_CHANGE||n.ignoreChange||(n.options.userOnly&&o!==c.default.sources.USER?n.transform(e):n.record(e,r))})),n.quill.keyboard.addBinding({key:"Z",shortKey:!0},n.undo.bind(n)),n.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},n.redo.bind(n)),/Win/i.test(navigator.platform)&&n.quill.keyboard.addBinding({key:"Y",shortKey:!0},n.redo.bind(n)),n}return p(e,t),n(e,[{key:"change",value:function(t,e){if(0!==this.stack[t].length){var r=this.stack[t].pop();this.stack[e].push(r),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(r[t],c.default.sources.USER),this.ignoreChange=!1;var n=v(r[t]);this.quill.setSelection(n)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(t,e){if(0!==t.ops.length){this.stack.redo=[];var r=this.quill.getContents().diff(e),n=Date.now();if(this.lastRecorded+this.options.delay>n&&this.stack.undo.length>0){var o=this.stack.undo.pop();r=r.compose(o.undo),t=o.redo.compose(t)}else this.lastRecorded=n;this.stack.undo.push({redo:t,undo:r}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(t){this.stack.undo.forEach((function(e){e.undo=t.transform(e.undo,!0),e.redo=t.transform(e.redo,!0)})),this.stack.redo.forEach((function(e){e.undo=t.transform(e.undo,!0),e.redo=t.transform(e.redo,!0)}))}},{key:"undo",value:function(){this.change("undo","redo")}}]),e}(u.default);function y(t){var e=t.ops[t.ops.length-1];return null!=e&&(null!=e.insert?"string"===typeof e.insert&&e.insert.endsWith("\n"):null!=e.attributes&&Object.keys(e.attributes).some((function(t){return null!=i.default.query(t,i.default.Scope.BLOCK)})))}function v(t){var e=t.reduce((function(t,e){return t+=e.delete||0,t}),0),r=t.length()-e;return y(t)&&(r-=1),r}d.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1},e.default=d,e.getLastChangeIndex=v},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.BaseTooltip=void 0;var n=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),o=function t(e,r,n){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,r);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,r,n)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(n):void 0},i=r(3),a=O(i),c=r(2),s=O(c),u=r(8),l=O(u),f=r(23),h=O(f),p=r(34),d=O(p),y=r(59),v=O(y),m=r(60),g=O(m),b=r(28),w=O(b),_=r(61),x=O(_);function O(t){return t&&t.__esModule?t:{default:t}}function k(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function E(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function S(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var j=[!1,"center","right","justify"],L=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],P=[!1,"serif","monospace"],N=["1","2","3",!1],A=["small",!1,"large","huge"],C=function(t){function e(t,r){k(this,e);var n=E(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,r)),o=function e(r){if(!document.body.contains(t.root))return document.body.removeEventListener("click",e);null==n.tooltip||n.tooltip.root.contains(r.target)||document.activeElement===n.tooltip.textbox||n.quill.hasFocus()||n.tooltip.hide(),null!=n.pickers&&n.pickers.forEach((function(t){t.container.contains(r.target)||t.close()}))};return t.emitter.listenDOM("click",document.body,o),n}return S(e,t),n(e,[{key:"addModule",value:function(t){var r=o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"addModule",this).call(this,t);return"toolbar"===t&&this.extendToolbar(r),r}},{key:"buildButtons",value:function(t,e){t.forEach((function(t){var r=t.getAttribute("class")||"";r.split(/\s+/).forEach((function(r){if(r.startsWith("ql-")&&(r=r.slice("ql-".length),null!=e[r]))if("direction"===r)t.innerHTML=e[r][""]+e[r]["rtl"];else if("string"===typeof e[r])t.innerHTML=e[r];else{var n=t.value||"";null!=n&&e[r][n]&&(t.innerHTML=e[r][n])}}))}))}},{key:"buildPickers",value:function(t,e){var r=this;this.pickers=t.map((function(t){if(t.classList.contains("ql-align"))return null==t.querySelector("option")&&M(t,j),new g.default(t,e.align);if(t.classList.contains("ql-background")||t.classList.contains("ql-color")){var r=t.classList.contains("ql-background")?"background":"color";return null==t.querySelector("option")&&M(t,L,"background"===r?"#ffffff":"#000000"),new v.default(t,e[r])}return null==t.querySelector("option")&&(t.classList.contains("ql-font")?M(t,P):t.classList.contains("ql-header")?M(t,N):t.classList.contains("ql-size")&&M(t,A)),new w.default(t)}));var n=function(){r.pickers.forEach((function(t){t.update()}))};this.quill.on(l.default.events.EDITOR_CHANGE,n)}}]),e}(d.default);C.DEFAULTS=(0,a.default)(!0,{},d.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var t=this,e=this.container.querySelector("input.ql-image[type=file]");null==e&&(e=document.createElement("input"),e.setAttribute("type","file"),e.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),e.classList.add("ql-image"),e.addEventListener("change",(function(){if(null!=e.files&&null!=e.files[0]){var r=new FileReader;r.onload=function(r){var n=t.quill.getSelection(!0);t.quill.updateContents((new s.default).retain(n.index).delete(n.length).insert({image:r.target.result}),l.default.sources.USER),t.quill.setSelection(n.index+1,l.default.sources.SILENT),e.value=""},r.readAsDataURL(e.files[0])}})),this.container.appendChild(e)),e.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var T=function(t){function e(t,r){k(this,e);var n=E(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,r));return n.textbox=n.root.querySelector('input[type="text"]'),n.listen(),n}return S(e,t),n(e,[{key:"listen",value:function(){var t=this;this.textbox.addEventListener("keydown",(function(e){h.default.match(e,"enter")?(t.save(),e.preventDefault()):h.default.match(e,"escape")&&(t.cancel(),e.preventDefault())}))}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"link",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null!=e?this.textbox.value=e:t!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+t)||""),this.root.setAttribute("data-mode",t)}},{key:"restoreFocus",value:function(){var t=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=t}},{key:"save",value:function(){var t=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":var e=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",t,l.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",t,l.default.sources.USER)),this.quill.root.scrollTop=e;break;case"video":t=I(t);case"formula":if(!t)break;var r=this.quill.getSelection(!0);if(null!=r){var n=r.index+r.length;this.quill.insertEmbed(n,this.root.getAttribute("data-mode"),t,l.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(n+1," ",l.default.sources.USER),this.quill.setSelection(n+2,l.default.sources.USER)}break;default:}this.textbox.value="",this.hide()}}]),e}(x.default);function I(t){var e=t.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||t.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return e?(e[1]||"https")+"://www.youtube.com/embed/"+e[2]+"?showinfo=0":(e=t.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(e[1]||"https")+"://player.vimeo.com/video/"+e[2]+"/":t}function M(t,e){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];e.forEach((function(e){var n=document.createElement("option");e===r?n.setAttribute("selected","selected"):n.setAttribute("value",e),t.appendChild(n)}))}e.BaseTooltip=T,e.default=C},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(){this.head=this.tail=null,this.length=0}return t.prototype.append=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.insertBefore(t[0],null),t.length>1&&this.append.apply(this,t.slice(1))},t.prototype.contains=function(t){var e,r=this.iterator();while(e=r())if(e===t)return!0;return!1},t.prototype.insertBefore=function(t,e){t&&(t.next=e,null!=e?(t.prev=e.prev,null!=e.prev&&(e.prev.next=t),e.prev=t,e===this.head&&(this.head=t)):null!=this.tail?(this.tail.next=t,t.prev=this.tail,this.tail=t):(t.prev=null,this.head=this.tail=t),this.length+=1)},t.prototype.offset=function(t){var e=0,r=this.head;while(null!=r){if(r===t)return e;e+=r.length(),r=r.next}return-1},t.prototype.remove=function(t){this.contains(t)&&(null!=t.prev&&(t.prev.next=t.next),null!=t.next&&(t.next.prev=t.prev),t===this.head&&(this.head=t.next),t===this.tail&&(this.tail=t.prev),this.length-=1)},t.prototype.iterator=function(t){return void 0===t&&(t=this.head),function(){var e=t;return null!=t&&(t=t.next),e}},t.prototype.find=function(t,e){void 0===e&&(e=!1);var r,n=this.iterator();while(r=n()){var o=r.length();if(t<o||e&&t===o&&(null==r.next||0!==r.next.length()))return[r,t];t-=o}return[null,0]},t.prototype.forEach=function(t){var e,r=this.iterator();while(e=r())t(e)},t.prototype.forEachAt=function(t,e,r){if(!(e<=0)){var n,o=this.find(t),i=o[0],a=o[1],c=t-a,s=this.iterator(i);while((n=s())&&c<t+e){var u=n.length();t>c?r(n,t-c,Math.min(e,c+u-t)):r(n,0,Math.min(u,t+e-c)),c+=u}}},t.prototype.map=function(t){return this.reduce((function(e,r){return e.push(t(r)),e}),[])},t.prototype.reduce=function(t,e){var r,n=this.iterator();while(r=n())e=t(e,r);return e},t}();e.default=n},function(t,e,r){"use strict";var n=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=r(17),i=r(1),a={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},c=100,s=function(t){function e(e){var r=t.call(this,e)||this;return r.scroll=r,r.observer=new MutationObserver((function(t){r.update(t)})),r.observer.observe(r.domNode,a),r.attach(),r}return n(e,t),e.prototype.detach=function(){t.prototype.detach.call(this),this.observer.disconnect()},e.prototype.deleteAt=function(e,r){this.update(),0===e&&r===this.length()?this.children.forEach((function(t){t.remove()})):t.prototype.deleteAt.call(this,e,r)},e.prototype.formatAt=function(e,r,n,o){this.update(),t.prototype.formatAt.call(this,e,r,n,o)},e.prototype.insertAt=function(e,r,n){this.update(),t.prototype.insertAt.call(this,e,r,n)},e.prototype.optimize=function(e,r){var n=this;void 0===e&&(e=[]),void 0===r&&(r={}),t.prototype.optimize.call(this,r);var a=[].slice.call(this.observer.takeRecords());while(a.length>0)e.push(a.pop());for(var s=function(t,e){void 0===e&&(e=!0),null!=t&&t!==n&&null!=t.domNode.parentNode&&(null==t.domNode[i.DATA_KEY].mutations&&(t.domNode[i.DATA_KEY].mutations=[]),e&&s(t.parent))},u=function(t){null!=t.domNode[i.DATA_KEY]&&null!=t.domNode[i.DATA_KEY].mutations&&(t instanceof o.default&&t.children.forEach(u),t.optimize(r))},l=e,f=0;l.length>0;f+=1){if(f>=c)throw new Error("[Parchment] Maximum optimize iterations reached");l.forEach((function(t){var e=i.find(t.target,!0);null!=e&&(e.domNode===t.target&&("childList"===t.type?(s(i.find(t.previousSibling,!1)),[].forEach.call(t.addedNodes,(function(t){var e=i.find(t,!1);s(e,!1),e instanceof o.default&&e.children.forEach((function(t){s(t,!1)}))}))):"attributes"===t.type&&s(e.prev)),s(e))})),this.children.forEach(u),l=[].slice.call(this.observer.takeRecords()),a=l.slice();while(a.length>0)e.push(a.pop())}},e.prototype.update=function(e,r){var n=this;void 0===r&&(r={}),e=e||this.observer.takeRecords(),e.map((function(t){var e=i.find(t.target,!0);return null==e?null:null==e.domNode[i.DATA_KEY].mutations?(e.domNode[i.DATA_KEY].mutations=[t],e):(e.domNode[i.DATA_KEY].mutations.push(t),null)})).forEach((function(t){null!=t&&t!==n&&null!=t.domNode[i.DATA_KEY]&&t.update(t.domNode[i.DATA_KEY].mutations||[],r)})),null!=this.domNode[i.DATA_KEY].mutations&&t.prototype.update.call(this,this.domNode[i.DATA_KEY].mutations,r),this.optimize(e,r)},e.blotName="scroll",e.defaultChild="block",e.scope=i.Scope.BLOCK_BLOT,e.tagName="DIV",e}(o.default);e.default=s},function(t,e,r){"use strict";var n=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=r(18),i=r(1);function a(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(var r in t)if(t[r]!==e[r])return!1;return!0}var c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.formats=function(r){if(r.tagName!==e.tagName)return t.formats.call(this,r)},e.prototype.format=function(r,n){var i=this;r!==this.statics.blotName||n?t.prototype.format.call(this,r,n):(this.children.forEach((function(t){t instanceof o.default||(t=t.wrap(e.blotName,!0)),i.attributes.copy(t)})),this.unwrap())},e.prototype.formatAt=function(e,r,n,o){if(null!=this.formats()[n]||i.query(n,i.Scope.ATTRIBUTE)){var a=this.isolate(e,r);a.format(n,o)}else t.prototype.formatAt.call(this,e,r,n,o)},e.prototype.optimize=function(r){t.prototype.optimize.call(this,r);var n=this.formats();if(0===Object.keys(n).length)return this.unwrap();var o=this.next;o instanceof e&&o.prev===this&&a(n,o.formats())&&(o.moveChildren(this),o.remove())},e.blotName="inline",e.scope=i.Scope.INLINE_BLOT,e.tagName="SPAN",e}(o.default);e.default=c},function(t,e,r){"use strict";var n=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=r(18),i=r(1),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.formats=function(r){var n=i.query(e.blotName).tagName;if(r.tagName!==n)return t.formats.call(this,r)},e.prototype.format=function(r,n){null!=i.query(r,i.Scope.BLOCK)&&(r!==this.statics.blotName||n?t.prototype.format.call(this,r,n):this.replaceWith(e.blotName))},e.prototype.formatAt=function(e,r,n,o){null!=i.query(n,i.Scope.BLOCK)?this.format(n,o):t.prototype.formatAt.call(this,e,r,n,o)},e.prototype.insertAt=function(e,r,n){if(null==n||null!=i.query(r,i.Scope.INLINE))t.prototype.insertAt.call(this,e,r,n);else{var o=this.split(e),a=i.create(r,n);o.parent.insertBefore(a,o)}},e.prototype.update=function(e,r){navigator.userAgent.match(/Trident/)?this.build():t.prototype.update.call(this,e,r)},e.blotName="block",e.scope=i.Scope.BLOCK_BLOT,e.tagName="P",e}(o.default);e.default=a},function(t,e,r){"use strict";var n=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=r(19),i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.formats=function(t){},e.prototype.format=function(e,r){t.prototype.formatAt.call(this,0,this.length(),e,r)},e.prototype.formatAt=function(e,r,n,o){0===e&&r===this.length()?this.format(n,o):t.prototype.formatAt.call(this,e,r,n,o)},e.prototype.formats=function(){return this.statics.formats(this.domNode)},e}(o.default);e.default=i},function(t,e,r){"use strict";var n=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=r(19),i=r(1),a=function(t){function e(e){var r=t.call(this,e)||this;return r.text=r.statics.value(r.domNode),r}return n(e,t),e.create=function(t){return document.createTextNode(t)},e.value=function(t){var e=t.data;return e["normalize"]&&(e=e["normalize"]()),e},e.prototype.deleteAt=function(t,e){this.domNode.data=this.text=this.text.slice(0,t)+this.text.slice(t+e)},e.prototype.index=function(t,e){return this.domNode===t?e:-1},e.prototype.insertAt=function(e,r,n){null==n?(this.text=this.text.slice(0,e)+r+this.text.slice(e),this.domNode.data=this.text):t.prototype.insertAt.call(this,e,r,n)},e.prototype.length=function(){return this.text.length},e.prototype.optimize=function(r){t.prototype.optimize.call(this,r),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof e&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},e.prototype.position=function(t,e){return void 0===e&&(e=!1),[this.domNode,t]},e.prototype.split=function(t,e){if(void 0===e&&(e=!1),!e){if(0===t)return this;if(t===this.length())return this.next}var r=i.create(this.domNode.splitText(t));return this.parent.insertBefore(r,this.next),this.text=this.statics.value(this.domNode),r},e.prototype.update=function(t,e){var r=this;t.some((function(t){return"characterData"===t.type&&t.target===r.domNode}))&&(this.text=this.statics.value(this.domNode))},e.prototype.value=function(){return this.text},e.blotName="text",e.scope=i.Scope.INLINE_BLOT,e}(o.default);e.default=a},function(t,e,r){"use strict";var n=document.createElement("div");if(n.classList.toggle("test-class",!1),n.classList.contains("test-class")){var o=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(t,e){return arguments.length>1&&!this.contains(t)===!e?e:o.call(this,t)}}String.prototype.startsWith||(String.prototype.startsWith=function(t,e){return e=e||0,this.substr(e,t.length)===t}),String.prototype.endsWith||(String.prototype.endsWith=function(t,e){var r=this.toString();("number"!==typeof e||!isFinite(e)||Math.floor(e)!==e||e>r.length)&&(e=r.length),e-=t.length;var n=r.indexOf(t,e);return-1!==n&&n===e}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(t){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!==typeof t)throw new TypeError("predicate must be a function");for(var e,r=Object(this),n=r.length>>>0,o=arguments[1],i=0;i<n;i++)if(e=r[i],t.call(o,e,i,r))return e}}),document.addEventListener("DOMContentLoaded",(function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)}))},function(t,e){var r=-1,n=1,o=0;function i(t,e,r){if(t==e)return t?[[o,t]]:[];(r<0||t.length<r)&&(r=null);var n=u(t,e),i=t.substring(0,n);t=t.substring(n),e=e.substring(n),n=l(t,e);var c=t.substring(t.length-n);t=t.substring(0,t.length-n),e=e.substring(0,e.length-n);var s=a(t,e);return i&&s.unshift([o,i]),c&&s.push([o,c]),h(s),null!=r&&(s=y(s,r)),s=v(s),s}function a(t,e){var a;if(!t)return[[n,e]];if(!e)return[[r,t]];var s=t.length>e.length?t:e,u=t.length>e.length?e:t,l=s.indexOf(u);if(-1!=l)return a=[[n,s.substring(0,l)],[o,u],[n,s.substring(l+u.length)]],t.length>e.length&&(a[0][0]=a[2][0]=r),a;if(1==u.length)return[[r,t],[n,e]];var h=f(t,e);if(h){var p=h[0],d=h[1],y=h[2],v=h[3],m=h[4],g=i(p,y),b=i(d,v);return g.concat([[o,m]],b)}return c(t,e)}function c(t,e){for(var o=t.length,i=e.length,a=Math.ceil((o+i)/2),c=a,u=2*a,l=new Array(u),f=new Array(u),h=0;h<u;h++)l[h]=-1,f[h]=-1;l[c+1]=0,f[c+1]=0;for(var p=o-i,d=p%2!=0,y=0,v=0,m=0,g=0,b=0;b<a;b++){for(var w=-b+y;w<=b-v;w+=2){var _=c+w;j=w==-b||w!=b&&l[_-1]<l[_+1]?l[_+1]:l[_-1]+1;var x=j-w;while(j<o&&x<i&&t.charAt(j)==e.charAt(x))j++,x++;if(l[_]=j,j>o)v+=2;else if(x>i)y+=2;else if(d){var O=c+p-w;if(O>=0&&O<u&&-1!=f[O]){var k=o-f[O];if(j>=k)return s(t,e,j,x)}}}for(var E=-b+m;E<=b-g;E+=2){O=c+E;k=E==-b||E!=b&&f[O-1]<f[O+1]?f[O+1]:f[O-1]+1;var S=k-E;while(k<o&&S<i&&t.charAt(o-k-1)==e.charAt(i-S-1))k++,S++;if(f[O]=k,k>o)g+=2;else if(S>i)m+=2;else if(!d){_=c+p-E;if(_>=0&&_<u&&-1!=l[_]){var j=l[_];x=c+j-_;if(k=o-k,j>=k)return s(t,e,j,x)}}}}return[[r,t],[n,e]]}function s(t,e,r,n){var o=t.substring(0,r),a=e.substring(0,n),c=t.substring(r),s=e.substring(n),u=i(o,a),l=i(c,s);return u.concat(l)}function u(t,e){if(!t||!e||t.charAt(0)!=e.charAt(0))return 0;var r=0,n=Math.min(t.length,e.length),o=n,i=0;while(r<o)t.substring(i,o)==e.substring(i,o)?(r=o,i=r):n=o,o=Math.floor((n-r)/2+r);return o}function l(t,e){if(!t||!e||t.charAt(t.length-1)!=e.charAt(e.length-1))return 0;var r=0,n=Math.min(t.length,e.length),o=n,i=0;while(r<o)t.substring(t.length-o,t.length-i)==e.substring(e.length-o,e.length-i)?(r=o,i=r):n=o,o=Math.floor((n-r)/2+r);return o}function f(t,e){var r=t.length>e.length?t:e,n=t.length>e.length?e:t;if(r.length<4||2*n.length<r.length)return null;function o(t,e,r){var n,o,i,a,c=t.substring(r,r+Math.floor(t.length/4)),s=-1,f="";while(-1!=(s=e.indexOf(c,s+1))){var h=u(t.substring(r),e.substring(s)),p=l(t.substring(0,r),e.substring(0,s));f.length<p+h&&(f=e.substring(s-p,s)+e.substring(s,s+h),n=t.substring(0,r-p),o=t.substring(r+h),i=e.substring(0,s-p),a=e.substring(s+h))}return 2*f.length>=t.length?[n,o,i,a,f]:null}var i,a,c,s,f,h=o(r,n,Math.ceil(r.length/4)),p=o(r,n,Math.ceil(r.length/2));if(!h&&!p)return null;i=p?h&&h[4].length>p[4].length?h:p:h,t.length>e.length?(a=i[0],c=i[1],s=i[2],f=i[3]):(s=i[0],f=i[1],a=i[2],c=i[3]);var d=i[4];return[a,c,s,f,d]}function h(t){t.push([o,""]);var e,i=0,a=0,c=0,s="",f="";while(i<t.length)switch(t[i][0]){case n:c++,f+=t[i][1],i++;break;case r:a++,s+=t[i][1],i++;break;case o:a+c>1?(0!==a&&0!==c&&(e=u(f,s),0!==e&&(i-a-c>0&&t[i-a-c-1][0]==o?t[i-a-c-1][1]+=f.substring(0,e):(t.splice(0,0,[o,f.substring(0,e)]),i++),f=f.substring(e),s=s.substring(e)),e=l(f,s),0!==e&&(t[i][1]=f.substring(f.length-e)+t[i][1],f=f.substring(0,f.length-e),s=s.substring(0,s.length-e))),0===a?t.splice(i-c,a+c,[n,f]):0===c?t.splice(i-a,a+c,[r,s]):t.splice(i-a-c,a+c,[r,s],[n,f]),i=i-a-c+(a?1:0)+(c?1:0)+1):0!==i&&t[i-1][0]==o?(t[i-1][1]+=t[i][1],t.splice(i,1)):i++,c=0,a=0,s="",f="";break}""===t[t.length-1][1]&&t.pop();var p=!1;i=1;while(i<t.length-1)t[i-1][0]==o&&t[i+1][0]==o&&(t[i][1].substring(t[i][1].length-t[i-1][1].length)==t[i-1][1]?(t[i][1]=t[i-1][1]+t[i][1].substring(0,t[i][1].length-t[i-1][1].length),t[i+1][1]=t[i-1][1]+t[i+1][1],t.splice(i-1,1),p=!0):t[i][1].substring(0,t[i+1][1].length)==t[i+1][1]&&(t[i-1][1]+=t[i+1][1],t[i][1]=t[i][1].substring(t[i+1][1].length)+t[i+1][1],t.splice(i+1,1),p=!0)),i++;p&&h(t)}var p=i;function d(t,e){if(0===e)return[o,t];for(var n=0,i=0;i<t.length;i++){var a=t[i];if(a[0]===r||a[0]===o){var c=n+a[1].length;if(e===c)return[i+1,t];if(e<c){t=t.slice();var s=e-n,u=[a[0],a[1].slice(0,s)],l=[a[0],a[1].slice(s)];return t.splice(i,1,u,l),[i+1,t]}n=c}}throw new Error("cursor_pos is out of bounds!")}function y(t,e){var r=d(t,e),n=r[1],i=r[0],a=n[i],c=n[i+1];if(null==a)return t;if(a[0]!==o)return t;if(null!=c&&a[1]+c[1]===c[1]+a[1])return n.splice(i,2,c,a),m(n,i,2);if(null!=c&&0===c[1].indexOf(a[1])){n.splice(i,2,[c[0],a[1]],[0,a[1]]);var s=c[1].slice(a[1].length);return s.length>0&&n.splice(i+2,0,[c[0],s]),m(n,i,3)}return t}function v(t){for(var e=!1,i=function(t){return t.charCodeAt(0)>=56320&&t.charCodeAt(0)<=57343},a=function(t){return t.charCodeAt(t.length-1)>=55296&&t.charCodeAt(t.length-1)<=56319},c=2;c<t.length;c+=1)t[c-2][0]===o&&a(t[c-2][1])&&t[c-1][0]===r&&i(t[c-1][1])&&t[c][0]===n&&i(t[c][1])&&(e=!0,t[c-1][1]=t[c-2][1].slice(-1)+t[c-1][1],t[c][1]=t[c-2][1].slice(-1)+t[c][1],t[c-2][1]=t[c-2][1].slice(0,-1));if(!e)return t;var s=[];for(c=0;c<t.length;c+=1)t[c][1].length>0&&s.push(t[c]);return s}function m(t,e,r){for(var n=e+r-1;n>=0&&n>=e-1;n--)if(n+1<t.length){var o=t[n],i=t[n+1];o[0]===i[1]&&t.splice(n,2,[o[0],o[1]+i[1]])}return t}p.INSERT=n,p.DELETE=r,p.EQUAL=o,t.exports=p},function(t,e){function r(t){var e=[];for(var r in t)e.push(r);return e}e=t.exports="function"===typeof Object.keys?Object.keys:r,e.shim=r},function(t,e){var r="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();function n(t){return"[object Arguments]"==Object.prototype.toString.call(t)}function o(t){return t&&"object"==typeof t&&"number"==typeof t.length&&Object.prototype.hasOwnProperty.call(t,"callee")&&!Object.prototype.propertyIsEnumerable.call(t,"callee")||!1}e=t.exports=r?n:o,e.supported=n,e.unsupported=o},function(t,e){"use strict";var r=Object.prototype.hasOwnProperty,n="~";function o(){}function i(t,e,r){this.fn=t,this.context=e,this.once=r||!1}function a(){this._events=new o,this._eventsCount=0}Object.create&&(o.prototype=Object.create(null),(new o).__proto__||(n=!1)),a.prototype.eventNames=function(){var t,e,o=[];if(0===this._eventsCount)return o;for(e in t=this._events)r.call(t,e)&&o.push(n?e.slice(1):e);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(t)):o},a.prototype.listeners=function(t,e){var r=n?n+t:t,o=this._events[r];if(e)return!!o;if(!o)return[];if(o.fn)return[o.fn];for(var i=0,a=o.length,c=new Array(a);i<a;i++)c[i]=o[i].fn;return c},a.prototype.emit=function(t,e,r,o,i,a){var c=n?n+t:t;if(!this._events[c])return!1;var s,u,l=this._events[c],f=arguments.length;if(l.fn){switch(l.once&&this.removeListener(t,l.fn,void 0,!0),f){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,e),!0;case 3:return l.fn.call(l.context,e,r),!0;case 4:return l.fn.call(l.context,e,r,o),!0;case 5:return l.fn.call(l.context,e,r,o,i),!0;case 6:return l.fn.call(l.context,e,r,o,i,a),!0}for(u=1,s=new Array(f-1);u<f;u++)s[u-1]=arguments[u];l.fn.apply(l.context,s)}else{var h,p=l.length;for(u=0;u<p;u++)switch(l[u].once&&this.removeListener(t,l[u].fn,void 0,!0),f){case 1:l[u].fn.call(l[u].context);break;case 2:l[u].fn.call(l[u].context,e);break;case 3:l[u].fn.call(l[u].context,e,r);break;case 4:l[u].fn.call(l[u].context,e,r,o);break;default:if(!s)for(h=1,s=new Array(f-1);h<f;h++)s[h-1]=arguments[h];l[u].fn.apply(l[u].context,s)}}return!0},a.prototype.on=function(t,e,r){var o=new i(e,r||this),a=n?n+t:t;return this._events[a]?this._events[a].fn?this._events[a]=[this._events[a],o]:this._events[a].push(o):(this._events[a]=o,this._eventsCount++),this},a.prototype.once=function(t,e,r){var o=new i(e,r||this,!0),a=n?n+t:t;return this._events[a]?this._events[a].fn?this._events[a]=[this._events[a],o]:this._events[a].push(o):(this._events[a]=o,this._eventsCount++),this},a.prototype.removeListener=function(t,e,r,i){var a=n?n+t:t;if(!this._events[a])return this;if(!e)return 0===--this._eventsCount?this._events=new o:delete this._events[a],this;var c=this._events[a];if(c.fn)c.fn!==e||i&&!c.once||r&&c.context!==r||(0===--this._eventsCount?this._events=new o:delete this._events[a]);else{for(var s=0,u=[],l=c.length;s<l;s++)(c[s].fn!==e||i&&!c[s].once||r&&c[s].context!==r)&&u.push(c[s]);u.length?this._events[a]=1===u.length?u[0]:u:0===--this._eventsCount?this._events=new o:delete this._events[a]}return this},a.prototype.removeAllListeners=function(t){var e;return t?(e=n?n+t:t,this._events[e]&&(0===--this._eventsCount?this._events=new o:delete this._events[e])):(this._events=new o,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prototype.setMaxListeners=function(){return this},a.prefixed=n,a.EventEmitter=a,"undefined"!==typeof t&&(t.exports=a)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.matchText=e.matchSpacing=e.matchNewline=e.matchBlot=e.matchAttributor=e.default=void 0;var n="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=function(){function t(t,e){var r=[],n=!0,o=!1,i=void 0;try{for(var a,c=t[Symbol.iterator]();!(n=(a=c.next()).done);n=!0)if(r.push(a.value),e&&r.length===e)break}catch(s){o=!0,i=s}finally{try{!n&&c["return"]&&c["return"]()}finally{if(o)throw i}}return r}return function(e,r){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),a=r(3),c=S(a),s=r(2),u=S(s),l=r(0),f=S(l),h=r(5),p=S(h),d=r(10),y=S(d),v=r(9),m=S(v),g=r(36),b=r(37),w=r(13),_=S(w),x=r(26),O=r(38),k=r(39),E=r(40);function S(t){return t&&t.__esModule?t:{default:t}}function j(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function L(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function P(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function N(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var A=(0,y.default)("quill:clipboard"),C="__ql-matcher",T=[[Node.TEXT_NODE,X],[Node.TEXT_NODE,Y],["br",z],[Node.ELEMENT_NODE,Y],[Node.ELEMENT_NODE,G],[Node.ELEMENT_NODE,W],[Node.ELEMENT_NODE,U],[Node.ELEMENT_NODE,Z],["li",H],["b",V.bind(V,"bold")],["i",V.bind(V,"italic")],["style",K]],I=[g.AlignAttribute,O.DirectionAttribute].reduce((function(t,e){return t[e.keyName]=e,t}),{}),M=[g.AlignStyle,b.BackgroundStyle,x.ColorStyle,O.DirectionStyle,k.FontStyle,E.SizeStyle].reduce((function(t,e){return t[e.keyName]=e,t}),{}),D=function(t){function e(t,r){L(this,e);var n=P(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,r));return n.quill.root.addEventListener("paste",n.onPaste.bind(n)),n.container=n.quill.addContainer("ql-clipboard"),n.container.setAttribute("contenteditable",!0),n.container.setAttribute("tabindex",-1),n.matchers=[],T.concat(n.options.matchers).forEach((function(t){var e=o(t,2),i=e[0],a=e[1];(r.matchVisual||a!==W)&&n.addMatcher(i,a)})),n}return N(e,t),i(e,[{key:"addMatcher",value:function(t,e){this.matchers.push([t,e])}},{key:"convert",value:function(t){if("string"===typeof t)return this.container.innerHTML=t.replace(/\>\r?\n +\</g,"><"),this.convert();var e=this.quill.getFormat(this.quill.selection.savedRange.index);if(e[_.default.blotName]){var r=this.container.innerText;return this.container.innerHTML="",(new u.default).insert(r,j({},_.default.blotName,e[_.default.blotName]))}var n=this.prepareMatching(),i=o(n,2),a=i[0],c=i[1],s=$(this.container,a,c);return B(s,"\n")&&null==s.ops[s.ops.length-1].attributes&&(s=s.compose((new u.default).retain(s.length()-1).delete(1))),A.log("convert",this.container.innerHTML,s),this.container.innerHTML="",s}},{key:"dangerouslyPasteHTML",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:p.default.sources.API;if("string"===typeof t)this.quill.setContents(this.convert(t),e),this.quill.setSelection(0,p.default.sources.SILENT);else{var n=this.convert(e);this.quill.updateContents((new u.default).retain(t).concat(n),r),this.quill.setSelection(t+n.length(),p.default.sources.SILENT)}}},{key:"onPaste",value:function(t){var e=this;if(!t.defaultPrevented&&this.quill.isEnabled()){var r=this.quill.getSelection(),n=(new u.default).retain(r.index),o=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(p.default.sources.SILENT),setTimeout((function(){n=n.concat(e.convert()).delete(r.length),e.quill.updateContents(n,p.default.sources.USER),e.quill.setSelection(n.length()-r.length,p.default.sources.SILENT),e.quill.scrollingContainer.scrollTop=o,e.quill.focus()}),1)}}},{key:"prepareMatching",value:function(){var t=this,e=[],r=[];return this.matchers.forEach((function(n){var i=o(n,2),a=i[0],c=i[1];switch(a){case Node.TEXT_NODE:r.push(c);break;case Node.ELEMENT_NODE:e.push(c);break;default:[].forEach.call(t.container.querySelectorAll(a),(function(t){t[C]=t[C]||[],t[C].push(c)}));break}})),[e,r]}}]),e}(m.default);function q(t,e,r){return"object"===("undefined"===typeof e?"undefined":n(e))?Object.keys(e).reduce((function(t,r){return q(t,r,e[r])}),t):t.reduce((function(t,n){return n.attributes&&n.attributes[e]?t.push(n):t.insert(n.insert,(0,c.default)({},j({},e,r),n.attributes))}),new u.default)}function R(t){if(t.nodeType!==Node.ELEMENT_NODE)return{};var e="__ql-computed-style";return t[e]||(t[e]=window.getComputedStyle(t))}function B(t,e){for(var r="",n=t.ops.length-1;n>=0&&r.length<e.length;--n){var o=t.ops[n];if("string"!==typeof o.insert)break;r=o.insert+r}return r.slice(-1*e.length)===e}function F(t){if(0===t.childNodes.length)return!1;var e=R(t);return["block","list-item"].indexOf(e.display)>-1}function $(t,e,r){return t.nodeType===t.TEXT_NODE?r.reduce((function(e,r){return r(t,e)}),new u.default):t.nodeType===t.ELEMENT_NODE?[].reduce.call(t.childNodes||[],(function(n,o){var i=$(o,e,r);return o.nodeType===t.ELEMENT_NODE&&(i=e.reduce((function(t,e){return e(o,t)}),i),i=(o[C]||[]).reduce((function(t,e){return e(o,t)}),i)),n.concat(i)}),new u.default):new u.default}function V(t,e,r){return q(r,t,!0)}function U(t,e){var r=f.default.Attributor.Attribute.keys(t),n=f.default.Attributor.Class.keys(t),o=f.default.Attributor.Style.keys(t),i={};return r.concat(n).concat(o).forEach((function(e){var r=f.default.query(e,f.default.Scope.ATTRIBUTE);null!=r&&(i[r.attrName]=r.value(t),i[r.attrName])||(r=I[e],null==r||r.attrName!==e&&r.keyName!==e||(i[r.attrName]=r.value(t)||void 0),r=M[e],null==r||r.attrName!==e&&r.keyName!==e||(r=M[e],i[r.attrName]=r.value(t)||void 0))})),Object.keys(i).length>0&&(e=q(e,i)),e}function G(t,e){var r=f.default.query(t);if(null==r)return e;if(r.prototype instanceof f.default.Embed){var n={},o=r.value(t);null!=o&&(n[r.blotName]=o,e=(new u.default).insert(n,r.formats(t)))}else"function"===typeof r.formats&&(e=q(e,r.blotName,r.formats(t)));return e}function z(t,e){return B(e,"\n")||e.insert("\n"),e}function K(){return new u.default}function H(t,e){var r=f.default.query(t);if(null==r||"list-item"!==r.blotName||!B(e,"\n"))return e;var n=-1,o=t.parentNode;while(!o.classList.contains("ql-clipboard"))"list"===(f.default.query(o)||{}).blotName&&(n+=1),o=o.parentNode;return n<=0?e:e.compose((new u.default).retain(e.length()-1).retain(1,{indent:n}))}function Y(t,e){return B(e,"\n")||(F(t)||e.length()>0&&t.nextSibling&&F(t.nextSibling))&&e.insert("\n"),e}function W(t,e){if(F(t)&&null!=t.nextElementSibling&&!B(e,"\n\n")){var r=t.offsetHeight+parseFloat(R(t).marginTop)+parseFloat(R(t).marginBottom);t.nextElementSibling.offsetTop>t.offsetTop+1.5*r&&e.insert("\n")}return e}function Z(t,e){var r={},n=t.style||{};return n.fontStyle&&"italic"===R(t).fontStyle&&(r.italic=!0),n.fontWeight&&(R(t).fontWeight.startsWith("bold")||parseInt(R(t).fontWeight)>=700)&&(r.bold=!0),Object.keys(r).length>0&&(e=q(e,r)),parseFloat(n.textIndent||0)>0&&(e=(new u.default).insert("\t").concat(e)),e}function X(t,e){var r=t.data;if("O:P"===t.parentNode.tagName)return e.insert(r.trim());if(0===r.trim().length&&t.parentNode.classList.contains("ql-clipboard"))return e;if(!R(t.parentNode).whiteSpace.startsWith("pre")){var n=function(t,e){return e=e.replace(/[^\u00a0]/g,""),e.length<1&&t?" ":e};r=r.replace(/\r\n/g," ").replace(/\n/g," "),r=r.replace(/\s\s+/g,n.bind(n,!0)),(null==t.previousSibling&&F(t.parentNode)||null!=t.previousSibling&&F(t.previousSibling))&&(r=r.replace(/^\s+/,n.bind(n,!1))),(null==t.nextSibling&&F(t.parentNode)||null!=t.nextSibling&&F(t.nextSibling))&&(r=r.replace(/\s+$/,n.bind(n,!1)))}return e.insert(r)}D.DEFAULTS={matchers:[],matchVisual:!0},e.default=D,e.matchAttributor=U,e.matchBlot=G,e.matchNewline=Y,e.matchSpacing=W,e.matchText=X},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),o=function t(e,r,n){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,r);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,r,n)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(n):void 0},i=r(6),a=c(i);function c(t){return t&&t.__esModule?t:{default:t}}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function l(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var f=function(t){function e(){return s(this,e),u(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return l(e,t),n(e,[{key:"optimize",value:function(t){o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return o(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),e}(a.default);f.blotName="bold",f.tagName=["STRONG","B"],e.default=f},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.addControls=e.default=void 0;var n=function(){function t(t,e){var r=[],n=!0,o=!1,i=void 0;try{for(var a,c=t[Symbol.iterator]();!(n=(a=c.next()).done);n=!0)if(r.push(a.value),e&&r.length===e)break}catch(s){o=!0,i=s}finally{try{!n&&c["return"]&&c["return"]()}finally{if(o)throw i}}return r}return function(e,r){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),i=r(2),a=y(i),c=r(0),s=y(c),u=r(5),l=y(u),f=r(10),h=y(f),p=r(9),d=y(p);function y(t){return t&&t.__esModule?t:{default:t}}function v(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function m(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function g(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function b(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var w=(0,h.default)("quill:toolbar"),_=function(t){function e(t,r){m(this,e);var o,i=g(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,r));if(Array.isArray(i.options.container)){var a=document.createElement("div");O(a,i.options.container),t.container.parentNode.insertBefore(a,t.container),i.container=a}else"string"===typeof i.options.container?i.container=document.querySelector(i.options.container):i.container=i.options.container;return i.container instanceof HTMLElement?(i.container.classList.add("ql-toolbar"),i.controls=[],i.handlers={},Object.keys(i.options.handlers).forEach((function(t){i.addHandler(t,i.options.handlers[t])})),[].forEach.call(i.container.querySelectorAll("button, select"),(function(t){i.attach(t)})),i.quill.on(l.default.events.EDITOR_CHANGE,(function(t,e){t===l.default.events.SELECTION_CHANGE&&i.update(e)})),i.quill.on(l.default.events.SCROLL_OPTIMIZE,(function(){var t=i.quill.selection.getRange(),e=n(t,1),r=e[0];i.update(r)})),i):(o=w.error("Container required for toolbar",i.options),g(i,o))}return b(e,t),o(e,[{key:"addHandler",value:function(t,e){this.handlers[t]=e}},{key:"attach",value:function(t){var e=this,r=[].find.call(t.classList,(function(t){return 0===t.indexOf("ql-")}));if(r){if(r=r.slice("ql-".length),"BUTTON"===t.tagName&&t.setAttribute("type","button"),null==this.handlers[r]){if(null!=this.quill.scroll.whitelist&&null==this.quill.scroll.whitelist[r])return void w.warn("ignoring attaching to disabled format",r,t);if(null==s.default.query(r))return void w.warn("ignoring attaching to nonexistent format",r,t)}var o="SELECT"===t.tagName?"change":"click";t.addEventListener(o,(function(o){var i=void 0;if("SELECT"===t.tagName){if(t.selectedIndex<0)return;var c=t.options[t.selectedIndex];i=!c.hasAttribute("selected")&&(c.value||!1)}else i=!t.classList.contains("ql-active")&&(t.value||!t.hasAttribute("value")),o.preventDefault();e.quill.focus();var u=e.quill.selection.getRange(),f=n(u,1),h=f[0];if(null!=e.handlers[r])e.handlers[r].call(e,i);else if(s.default.query(r).prototype instanceof s.default.Embed){if(i=prompt("Enter "+r),!i)return;e.quill.updateContents((new a.default).retain(h.index).delete(h.length).insert(v({},r,i)),l.default.sources.USER)}else e.quill.format(r,i,l.default.sources.USER);e.update(h)})),this.controls.push([r,t])}}},{key:"update",value:function(t){var e=null==t?{}:this.quill.getFormat(t);this.controls.forEach((function(r){var o=n(r,2),i=o[0],a=o[1];if("SELECT"===a.tagName){var c=void 0;if(null==t)c=null;else if(null==e[i])c=a.querySelector("option[selected]");else if(!Array.isArray(e[i])){var s=e[i];"string"===typeof s&&(s=s.replace(/\"/g,'\\"')),c=a.querySelector('option[value="'+s+'"]')}null==c?(a.value="",a.selectedIndex=-1):c.selected=!0}else if(null==t)a.classList.remove("ql-active");else if(a.hasAttribute("value")){var u=e[i]===a.getAttribute("value")||null!=e[i]&&e[i].toString()===a.getAttribute("value")||null==e[i]&&!a.getAttribute("value");a.classList.toggle("ql-active",u)}else a.classList.toggle("ql-active",null!=e[i])}))}}]),e}(d.default);function x(t,e,r){var n=document.createElement("button");n.setAttribute("type","button"),n.classList.add("ql-"+e),null!=r&&(n.value=r),t.appendChild(n)}function O(t,e){Array.isArray(e[0])||(e=[e]),e.forEach((function(e){var r=document.createElement("span");r.classList.add("ql-formats"),e.forEach((function(t){if("string"===typeof t)x(r,t);else{var e=Object.keys(t)[0],n=t[e];Array.isArray(n)?k(r,e,n):x(r,e,n)}})),t.appendChild(r)}))}function k(t,e,r){var n=document.createElement("select");n.classList.add("ql-"+e),r.forEach((function(t){var e=document.createElement("option");!1!==t?e.setAttribute("value",t):e.setAttribute("selected","selected"),n.appendChild(e)})),t.appendChild(n)}_.DEFAULTS={},_.DEFAULTS={container:null,handlers:{clean:function(){var t=this,e=this.quill.getSelection();if(null!=e)if(0==e.length){var r=this.quill.getFormat();Object.keys(r).forEach((function(e){null!=s.default.query(e,s.default.Scope.INLINE)&&t.quill.format(e,!1)}))}else this.quill.removeFormat(e,l.default.sources.USER)},direction:function(t){var e=this.quill.getFormat()["align"];"rtl"===t&&null==e?this.quill.format("align","right",l.default.sources.USER):t||"right"!==e||this.quill.format("align",!1,l.default.sources.USER),this.quill.format("direction",t,l.default.sources.USER)},indent:function(t){var e=this.quill.getSelection(),r=this.quill.getFormat(e),n=parseInt(r.indent||0);if("+1"===t||"-1"===t){var o="+1"===t?1:-1;"rtl"===r.direction&&(o*=-1),this.quill.format("indent",n+o,l.default.sources.USER)}},link:function(t){!0===t&&(t=prompt("Enter link URL:")),this.quill.format("link",t,l.default.sources.USER)},list:function(t){var e=this.quill.getSelection(),r=this.quill.getFormat(e);"check"===t?"checked"===r["list"]||"unchecked"===r["list"]?this.quill.format("list",!1,l.default.sources.USER):this.quill.format("list","unchecked",l.default.sources.USER):this.quill.format("list",t,l.default.sources.USER)}}},e.default=_,e.addControls=O},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),o=function t(e,r,n){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,r);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,r,n)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(n):void 0},i=r(28),a=c(i);function c(t){return t&&t.__esModule?t:{default:t}}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function l(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var f=function(t){function e(t,r){s(this,e);var n=u(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.label.innerHTML=r,n.container.classList.add("ql-color-picker"),[].slice.call(n.container.querySelectorAll(".ql-picker-item"),0,7).forEach((function(t){t.classList.add("ql-primary")})),n}return l(e,t),n(e,[{key:"buildItem",value:function(t){var r=o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"buildItem",this).call(this,t);return r.style.backgroundColor=t.getAttribute("value")||"",r}},{key:"selectItem",value:function(t,r){o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"selectItem",this).call(this,t,r);var n=this.label.querySelector(".ql-color-label"),i=t&&t.getAttribute("data-value")||"";n&&("line"===n.tagName?n.style.stroke=i:n.style.fill=i)}}]),e}(a.default);e.default=f},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),o=function t(e,r,n){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,r);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,r,n)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(n):void 0},i=r(28),a=c(i);function c(t){return t&&t.__esModule?t:{default:t}}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function l(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var f=function(t){function e(t,r){s(this,e);var n=u(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.container.classList.add("ql-icon-picker"),[].forEach.call(n.container.querySelectorAll(".ql-picker-item"),(function(t){t.innerHTML=r[t.getAttribute("data-value")||""]})),n.defaultItem=n.container.querySelector(".ql-selected"),n.selectItem(n.defaultItem),n}return l(e,t),n(e,[{key:"selectItem",value:function(t,r){o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"selectItem",this).call(this,t,r),t=t||this.defaultItem,this.label.innerHTML=t.innerHTML}}]),e}(a.default);e.default=f},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}();function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var i=function(){function t(e,r){var n=this;o(this,t),this.quill=e,this.boundsContainer=r||document.body,this.root=e.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",(function(){n.root.style.marginTop=-1*n.quill.root.scrollTop+"px"})),this.hide()}return n(t,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(t){var e=t.left+t.width/2-this.root.offsetWidth/2,r=t.bottom+this.quill.root.scrollTop;this.root.style.left=e+"px",this.root.style.top=r+"px",this.root.classList.remove("ql-flip");var n=this.boundsContainer.getBoundingClientRect(),o=this.root.getBoundingClientRect(),i=0;if(o.right>n.right&&(i=n.right-o.right,this.root.style.left=e+i+"px"),o.left<n.left&&(i=n.left-o.left,this.root.style.left=e+i+"px"),o.bottom>n.bottom){var a=o.bottom-o.top,c=t.bottom-t.top+a;this.root.style.top=r-c+"px",this.root.classList.add("ql-flip")}return i}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),t}();e.default=i},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){var r=[],n=!0,o=!1,i=void 0;try{for(var a,c=t[Symbol.iterator]();!(n=(a=c.next()).done);n=!0)if(r.push(a.value),e&&r.length===e)break}catch(s){o=!0,i=s}finally{try{!n&&c["return"]&&c["return"]()}finally{if(o)throw i}}return r}return function(e,r){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,r);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),o=function t(e,r,n){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,r);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,r,n)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(n):void 0},i=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),a=r(3),c=m(a),s=r(8),u=m(s),l=r(43),f=m(l),h=r(27),p=m(h),d=r(15),y=r(41),v=m(y);function m(t){return t&&t.__esModule?t:{default:t}}function g(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function b(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function w(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var _=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],x=function(t){function e(t,r){g(this,e),null!=r.modules.toolbar&&null==r.modules.toolbar.container&&(r.modules.toolbar.container=_);var n=b(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,r));return n.quill.container.classList.add("ql-snow"),n}return w(e,t),i(e,[{key:"extendToolbar",value:function(t){t.container.classList.add("ql-snow"),this.buildButtons([].slice.call(t.container.querySelectorAll("button")),v.default),this.buildPickers([].slice.call(t.container.querySelectorAll("select")),v.default),this.tooltip=new O(this.quill,this.options.bounds),t.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},(function(e,r){t.handlers["link"].call(t,!r.format.link)}))}}]),e}(f.default);x.DEFAULTS=(0,c.default)(!0,{},f.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(t){if(t){var e=this.quill.getSelection();if(null==e||0==e.length)return;var r=this.quill.getText(e);/^\S+@\S+\.\S+$/.test(r)&&0!==r.indexOf("mailto:")&&(r="mailto:"+r);var n=this.quill.theme.tooltip;n.edit("link",r)}else this.quill.format("link",!1)}}}}});var O=function(t){function e(t,r){g(this,e);var n=b(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,r));return n.preview=n.root.querySelector("a.ql-preview"),n}return w(e,t),i(e,[{key:"listen",value:function(){var t=this;o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",(function(e){t.root.classList.contains("ql-editing")?t.save():t.edit("link",t.preview.textContent),e.preventDefault()})),this.root.querySelector("a.ql-remove").addEventListener("click",(function(e){if(null!=t.linkRange){var r=t.linkRange;t.restoreFocus(),t.quill.formatText(r,"link",!1,u.default.sources.USER),delete t.linkRange}e.preventDefault(),t.hide()})),this.quill.on(u.default.events.SELECTION_CHANGE,(function(e,r,o){if(null!=e){if(0===e.length&&o===u.default.sources.USER){var i=t.quill.scroll.descendant(p.default,e.index),a=n(i,2),c=a[0],s=a[1];if(null!=c){t.linkRange=new d.Range(e.index-s,c.length());var l=p.default.formats(c.domNode);return t.preview.textContent=l,t.preview.setAttribute("href",l),t.show(),void t.position(t.quill.getBounds(t.linkRange))}}else delete t.linkRange;t.hide()}}))}},{key:"show",value:function(){o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),e}(l.BaseTooltip);O.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),e.default=x},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(29),o=rt(n),i=r(36),a=r(38),c=r(64),s=r(65),u=rt(s),l=r(66),f=rt(l),h=r(67),p=rt(h),d=r(37),y=r(26),v=r(39),m=r(40),g=r(56),b=rt(g),w=r(68),_=rt(w),x=r(27),O=rt(x),k=r(69),E=rt(k),S=r(70),j=rt(S),L=r(71),P=rt(L),N=r(72),A=rt(N),C=r(73),T=rt(C),I=r(13),M=rt(I),D=r(74),q=rt(D),R=r(75),B=rt(R),F=r(57),$=rt(F),V=r(41),U=rt(V),G=r(28),z=rt(G),K=r(59),H=rt(K),Y=r(60),W=rt(Y),Z=r(61),X=rt(Z),J=r(108),Q=rt(J),tt=r(62),et=rt(tt);function rt(t){return t&&t.__esModule?t:{default:t}}o.default.register({"attributors/attribute/direction":a.DirectionAttribute,"attributors/class/align":i.AlignClass,"attributors/class/background":d.BackgroundClass,"attributors/class/color":y.ColorClass,"attributors/class/direction":a.DirectionClass,"attributors/class/font":v.FontClass,"attributors/class/size":m.SizeClass,"attributors/style/align":i.AlignStyle,"attributors/style/background":d.BackgroundStyle,"attributors/style/color":y.ColorStyle,"attributors/style/direction":a.DirectionStyle,"attributors/style/font":v.FontStyle,"attributors/style/size":m.SizeStyle},!0),o.default.register({"formats/align":i.AlignClass,"formats/direction":a.DirectionClass,"formats/indent":c.IndentClass,"formats/background":d.BackgroundStyle,"formats/color":y.ColorStyle,"formats/font":v.FontClass,"formats/size":m.SizeClass,"formats/blockquote":u.default,"formats/code-block":M.default,"formats/header":f.default,"formats/list":p.default,"formats/bold":b.default,"formats/code":I.Code,"formats/italic":_.default,"formats/link":O.default,"formats/script":E.default,"formats/strike":j.default,"formats/underline":P.default,"formats/image":A.default,"formats/video":T.default,"formats/list/item":h.ListItem,"modules/formula":q.default,"modules/syntax":B.default,"modules/toolbar":$.default,"themes/bubble":Q.default,"themes/snow":et.default,"ui/icons":U.default,"ui/picker":z.default,"ui/icon-picker":W.default,"ui/color-picker":H.default,"ui/tooltip":X.default},!0),e.default=o.default},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IndentClass=void 0;var n=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),o=function t(e,r,n){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,r);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,r,n)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(n):void 0},i=r(0),a=c(i);function c(t){return t&&t.__esModule?t:{default:t}}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function l(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var f=function(t){function e(){return s(this,e),u(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return l(e,t),n(e,[{key:"add",value:function(t,r){if("+1"===r||"-1"===r){var n=this.value(t)||0;r="+1"===r?n+1:n-1}return 0===r?(this.remove(t),!0):o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"add",this).call(this,t,r)}},{key:"canAdd",value:function(t,r){return o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"canAdd",this).call(this,t,r)||o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"canAdd",this).call(this,t,parseInt(r))}},{key:"value",value:function(t){return parseInt(o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"value",this).call(this,t))||void 0}}]),e}(a.default.Attributor.Class),h=new f("indent","ql-indent",{scope:a.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});e.IndentClass=h},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(4),o=i(n);function i(t){return t&&t.__esModule?t:{default:t}}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function s(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var u=function(t){function e(){return a(this,e),c(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return s(e,t),e}(o.default);u.blotName="blockquote",u.tagName="blockquote",e.default=u},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),o=r(4),i=a(o);function a(t){return t&&t.__esModule?t:{default:t}}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function u(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var l=function(t){function e(){return c(this,e),s(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return u(e,t),n(e,null,[{key:"formats",value:function(t){return this.tagName.indexOf(t.tagName)+1}}]),e}(i.default);l.blotName="header",l.tagName=["H1","H2","H3","H4","H5","H6"],e.default=l},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.ListItem=void 0;var n=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),o=function t(e,r,n){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,r);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,r,n)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(n):void 0},i=r(0),a=f(i),c=r(4),s=f(c),u=r(25),l=f(u);function f(t){return t&&t.__esModule?t:{default:t}}function h(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function d(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function y(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var v=function(t){function e(){return p(this,e),d(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return y(e,t),n(e,[{key:"format",value:function(t,r){t!==m.blotName||r?o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,r):this.replaceWith(a.default.create(this.statics.scope))}},{key:"remove",value:function(){null==this.prev&&null==this.next?this.parent.remove():o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(t,r){return this.parent.isolate(this.offset(this.parent),this.length()),t===this.parent.statics.blotName?(this.parent.replaceWith(t,r),this):(this.parent.unwrap(),o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replaceWith",this).call(this,t,r))}}],[{key:"formats",value:function(t){return t.tagName===this.tagName?void 0:o(e.__proto__||Object.getPrototypeOf(e),"formats",this).call(this,t)}}]),e}(s.default);v.blotName="list-item",v.tagName="LI";var m=function(t){function e(t){p(this,e);var r=d(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t)),n=function(e){if(e.target.parentNode===t){var n=r.statics.formats(t),o=a.default.find(e.target);"checked"===n?o.format("list","unchecked"):"unchecked"===n&&o.format("list","checked")}};return t.addEventListener("touchstart",n),t.addEventListener("mousedown",n),r}return y(e,t),n(e,null,[{key:"create",value:function(t){var r="ordered"===t?"OL":"UL",n=o(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,r);return"checked"!==t&&"unchecked"!==t||n.setAttribute("data-checked","checked"===t),n}},{key:"formats",value:function(t){return"OL"===t.tagName?"ordered":"UL"===t.tagName?t.hasAttribute("data-checked")?"true"===t.getAttribute("data-checked")?"checked":"unchecked":"bullet":void 0}}]),n(e,[{key:"format",value:function(t,e){this.children.length>0&&this.children.tail.format(t,e)}},{key:"formats",value:function(){return h({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(t,r){if(t instanceof v)o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertBefore",this).call(this,t,r);else{var n=null==r?this.length():r.offset(this),i=this.split(n);i.parent.insertBefore(t,i)}}},{key:"optimize",value:function(t){o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t);var r=this.next;null!=r&&r.prev===this&&r.statics.blotName===this.statics.blotName&&r.domNode.tagName===this.domNode.tagName&&r.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(r.moveChildren(this),r.remove())}},{key:"replace",value:function(t){if(t.statics.blotName!==this.statics.blotName){var r=a.default.create(this.statics.defaultChild);t.moveChildren(r),this.appendChild(r)}o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replace",this).call(this,t)}}]),e}(l.default);m.blotName="list",m.scope=a.default.Scope.BLOCK_BLOT,m.tagName=["OL","UL"],m.defaultChild="list-item",m.allowedChildren=[v],e.ListItem=v,e.default=m},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(56),o=i(n);function i(t){return t&&t.__esModule?t:{default:t}}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function s(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var u=function(t){function e(){return a(this,e),c(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return s(e,t),e}(o.default);u.blotName="italic",u.tagName=["EM","I"],e.default=u},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),o=function t(e,r,n){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,r);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,r,n)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(n):void 0},i=r(6),a=c(i);function c(t){return t&&t.__esModule?t:{default:t}}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function l(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var f=function(t){function e(){return s(this,e),u(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return l(e,t),n(e,null,[{key:"create",value:function(t){return"super"===t?document.createElement("sup"):"sub"===t?document.createElement("sub"):o(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t)}},{key:"formats",value:function(t){return"SUB"===t.tagName?"sub":"SUP"===t.tagName?"super":void 0}}]),e}(a.default);f.blotName="script",f.tagName=["SUB","SUP"],e.default=f},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(6),o=i(n);function i(t){return t&&t.__esModule?t:{default:t}}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function s(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var u=function(t){function e(){return a(this,e),c(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return s(e,t),e}(o.default);u.blotName="strike",u.tagName="S",e.default=u},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(6),o=i(n);function i(t){return t&&t.__esModule?t:{default:t}}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function s(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var u=function(t){function e(){return a(this,e),c(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return s(e,t),e}(o.default);u.blotName="underline",u.tagName="U",e.default=u},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),o=function t(e,r,n){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,r);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,r,n)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(n):void 0},i=r(0),a=s(i),c=r(27);function s(t){return t&&t.__esModule?t:{default:t}}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function f(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var h=["alt","height","width"],p=function(t){function e(){return u(this,e),l(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return f(e,t),n(e,[{key:"format",value:function(t,r){h.indexOf(t)>-1?r?this.domNode.setAttribute(t,r):this.domNode.removeAttribute(t):o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,r)}}],[{key:"create",value:function(t){var r=o(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return"string"===typeof t&&r.setAttribute("src",this.sanitize(t)),r}},{key:"formats",value:function(t){return h.reduce((function(e,r){return t.hasAttribute(r)&&(e[r]=t.getAttribute(r)),e}),{})}},{key:"match",value:function(t){return/\.(jpe?g|gif|png)$/.test(t)||/^data:image\/.+;base64/.test(t)}},{key:"sanitize",value:function(t){return(0,c.sanitize)(t,["http","https","data"])?t:"//:0"}},{key:"value",value:function(t){return t.getAttribute("src")}}]),e}(a.default.Embed);p.blotName="image",p.tagName="IMG",e.default=p},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),o=function t(e,r,n){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,r);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,r,n)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(n):void 0},i=r(4),a=r(27),c=s(a);function s(t){return t&&t.__esModule?t:{default:t}}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function f(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var h=["height","width"],p=function(t){function e(){return u(this,e),l(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return f(e,t),n(e,[{key:"format",value:function(t,r){h.indexOf(t)>-1?r?this.domNode.setAttribute(t,r):this.domNode.removeAttribute(t):o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,r)}}],[{key:"create",value:function(t){var r=o(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return r.setAttribute("frameborder","0"),r.setAttribute("allowfullscreen",!0),r.setAttribute("src",this.sanitize(t)),r}},{key:"formats",value:function(t){return h.reduce((function(e,r){return t.hasAttribute(r)&&(e[r]=t.getAttribute(r)),e}),{})}},{key:"sanitize",value:function(t){return c.default.sanitize(t)}},{key:"value",value:function(t){return t.getAttribute("src")}}]),e}(i.BlockEmbed);p.blotName="video",p.className="ql-video",p.tagName="IFRAME",e.default=p},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.FormulaBlot=void 0;var n=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),o=function t(e,r,n){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,r);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,r,n)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(n):void 0},i=r(35),a=f(i),c=r(5),s=f(c),u=r(9),l=f(u);function f(t){return t&&t.__esModule?t:{default:t}}function h(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function p(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function d(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var y=function(t){function e(){return h(this,e),p(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return d(e,t),n(e,null,[{key:"create",value:function(t){var r=o(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return"string"===typeof t&&(window.katex.render(t,r,{throwOnError:!1,errorColor:"#f00"}),r.setAttribute("data-value",t)),r}},{key:"value",value:function(t){return t.getAttribute("data-value")}}]),e}(a.default);y.blotName="formula",y.className="ql-formula",y.tagName="SPAN";var v=function(t){function e(){h(this,e);var t=p(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));if(null==window.katex)throw new Error("Formula module requires KaTeX.");return t}return d(e,t),n(e,null,[{key:"register",value:function(){s.default.register(y,!0)}}]),e}(l.default);e.FormulaBlot=y,e.default=v},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.CodeToken=e.CodeBlock=void 0;var n=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),o=function t(e,r,n){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,r);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,r,n)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(n):void 0},i=r(0),a=p(i),c=r(5),s=p(c),u=r(9),l=p(u),f=r(13),h=p(f);function p(t){return t&&t.__esModule?t:{default:t}}function d(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function y(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function v(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var m=function(t){function e(){return d(this,e),y(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return v(e,t),n(e,[{key:"replaceWith",value:function(t){this.domNode.textContent=this.domNode.textContent,this.attach(),o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replaceWith",this).call(this,t)}},{key:"highlight",value:function(t){var e=this.domNode.textContent;this.cachedText!==e&&((e.trim().length>0||null==this.cachedText)&&(this.domNode.innerHTML=t(e),this.domNode.normalize(),this.attach()),this.cachedText=e)}}]),e}(h.default);m.className="ql-syntax";var g=new a.default.Attributor.Class("token","hljs",{scope:a.default.Scope.INLINE}),b=function(t){function e(t,r){d(this,e);var n=y(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,r));if("function"!==typeof n.options.highlight)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var o=null;return n.quill.on(s.default.events.SCROLL_OPTIMIZE,(function(){clearTimeout(o),o=setTimeout((function(){n.highlight(),o=null}),n.options.interval)})),n.highlight(),n}return v(e,t),n(e,null,[{key:"register",value:function(){s.default.register(g,!0),s.default.register(m,!0)}}]),n(e,[{key:"highlight",value:function(){var t=this;if(!this.quill.selection.composing){this.quill.update(s.default.sources.USER);var e=this.quill.getSelection();this.quill.scroll.descendants(m).forEach((function(e){e.highlight(t.options.highlight)})),this.quill.update(s.default.sources.SILENT),null!=e&&this.quill.setSelection(e,s.default.sources.SILENT)}}}]),e}(l.default);b.DEFAULTS={highlight:function(){return null==window.hljs?null:function(t){var e=window.hljs.highlightAuto(t);return e.value}}(),interval:1e3},e.CodeBlock=m,e.CodeToken=g,e.default=b},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(t,e){t.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(t,e){t.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(t,e){t.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(t,e){t.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.BubbleTooltip=void 0;var n=function t(e,r,n){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,r);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,r,n)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(n):void 0},o=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),i=r(3),a=d(i),c=r(8),s=d(c),u=r(43),l=d(u),f=r(15),h=r(41),p=d(h);function d(t){return t&&t.__esModule?t:{default:t}}function y(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function v(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function m(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var g=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],b=function(t){function e(t,r){y(this,e),null!=r.modules.toolbar&&null==r.modules.toolbar.container&&(r.modules.toolbar.container=g);var n=v(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,r));return n.quill.container.classList.add("ql-bubble"),n}return m(e,t),o(e,[{key:"extendToolbar",value:function(t){this.tooltip=new w(this.quill,this.options.bounds),this.tooltip.root.appendChild(t.container),this.buildButtons([].slice.call(t.container.querySelectorAll("button")),p.default),this.buildPickers([].slice.call(t.container.querySelectorAll("select")),p.default)}}]),e}(l.default);b.DEFAULTS=(0,a.default)(!0,{},l.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(t){t?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var w=function(t){function e(t,r){y(this,e);var n=v(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,r));return n.quill.on(s.default.events.EDITOR_CHANGE,(function(t,e,r,o){if(t===s.default.events.SELECTION_CHANGE)if(null!=e&&e.length>0&&o===s.default.sources.USER){n.show(),n.root.style.left="0px",n.root.style.width="",n.root.style.width=n.root.offsetWidth+"px";var i=n.quill.getLines(e.index,e.length);if(1===i.length)n.position(n.quill.getBounds(e));else{var a=i[i.length-1],c=n.quill.getIndex(a),u=Math.min(a.length()-1,e.index+e.length-c),l=n.quill.getBounds(new f.Range(c,u));n.position(l)}}else document.activeElement!==n.textbox&&n.quill.hasFocus()&&n.hide()})),n}return m(e,t),o(e,[{key:"listen",value:function(){var t=this;n(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",(function(){t.root.classList.remove("ql-editing")})),this.quill.on(s.default.events.SCROLL_OPTIMIZE,(function(){setTimeout((function(){if(!t.root.classList.contains("ql-hidden")){var e=t.quill.getSelection();null!=e&&t.position(t.quill.getBounds(e))}}),1)}))}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(t){var r=n(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"position",this).call(this,t),o=this.root.querySelector(".ql-tooltip-arrow");if(o.style.marginLeft="",0===r)return r;o.style.marginLeft=-1*r-o.offsetWidth/2+"px"}}]),e}(u.BaseTooltip);w.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),e.BubbleTooltip=w,e.default=b},function(t,e,r){t.exports=r(63)}])["default"]}))}).call(this,r("ce44").Buffer)},"796d":function(t,e){t.exports=i},"7dac":function(t,e,r){},"7e40":function(t,e,r){(function(e,n,o){t.exports=n(r("bf17"),r("023d"))})(0,(function(t){return t.pad.Iso10126={pad:function(e,r){var n=4*r,o=n-e.sigBytes%n;e.concat(t.lib.WordArray.random(o-1)).concat(t.lib.WordArray.create([o<<24],1))},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},t.pad.Iso10126}))},8652:function(t,e,r){(function(e,n,o){t.exports=n(r("bf17"),r("023d"))})(0,(function(t){return t.mode.OFB=function(){var e=t.lib.BlockCipherMode.extend(),r=e.Encryptor=e.extend({processBlock:function(t,e){var r=this._cipher,n=r.blockSize,o=this._iv,i=this._keystream;o&&(i=this._keystream=o.slice(0),this._iv=void 0),r.encryptBlock(i,0);for(var a=0;a<n;a++)t[e+a]^=i[a]}});return e.Decryptor=r,e}(),t.mode.OFB}))},"8bbf":function(t,e){t.exports=a},"91a8":function(t,e){var r={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==r.call(t)}},"9f89":function(t,e){t.exports=c},a303:function(t,e,r){(function(e,n,o){t.exports=n(r("bf17"),r("023d"))})(0,(function(t){return t.pad.NoPadding={pad:function(){},unpad:function(){}},t.pad.NoPadding}))},a42b:function(t,e){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(n){"object"===typeof window&&(r=window)}t.exports=r},a479:function(t,e,r){},a59b:function(t,e,r){"use strict";r("d08f")},a613:function(t,e,r){"use strict";r("bc8c")},a638:function(t,e,r){(function(e,n){t.exports=n(r("bf17"))})(0,(function(t){return function(e){var r=t,n=r.lib,o=n.WordArray,i=n.Hasher,a=r.algo,c=[];(function(){for(var t=0;t<64;t++)c[t]=4294967296*e.abs(e.sin(t+1))|0})();var s=a.MD5=i.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(t,e){for(var r=0;r<16;r++){var n=e+r,o=t[n];t[n]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}var i=this._hash.words,a=t[e+0],s=t[e+1],p=t[e+2],d=t[e+3],y=t[e+4],v=t[e+5],m=t[e+6],g=t[e+7],b=t[e+8],w=t[e+9],_=t[e+10],x=t[e+11],O=t[e+12],k=t[e+13],E=t[e+14],S=t[e+15],j=i[0],L=i[1],P=i[2],N=i[3];j=u(j,L,P,N,a,7,c[0]),N=u(N,j,L,P,s,12,c[1]),P=u(P,N,j,L,p,17,c[2]),L=u(L,P,N,j,d,22,c[3]),j=u(j,L,P,N,y,7,c[4]),N=u(N,j,L,P,v,12,c[5]),P=u(P,N,j,L,m,17,c[6]),L=u(L,P,N,j,g,22,c[7]),j=u(j,L,P,N,b,7,c[8]),N=u(N,j,L,P,w,12,c[9]),P=u(P,N,j,L,_,17,c[10]),L=u(L,P,N,j,x,22,c[11]),j=u(j,L,P,N,O,7,c[12]),N=u(N,j,L,P,k,12,c[13]),P=u(P,N,j,L,E,17,c[14]),L=u(L,P,N,j,S,22,c[15]),j=l(j,L,P,N,s,5,c[16]),N=l(N,j,L,P,m,9,c[17]),P=l(P,N,j,L,x,14,c[18]),L=l(L,P,N,j,a,20,c[19]),j=l(j,L,P,N,v,5,c[20]),N=l(N,j,L,P,_,9,c[21]),P=l(P,N,j,L,S,14,c[22]),L=l(L,P,N,j,y,20,c[23]),j=l(j,L,P,N,w,5,c[24]),N=l(N,j,L,P,E,9,c[25]),P=l(P,N,j,L,d,14,c[26]),L=l(L,P,N,j,b,20,c[27]),j=l(j,L,P,N,k,5,c[28]),N=l(N,j,L,P,p,9,c[29]),P=l(P,N,j,L,g,14,c[30]),L=l(L,P,N,j,O,20,c[31]),j=f(j,L,P,N,v,4,c[32]),N=f(N,j,L,P,b,11,c[33]),P=f(P,N,j,L,x,16,c[34]),L=f(L,P,N,j,E,23,c[35]),j=f(j,L,P,N,s,4,c[36]),N=f(N,j,L,P,y,11,c[37]),P=f(P,N,j,L,g,16,c[38]),L=f(L,P,N,j,_,23,c[39]),j=f(j,L,P,N,k,4,c[40]),N=f(N,j,L,P,a,11,c[41]),P=f(P,N,j,L,d,16,c[42]),L=f(L,P,N,j,m,23,c[43]),j=f(j,L,P,N,w,4,c[44]),N=f(N,j,L,P,O,11,c[45]),P=f(P,N,j,L,S,16,c[46]),L=f(L,P,N,j,p,23,c[47]),j=h(j,L,P,N,a,6,c[48]),N=h(N,j,L,P,g,10,c[49]),P=h(P,N,j,L,E,15,c[50]),L=h(L,P,N,j,v,21,c[51]),j=h(j,L,P,N,O,6,c[52]),N=h(N,j,L,P,d,10,c[53]),P=h(P,N,j,L,_,15,c[54]),L=h(L,P,N,j,s,21,c[55]),j=h(j,L,P,N,b,6,c[56]),N=h(N,j,L,P,S,10,c[57]),P=h(P,N,j,L,m,15,c[58]),L=h(L,P,N,j,k,21,c[59]),j=h(j,L,P,N,y,6,c[60]),N=h(N,j,L,P,x,10,c[61]),P=h(P,N,j,L,p,15,c[62]),L=h(L,P,N,j,w,21,c[63]),i[0]=i[0]+j|0,i[1]=i[1]+L|0,i[2]=i[2]+P|0,i[3]=i[3]+N|0},_doFinalize:function(){var t=this._data,r=t.words,n=8*this._nDataBytes,o=8*t.sigBytes;r[o>>>5]|=128<<24-o%32;var i=e.floor(n/4294967296),a=n;r[15+(o+64>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),r[14+(o+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),t.sigBytes=4*(r.length+1),this._process();for(var c=this._hash,s=c.words,u=0;u<4;u++){var l=s[u];s[u]=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8)}return c},clone:function(){var t=i.clone.call(this);return t._hash=this._hash.clone(),t}});function u(t,e,r,n,o,i,a){var c=t+(e&r|~e&n)+o+a;return(c<<i|c>>>32-i)+e}function l(t,e,r,n,o,i,a){var c=t+(e&n|r&~n)+o+a;return(c<<i|c>>>32-i)+e}function f(t,e,r,n,o,i,a){var c=t+(e^r^n)+o+a;return(c<<i|c>>>32-i)+e}function h(t,e,r,n,o,i,a){var c=t+(r^(e|~n))+o+a;return(c<<i|c>>>32-i)+e}r.MD5=i._createHelper(s),r.HmacMD5=i._createHmacHelper(s)}(Math),t.MD5}))},a71c:function(t,e,r){(function(e,n,o){t.exports=n(r("bf17"),r("023d"))})(0,(function(t){return t.mode.ECB=function(){var e=t.lib.BlockCipherMode.extend();return e.Encryptor=e.extend({processBlock:function(t,e){this._cipher.encryptBlock(t,e)}}),e.Decryptor=e.extend({processBlock:function(t,e){this._cipher.decryptBlock(t,e)}}),e}(),t.mode.ECB}))},ad71:function(t,e,r){(function(e,n,o){t.exports=n(r("bf17"),r("f97e"),r("a638"),r("57eb"),r("023d"))})(0,(function(t){return function(){var e=t,r=e.lib,n=r.WordArray,o=r.BlockCipher,i=e.algo,a=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],c=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],s=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],u=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],l=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],f=i.DES=o.extend({_doReset:function(){for(var t=this._key,e=t.words,r=[],n=0;n<56;n++){var o=a[n]-1;r[n]=e[o>>>5]>>>31-o%32&1}for(var i=this._subKeys=[],u=0;u<16;u++){var l=i[u]=[],f=s[u];for(n=0;n<24;n++)l[n/6|0]|=r[(c[n]-1+f)%28]<<31-n%6,l[4+(n/6|0)]|=r[28+(c[n+24]-1+f)%28]<<31-n%6;l[0]=l[0]<<1|l[0]>>>31;for(n=1;n<7;n++)l[n]=l[n]>>>4*(n-1)+3;l[7]=l[7]<<5|l[7]>>>27}var h=this._invSubKeys=[];for(n=0;n<16;n++)h[n]=i[15-n]},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._subKeys)},decryptBlock:function(t,e){this._doCryptBlock(t,e,this._invSubKeys)},_doCryptBlock:function(t,e,r){this._lBlock=t[e],this._rBlock=t[e+1],h.call(this,4,252645135),h.call(this,16,65535),p.call(this,2,858993459),p.call(this,8,16711935),h.call(this,1,1431655765);for(var n=0;n<16;n++){for(var o=r[n],i=this._lBlock,a=this._rBlock,c=0,s=0;s<8;s++)c|=u[s][((a^o[s])&l[s])>>>0];this._lBlock=a,this._rBlock=i^c}var f=this._lBlock;this._lBlock=this._rBlock,this._rBlock=f,h.call(this,1,1431655765),p.call(this,8,16711935),p.call(this,2,858993459),h.call(this,16,65535),h.call(this,4,252645135),t[e]=this._lBlock,t[e+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function h(t,e){var r=(this._lBlock>>>t^this._rBlock)&e;this._rBlock^=r,this._lBlock^=r<<t}function p(t,e){var r=(this._rBlock>>>t^this._lBlock)&e;this._lBlock^=r,this._rBlock^=r<<t}e.DES=o._createHelper(f);var d=i.TripleDES=o.extend({_doReset:function(){var t=this._key,e=t.words;if(2!==e.length&&4!==e.length&&e.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var r=e.slice(0,2),o=e.length<4?e.slice(0,2):e.slice(2,4),i=e.length<6?e.slice(0,2):e.slice(4,6);this._des1=f.createEncryptor(n.create(r)),this._des2=f.createEncryptor(n.create(o)),this._des3=f.createEncryptor(n.create(i))},encryptBlock:function(t,e){this._des1.encryptBlock(t,e),this._des2.decryptBlock(t,e),this._des3.encryptBlock(t,e)},decryptBlock:function(t,e){this._des3.decryptBlock(t,e),this._des2.encryptBlock(t,e),this._des1.decryptBlock(t,e)},keySize:6,ivSize:2,blockSize:2});e.TripleDES=o._createHelper(d)}(),t.TripleDES}))},af8a:function(t,e,r){(function(e,n,o){t.exports=n(r("bf17"),r("da25"))})(0,(function(t){return function(){var e=t,r=e.lib,n=r.WordArray,o=e.algo,i=o.SHA256,a=o.SHA224=i.extend({_doReset:function(){this._hash=new n.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var t=i._doFinalize.call(this);return t.sigBytes-=4,t}});e.SHA224=i._createHelper(a),e.HmacSHA224=i._createHmacHelper(a)}(),t.SHA224}))},b472:function(t,e,r){(function(e,n){t.exports=n(r("bf17"))})(0,(function(t){
|
|
17
17
|
/** @preserve
|
|
18
18
|
(c) 2012 by Cédric Mesnil. All rights reserved.
|
|
19
19
|
|
|
@@ -24,12 +24,12 @@ e.read=function(t,e,r,n,o){var i,a,c=8*o-n-1,s=(1<<c)-1,u=s>>1,l=-7,f=r?o-1:0,h=
|
|
|
24
24
|
|
|
25
25
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
26
26
|
*/
|
|
27
|
-
return function(e){var r=t,n=r.lib,o=n.WordArray,i=n.Hasher,a=r.algo,c=o.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),s=o.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),u=o.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),l=o.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),f=o.create([0,1518500249,1859775393,2400959708,2840853838]),h=o.create([1352829926,1548603684,1836072691,2053994217,0]),p=a.RIPEMD160=i.extend({_doReset:function(){this._hash=o.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){for(var r=0;r<16;r++){var n=e+r,o=t[n];t[n]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}var i,a,p,w,_,x,O,k,E,S,j,L=this._hash.words,P=f.words,N=h.words,A=c.words,
|
|
27
|
+
return function(e){var r=t,n=r.lib,o=n.WordArray,i=n.Hasher,a=r.algo,c=o.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),s=o.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),u=o.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),l=o.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),f=o.create([0,1518500249,1859775393,2400959708,2840853838]),h=o.create([1352829926,1548603684,1836072691,2053994217,0]),p=a.RIPEMD160=i.extend({_doReset:function(){this._hash=o.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){for(var r=0;r<16;r++){var n=e+r,o=t[n];t[n]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}var i,a,p,w,_,x,O,k,E,S,j,L=this._hash.words,P=f.words,N=h.words,A=c.words,C=s.words,T=u.words,I=l.words;x=i=L[0],O=a=L[1],k=p=L[2],E=w=L[3],S=_=L[4];for(r=0;r<80;r+=1)j=i+t[e+A[r]]|0,j+=r<16?d(a,p,w)+P[0]:r<32?y(a,p,w)+P[1]:r<48?v(a,p,w)+P[2]:r<64?m(a,p,w)+P[3]:g(a,p,w)+P[4],j|=0,j=b(j,T[r]),j=j+_|0,i=_,_=w,w=b(p,10),p=a,a=j,j=x+t[e+C[r]]|0,j+=r<16?g(O,k,E)+N[0]:r<32?m(O,k,E)+N[1]:r<48?v(O,k,E)+N[2]:r<64?y(O,k,E)+N[3]:d(O,k,E)+N[4],j|=0,j=b(j,I[r]),j=j+S|0,x=S,S=E,E=b(k,10),k=O,O=j;j=L[1]+p+E|0,L[1]=L[2]+w+S|0,L[2]=L[3]+_+x|0,L[3]=L[4]+i+O|0,L[4]=L[0]+a+k|0,L[0]=j},_doFinalize:function(){var t=this._data,e=t.words,r=8*this._nDataBytes,n=8*t.sigBytes;e[n>>>5]|=128<<24-n%32,e[14+(n+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),t.sigBytes=4*(e.length+1),this._process();for(var o=this._hash,i=o.words,a=0;a<5;a++){var c=i[a];i[a]=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8)}return o},clone:function(){var t=i.clone.call(this);return t._hash=this._hash.clone(),t}});function d(t,e,r){return t^e^r}function y(t,e,r){return t&e|~t&r}function v(t,e,r){return(t|~e)^r}function m(t,e,r){return t&r|e&~r}function g(t,e,r){return t^(e|~r)}function b(t,e){return t<<e|t>>>32-e}r.RIPEMD160=i._createHelper(p),r.HmacRIPEMD160=i._createHmacHelper(p)}(Math),t.RIPEMD160}))},b8ad:function(t,e,r){},bc8c:function(t,e,r){},bca4:function(t,e,r){},bf17:function(t,e,r){(function(e){(function(e,r){t.exports=r()})(0,(function(){var t=t||function(t,n){var o;if("undefined"!==typeof window&&window.crypto&&(o=window.crypto),"undefined"!==typeof self&&self.crypto&&(o=self.crypto),"undefined"!==typeof globalThis&&globalThis.crypto&&(o=globalThis.crypto),!o&&"undefined"!==typeof window&&window.msCrypto&&(o=window.msCrypto),!o&&"undefined"!==typeof e&&e.crypto&&(o=e.crypto),!o)try{o=r(0)}catch(m){}var i=function(){if(o){if("function"===typeof o.getRandomValues)try{return o.getRandomValues(new Uint32Array(1))[0]}catch(m){}if("function"===typeof o.randomBytes)try{return o.randomBytes(4).readInt32LE()}catch(m){}}throw new Error("Native crypto module could not be used to get secure random number.")},a=Object.create||function(){function t(){}return function(e){var r;return t.prototype=e,r=new t,t.prototype=null,r}}(),c={},s=c.lib={},u=s.Base=function(){return{extend:function(t){var e=a(this);return t&&e.mixIn(t),e.hasOwnProperty("init")&&this.init!==e.init||(e.init=function(){e.$super.init.apply(this,arguments)}),e.init.prototype=e,e.$super=this,e},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),l=s.WordArray=u.extend({init:function(t,e){t=this.words=t||[],this.sigBytes=e!=n?e:4*t.length},toString:function(t){return(t||h).stringify(this)},concat:function(t){var e=this.words,r=t.words,n=this.sigBytes,o=t.sigBytes;if(this.clamp(),n%4)for(var i=0;i<o;i++){var a=r[i>>>2]>>>24-i%4*8&255;e[n+i>>>2]|=a<<24-(n+i)%4*8}else for(var c=0;c<o;c+=4)e[n+c>>>2]=r[c>>>2];return this.sigBytes+=o,this},clamp:function(){var e=this.words,r=this.sigBytes;e[r>>>2]&=4294967295<<32-r%4*8,e.length=t.ceil(r/4)},clone:function(){var t=u.clone.call(this);return t.words=this.words.slice(0),t},random:function(t){for(var e=[],r=0;r<t;r+=4)e.push(i());return new l.init(e,t)}}),f=c.enc={},h=f.Hex={stringify:function(t){for(var e=t.words,r=t.sigBytes,n=[],o=0;o<r;o++){var i=e[o>>>2]>>>24-o%4*8&255;n.push((i>>>4).toString(16)),n.push((15&i).toString(16))}return n.join("")},parse:function(t){for(var e=t.length,r=[],n=0;n<e;n+=2)r[n>>>3]|=parseInt(t.substr(n,2),16)<<24-n%8*4;return new l.init(r,e/2)}},p=f.Latin1={stringify:function(t){for(var e=t.words,r=t.sigBytes,n=[],o=0;o<r;o++){var i=e[o>>>2]>>>24-o%4*8&255;n.push(String.fromCharCode(i))}return n.join("")},parse:function(t){for(var e=t.length,r=[],n=0;n<e;n++)r[n>>>2]|=(255&t.charCodeAt(n))<<24-n%4*8;return new l.init(r,e)}},d=f.Utf8={stringify:function(t){try{return decodeURIComponent(escape(p.stringify(t)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(t){return p.parse(unescape(encodeURIComponent(t)))}},y=s.BufferedBlockAlgorithm=u.extend({reset:function(){this._data=new l.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=d.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(e){var r,n=this._data,o=n.words,i=n.sigBytes,a=this.blockSize,c=4*a,s=i/c;s=e?t.ceil(s):t.max((0|s)-this._minBufferSize,0);var u=s*a,f=t.min(4*u,i);if(u){for(var h=0;h<u;h+=a)this._doProcessBlock(o,h);r=o.splice(0,u),n.sigBytes-=f}return new l.init(r,f)},clone:function(){var t=u.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0}),v=(s.Hasher=y.extend({cfg:u.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){y.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){t&&this._append(t);var e=this._doFinalize();return e},blockSize:16,_createHelper:function(t){return function(e,r){return new t.init(r).finalize(e)}},_createHmacHelper:function(t){return function(e,r){return new v.HMAC.init(t,r).finalize(e)}}}),c.algo={});return c}(Math);return t}))}).call(this,r("a42b"))},c4a3:function(t,e,r){(function(e,n,o){t.exports=n(r("bf17"),r("023d"))})(0,(function(t){return t.pad.AnsiX923={pad:function(t,e){var r=t.sigBytes,n=4*e,o=n-r%n,i=r+o-1;t.clamp(),t.words[i>>>2]|=o<<24-i%4*8,t.sigBytes+=o},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},t.pad.Ansix923}))},c820:function(t,e,r){},ca3b:function(t,e,r){"use strict";r("e1f1")},ce44:function(t,e,r){"use strict";(function(t){
|
|
28
28
|
/*!
|
|
29
29
|
* The buffer module from node.js, for the browser.
|
|
30
30
|
*
|
|
31
31
|
* @author Feross Aboukhadijeh <http://feross.org>
|
|
32
32
|
* @license MIT
|
|
33
33
|
*/
|
|
34
|
-
var n=r("2a55"),o=r("15a5"),i=r("91a8");function a(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"===typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(e){return!1}}function c(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(t,e){if(c()<e)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e),t.__proto__=u.prototype):(null===t&&(t=new u(e)),t.length=e),t}function u(t,e,r){if(!u.TYPED_ARRAY_SUPPORT&&!(this instanceof u))return new u(t,e,r);if("number"===typeof t){if("string"===typeof e)throw new Error("If encoding is specified then the first argument must be a string");return p(this,t)}return l(this,t,e,r)}function l(t,e,r,n){if("number"===typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!==typeof ArrayBuffer&&e instanceof ArrayBuffer?v(t,e,r,n):"string"===typeof e?d(t,e,r):m(t,e)}function f(t){if("number"!==typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function h(t,e,r,n){return f(e),e<=0?s(t,e):void 0!==r?"string"===typeof n?s(t,e).fill(r,n):s(t,e).fill(r):s(t,e)}function p(t,e){if(f(e),t=s(t,e<0?0:0|g(e)),!u.TYPED_ARRAY_SUPPORT)for(var r=0;r<e;++r)t[r]=0;return t}function d(t,e,r){if("string"===typeof r&&""!==r||(r="utf8"),!u.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|w(e,r);t=s(t,n);var o=t.write(e,r);return o!==n&&(t=t.slice(0,o)),t}function y(t,e){var r=e.length<0?0:0|g(e.length);t=s(t,r);for(var n=0;n<r;n+=1)t[n]=255&e[n];return t}function v(t,e,r,n){if(e.byteLength,r<0||e.byteLength<r)throw new RangeError("'offset' is out of bounds");if(e.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");return e=void 0===r&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,r):new Uint8Array(e,r,n),u.TYPED_ARRAY_SUPPORT?(t=e,t.__proto__=u.prototype):t=y(t,e),t}function m(t,e){if(u.isBuffer(e)){var r=0|g(e.length);return t=s(t,r),0===t.length?t:(e.copy(t,0,0,r),t)}if(e){if("undefined"!==typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!==typeof e.length||et(e.length)?s(t,0):y(t,e);if("Buffer"===e.type&&i(e.data))return y(t,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function g(t){if(t>=c())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+c().toString(16)+" bytes");return 0|t}function b(t){return+t!=t&&(t=0),u.alloc(+t)}function w(t,e){if(u.isBuffer(t))return t.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!==typeof t&&(t=""+t);var r=t.length;if(0===r)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return Z(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return Q(t).length;default:if(n)return Z(t).length;e=(""+e).toLowerCase(),n=!0}}function _(t,e,r){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if(r>>>=0,e>>>=0,r<=e)return"";t||(t="utf8");while(1)switch(t){case"hex":return q(this,e,r);case"utf8":case"utf-8":return T(this,e,r);case"ascii":return M(this,e,r);case"latin1":case"binary":return D(this,e,r);case"base64":return A(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function x(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function O(t,e,r,n,o){if(0===t.length)return-1;if("string"===typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=o?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(o)return-1;r=t.length-1}else if(r<0){if(!o)return-1;r=0}if("string"===typeof e&&(e=u.from(e,n)),u.isBuffer(e))return 0===e.length?-1:k(t,e,r,n,o);if("number"===typeof e)return e&=255,u.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):k(t,[e],r,n,o);throw new TypeError("val must be string, number or Buffer")}function k(t,e,r,n,o){var i,a=1,c=t.length,s=e.length;if(void 0!==n&&(n=String(n).toLowerCase(),"ucs2"===n||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;a=2,c/=2,s/=2,r/=2}function u(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(o){var l=-1;for(i=r;i<c;i++)if(u(t,i)===u(e,-1===l?0:i-l)){if(-1===l&&(l=i),i-l+1===s)return l*a}else-1!==l&&(i-=i-l),l=-1}else for(r+s>c&&(r=c-s),i=r;i>=0;i--){for(var f=!0,h=0;h<s;h++)if(u(t,i+h)!==u(e,h)){f=!1;break}if(f)return i}return-1}function E(t,e,r,n){r=Number(r)||0;var o=t.length-r;n?(n=Number(n),n>o&&(n=o)):n=o;var i=e.length;if(i%2!==0)throw new TypeError("Invalid hex string");n>i/2&&(n=i/2);for(var a=0;a<n;++a){var c=parseInt(e.substr(2*a,2),16);if(isNaN(c))return a;t[r+a]=c}return a}function S(t,e,r,n){return tt(Z(e,t.length-r),t,r,n)}function j(t,e,r,n){return tt(X(e),t,r,n)}function L(t,e,r,n){return j(t,e,r,n)}function P(t,e,r,n){return tt(Q(e),t,r,n)}function N(t,e,r,n){return tt(J(e,t.length-r),t,r,n)}function A(t,e,r){return 0===e&&r===t.length?n.fromByteArray(t):n.fromByteArray(t.slice(e,r))}function T(t,e,r){r=Math.min(t.length,r);var n=[],o=e;while(o<r){var i,a,c,s,u=t[o],l=null,f=u>239?4:u>223?3:u>191?2:1;if(o+f<=r)switch(f){case 1:u<128&&(l=u);break;case 2:i=t[o+1],128===(192&i)&&(s=(31&u)<<6|63&i,s>127&&(l=s));break;case 3:i=t[o+1],a=t[o+2],128===(192&i)&&128===(192&a)&&(s=(15&u)<<12|(63&i)<<6|63&a,s>2047&&(s<55296||s>57343)&&(l=s));break;case 4:i=t[o+1],a=t[o+2],c=t[o+3],128===(192&i)&&128===(192&a)&&128===(192&c)&&(s=(15&u)<<18|(63&i)<<12|(63&a)<<6|63&c,s>65535&&s<1114112&&(l=s))}null===l?(l=65533,f=1):l>65535&&(l-=65536,n.push(l>>>10&1023|55296),l=56320|1023&l),n.push(l),o+=f}return I(n)}e.Buffer=u,e.SlowBuffer=b,e.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:a(),e.kMaxLength=c(),u.poolSize=8192,u._augment=function(t){return t.__proto__=u.prototype,t},u.from=function(t,e,r){return l(null,t,e,r)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(t,e,r){return h(null,t,e,r)},u.allocUnsafe=function(t){return p(null,t)},u.allocUnsafeSlow=function(t){return p(null,t)},u.isBuffer=function(t){return!(null==t||!t._isBuffer)},u.compare=function(t,e){if(!u.isBuffer(t)||!u.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var r=t.length,n=e.length,o=0,i=Math.min(r,n);o<i;++o)if(t[o]!==e[o]){r=t[o],n=e[o];break}return r<n?-1:n<r?1:0},u.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(t,e){if(!i(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return u.alloc(0);var r;if(void 0===e)for(e=0,r=0;r<t.length;++r)e+=t[r].length;var n=u.allocUnsafe(e),o=0;for(r=0;r<t.length;++r){var a=t[r];if(!u.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(n,o),o+=a.length}return n},u.byteLength=w,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)x(this,e,e+1);return this},u.prototype.swap32=function(){var t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)x(this,e,e+3),x(this,e+1,e+2);return this},u.prototype.swap64=function(){var t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)x(this,e,e+7),x(this,e+1,e+6),x(this,e+2,e+5),x(this,e+3,e+4);return this},u.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?T(this,0,t):_.apply(this,arguments)},u.prototype.equals=function(t){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===u.compare(this,t)},u.prototype.inspect=function(){var t="",r=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(t+=" ... ")),"<Buffer "+t+">"},u.prototype.compare=function(t,e,r,n,o){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),e<0||r>t.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&e>=r)return 0;if(n>=o)return-1;if(e>=r)return 1;if(e>>>=0,r>>>=0,n>>>=0,o>>>=0,this===t)return 0;for(var i=o-n,a=r-e,c=Math.min(i,a),s=this.slice(n,o),l=t.slice(e,r),f=0;f<c;++f)if(s[f]!==l[f]){i=s[f],a=l[f];break}return i<a?-1:a<i?1:0},u.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},u.prototype.indexOf=function(t,e,r){return O(this,t,e,r,!0)},u.prototype.lastIndexOf=function(t,e,r){return O(this,t,e,r,!1)},u.prototype.write=function(t,e,r,n){if(void 0===e)n="utf8",r=this.length,e=0;else if(void 0===r&&"string"===typeof e)n=e,r=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(r)?(r|=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var o=this.length-e;if((void 0===r||r>o)&&(r=o),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var i=!1;;)switch(n){case"hex":return E(this,t,e,r);case"utf8":case"utf-8":return S(this,t,e,r);case"ascii":return j(this,t,e,r);case"latin1":case"binary":return L(this,t,e,r);case"base64":return P(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,t,e,r);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),i=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var C=4096;function I(t){var e=t.length;if(e<=C)return String.fromCharCode.apply(String,t);var r="",n=0;while(n<e)r+=String.fromCharCode.apply(String,t.slice(n,n+=C));return r}function M(t,e,r){var n="";r=Math.min(t.length,r);for(var o=e;o<r;++o)n+=String.fromCharCode(127&t[o]);return n}function D(t,e,r){var n="";r=Math.min(t.length,r);for(var o=e;o<r;++o)n+=String.fromCharCode(t[o]);return n}function q(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var o="",i=e;i<r;++i)o+=W(t[i]);return o}function R(t,e,r){for(var n=t.slice(e,r),o="",i=0;i<n.length;i+=2)o+=String.fromCharCode(n[i]+256*n[i+1]);return o}function B(t,e,r){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}function F(t,e,r,n,o,i){if(!u.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>o||e<i)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}function $(t,e,r,n){e<0&&(e=65535+e+1);for(var o=0,i=Math.min(t.length-r,2);o<i;++o)t[r+o]=(e&255<<8*(n?o:1-o))>>>8*(n?o:1-o)}function V(t,e,r,n){e<0&&(e=4294967295+e+1);for(var o=0,i=Math.min(t.length-r,4);o<i;++o)t[r+o]=e>>>8*(n?o:3-o)&255}function U(t,e,r,n,o,i){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function G(t,e,r,n,i){return i||U(t,e,r,4,34028234663852886e22,-34028234663852886e22),o.write(t,e,r,n,23,4),r+4}function z(t,e,r,n,i){return i||U(t,e,r,8,17976931348623157e292,-17976931348623157e292),o.write(t,e,r,n,52,8),r+8}u.prototype.slice=function(t,e){var r,n=this.length;if(t=~~t,e=void 0===e?n:~~e,t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),e<t&&(e=t),u.TYPED_ARRAY_SUPPORT)r=this.subarray(t,e),r.__proto__=u.prototype;else{var o=e-t;r=new u(o,void 0);for(var i=0;i<o;++i)r[i]=this[i+t]}return r},u.prototype.readUIntLE=function(t,e,r){t|=0,e|=0,r||B(t,e,this.length);var n=this[t],o=1,i=0;while(++i<e&&(o*=256))n+=this[t+i]*o;return n},u.prototype.readUIntBE=function(t,e,r){t|=0,e|=0,r||B(t,e,this.length);var n=this[t+--e],o=1;while(e>0&&(o*=256))n+=this[t+--e]*o;return n},u.prototype.readUInt8=function(t,e){return e||B(t,1,this.length),this[t]},u.prototype.readUInt16LE=function(t,e){return e||B(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUInt16BE=function(t,e){return e||B(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUInt32LE=function(t,e){return e||B(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},u.prototype.readUInt32BE=function(t,e){return e||B(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readIntLE=function(t,e,r){t|=0,e|=0,r||B(t,e,this.length);var n=this[t],o=1,i=0;while(++i<e&&(o*=256))n+=this[t+i]*o;return o*=128,n>=o&&(n-=Math.pow(2,8*e)),n},u.prototype.readIntBE=function(t,e,r){t|=0,e|=0,r||B(t,e,this.length);var n=e,o=1,i=this[t+--n];while(n>0&&(o*=256))i+=this[t+--n]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*e)),i},u.prototype.readInt8=function(t,e){return e||B(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},u.prototype.readInt16LE=function(t,e){e||B(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt16BE=function(t,e){e||B(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt32LE=function(t,e){return e||B(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,e){return e||B(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readFloatLE=function(t,e){return e||B(t,4,this.length),o.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,e){return e||B(t,4,this.length),o.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,e){return e||B(t,8,this.length),o.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,e){return e||B(t,8,this.length),o.read(this,t,!1,52,8)},u.prototype.writeUIntLE=function(t,e,r,n){if(t=+t,e|=0,r|=0,!n){var o=Math.pow(2,8*r)-1;F(this,t,e,r,o,0)}var i=1,a=0;this[e]=255&t;while(++a<r&&(i*=256))this[e+a]=t/i&255;return e+r},u.prototype.writeUIntBE=function(t,e,r,n){if(t=+t,e|=0,r|=0,!n){var o=Math.pow(2,8*r)-1;F(this,t,e,r,o,0)}var i=r-1,a=1;this[e+i]=255&t;while(--i>=0&&(a*=256))this[e+i]=t/a&255;return e+r},u.prototype.writeUInt8=function(t,e,r){return t=+t,e|=0,r||F(this,t,e,1,255,0),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},u.prototype.writeUInt16LE=function(t,e,r){return t=+t,e|=0,r||F(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):$(this,t,e,!0),e+2},u.prototype.writeUInt16BE=function(t,e,r){return t=+t,e|=0,r||F(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):$(this,t,e,!1),e+2},u.prototype.writeUInt32LE=function(t,e,r){return t=+t,e|=0,r||F(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):V(this,t,e,!0),e+4},u.prototype.writeUInt32BE=function(t,e,r){return t=+t,e|=0,r||F(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):V(this,t,e,!1),e+4},u.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e|=0,!n){var o=Math.pow(2,8*r-1);F(this,t,e,r,o-1,-o)}var i=0,a=1,c=0;this[e]=255&t;while(++i<r&&(a*=256))t<0&&0===c&&0!==this[e+i-1]&&(c=1),this[e+i]=(t/a>>0)-c&255;return e+r},u.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e|=0,!n){var o=Math.pow(2,8*r-1);F(this,t,e,r,o-1,-o)}var i=r-1,a=1,c=0;this[e+i]=255&t;while(--i>=0&&(a*=256))t<0&&0===c&&0!==this[e+i+1]&&(c=1),this[e+i]=(t/a>>0)-c&255;return e+r},u.prototype.writeInt8=function(t,e,r){return t=+t,e|=0,r||F(this,t,e,1,127,-128),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},u.prototype.writeInt16LE=function(t,e,r){return t=+t,e|=0,r||F(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):$(this,t,e,!0),e+2},u.prototype.writeInt16BE=function(t,e,r){return t=+t,e|=0,r||F(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):$(this,t,e,!1),e+2},u.prototype.writeInt32LE=function(t,e,r){return t=+t,e|=0,r||F(this,t,e,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):V(this,t,e,!0),e+4},u.prototype.writeInt32BE=function(t,e,r){return t=+t,e|=0,r||F(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):V(this,t,e,!1),e+4},u.prototype.writeFloatLE=function(t,e,r){return G(this,t,e,!0,r)},u.prototype.writeFloatBE=function(t,e,r){return G(this,t,e,!1,r)},u.prototype.writeDoubleLE=function(t,e,r){return z(this,t,e,!0,r)},u.prototype.writeDoubleBE=function(t,e,r){return z(this,t,e,!1,r)},u.prototype.copy=function(t,e,r,n){if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e<n-r&&(n=t.length-e+r);var o,i=n-r;if(this===t&&r<e&&e<n)for(o=i-1;o>=0;--o)t[o+e]=this[o+r];else if(i<1e3||!u.TYPED_ARRAY_SUPPORT)for(o=0;o<i;++o)t[o+e]=this[o+r];else Uint8Array.prototype.set.call(t,this.subarray(r,r+i),e);return i},u.prototype.fill=function(t,e,r,n){if("string"===typeof t){if("string"===typeof e?(n=e,e=0,r=this.length):"string"===typeof r&&(n=r,r=this.length),1===t.length){var o=t.charCodeAt(0);o<256&&(t=o)}if(void 0!==n&&"string"!==typeof n)throw new TypeError("encoding must be a string");if("string"===typeof n&&!u.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"===typeof t&&(t&=255);if(e<0||this.length<e||this.length<r)throw new RangeError("Out of range index");if(r<=e)return this;var i;if(e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"===typeof t)for(i=e;i<r;++i)this[i]=t;else{var a=u.isBuffer(t)?t:Z(new u(t,n).toString()),c=a.length;for(i=0;i<r-e;++i)this[i+e]=a[i%c]}return this};var K=/[^+\/0-9A-Za-z-_]/g;function H(t){if(t=Y(t).replace(K,""),t.length<2)return"";while(t.length%4!==0)t+="=";return t}function Y(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function W(t){return t<16?"0"+t.toString(16):t.toString(16)}function Z(t,e){var r;e=e||1/0;for(var n=t.length,o=null,i=[],a=0;a<n;++a){if(r=t.charCodeAt(a),r>55295&&r<57344){if(!o){if(r>56319){(e-=3)>-1&&i.push(239,191,189);continue}if(a+1===n){(e-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(e-=3)>-1&&i.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&(e-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((e-=1)<0)break;i.push(r)}else if(r<2048){if((e-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function X(t){for(var e=[],r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}function J(t,e){for(var r,n,o,i=[],a=0;a<t.length;++a){if((e-=2)<0)break;r=t.charCodeAt(a),n=r>>8,o=r%256,i.push(o),i.push(n)}return i}function Q(t){return n.toByteArray(H(t))}function tt(t,e,r,n){for(var o=0;o<n;++o){if(o+r>=e.length||o>=t.length)break;e[o+r]=t[o]}return o}function et(t){return t!==t}}).call(this,r("a42b"))},cebe:function(t,e){t.exports=s},cf3f:function(t,e,r){"use strict";r("bca4")},cf8c:function(t,e,r){},d08f:function(t,e,r){},d4c3:function(t,e,r){(function(e,n,o){t.exports=n(r("bf17"),r("f97e"),r("a638"),r("57eb"),r("023d"))})(0,(function(t){return function(){var e=t,r=e.lib,n=r.StreamCipher,o=e.algo,i=o.RC4=n.extend({_doReset:function(){for(var t=this._key,e=t.words,r=t.sigBytes,n=this._S=[],o=0;o<256;o++)n[o]=o;o=0;for(var i=0;o<256;o++){var a=o%r,c=e[a>>>2]>>>24-a%4*8&255;i=(i+n[o]+c)%256;var s=n[o];n[o]=n[i],n[i]=s}this._i=this._j=0},_doProcessBlock:function(t,e){t[e]^=a.call(this)},keySize:8,ivSize:0});function a(){for(var t=this._S,e=this._i,r=this._j,n=0,o=0;o<4;o++){e=(e+1)%256,r=(r+t[e])%256;var i=t[e];t[e]=t[r],t[r]=i,n|=t[(t[e]+t[r])%256]<<24-8*o}return this._i=e,this._j=r,n}e.RC4=n._createHelper(i);var c=o.RC4Drop=i.extend({cfg:i.cfg.extend({drop:192}),_doReset:function(){i._doReset.call(this);for(var t=this.cfg.drop;t>0;t--)a.call(this)}});e.RC4Drop=n._createHelper(c)}(),t.RC4}))},da25:function(t,e,r){(function(e,n){t.exports=n(r("bf17"))})(0,(function(t){return function(e){var r=t,n=r.lib,o=n.WordArray,i=n.Hasher,a=r.algo,c=[],s=[];(function(){function t(t){for(var r=e.sqrt(t),n=2;n<=r;n++)if(!(t%n))return!1;return!0}function r(t){return 4294967296*(t-(0|t))|0}var n=2,o=0;while(o<64)t(n)&&(o<8&&(c[o]=r(e.pow(n,.5))),s[o]=r(e.pow(n,1/3)),o++),n++})();var u=[],l=a.SHA256=i.extend({_doReset:function(){this._hash=new o.init(c.slice(0))},_doProcessBlock:function(t,e){for(var r=this._hash.words,n=r[0],o=r[1],i=r[2],a=r[3],c=r[4],l=r[5],f=r[6],h=r[7],p=0;p<64;p++){if(p<16)u[p]=0|t[e+p];else{var d=u[p-15],y=(d<<25|d>>>7)^(d<<14|d>>>18)^d>>>3,v=u[p-2],m=(v<<15|v>>>17)^(v<<13|v>>>19)^v>>>10;u[p]=y+u[p-7]+m+u[p-16]}var g=c&l^~c&f,b=n&o^n&i^o&i,w=(n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22),_=(c<<26|c>>>6)^(c<<21|c>>>11)^(c<<7|c>>>25),x=h+_+g+s[p]+u[p],O=w+b;h=f,f=l,l=c,c=a+x|0,a=i,i=o,o=n,n=x+O|0}r[0]=r[0]+n|0,r[1]=r[1]+o|0,r[2]=r[2]+i|0,r[3]=r[3]+a|0,r[4]=r[4]+c|0,r[5]=r[5]+l|0,r[6]=r[6]+f|0,r[7]=r[7]+h|0},_doFinalize:function(){var t=this._data,r=t.words,n=8*this._nDataBytes,o=8*t.sigBytes;return r[o>>>5]|=128<<24-o%32,r[14+(o+64>>>9<<4)]=e.floor(n/4294967296),r[15+(o+64>>>9<<4)]=n,t.sigBytes=4*r.length,this._process(),this._hash},clone:function(){var t=i.clone.call(this);return t._hash=this._hash.clone(),t}});r.SHA256=i._createHelper(l),r.HmacSHA256=i._createHmacHelper(l)}(Math),t.SHA256}))},dbf7:function(t,e,r){},dc36:function(t,e,r){var n,o,i;(function(r,a){o=[],n=a,i="function"===typeof n?n.apply(e,o):n,void 0===i||(t.exports=i)})("undefined"!==typeof self&&self,(function(){function t(){var e=Object.getOwnPropertyDescriptor(document,"currentScript");if(!e&&"currentScript"in document&&document.currentScript)return document.currentScript;if(e&&e.get!==t&&document.currentScript)return document.currentScript;try{throw new Error}catch(p){var r,n,o,i=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,a=/@([^@]*):(\d+):(\d+)\s*$/gi,c=i.exec(p.stack)||a.exec(p.stack),s=c&&c[1]||!1,u=c&&c[2]||!1,l=document.location.href.replace(document.location.hash,""),f=document.getElementsByTagName("script");s===l&&(r=document.documentElement.outerHTML,n=new RegExp("(?:[^\\n]+?\\n){0,"+(u-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),o=r.replace(n,"$1").trim());for(var h=0;h<f.length;h++){if("interactive"===f[h].readyState)return f[h];if(f[h].src===s)return f[h];if(s===l&&f[h].innerHTML&&f[h].innerHTML.trim()===o)return f[h]}return null}}return t}))},ddc6:function(t,e,r){(function(e,n,o){t.exports=n(r("bf17"),r("023d"))})(0,(function(t){return t.mode.CTR=function(){var e=t.lib.BlockCipherMode.extend(),r=e.Encryptor=e.extend({processBlock:function(t,e){var r=this._cipher,n=r.blockSize,o=this._iv,i=this._counter;o&&(i=this._counter=o.slice(0),this._iv=void 0);var a=i.slice(0);r.encryptBlock(a,0),i[n-1]=i[n-1]+1|0;for(var c=0;c<n;c++)t[e+c]^=a[c]}});return e.Decryptor=r,e}(),t.mode.CTR}))},dfed:function(t,e,r){(function(e,n,o){t.exports=n(r("bf17"),r("2b25"),r("fb70"))})(0,(function(t){return function(){var e=t,r=e.lib,n=r.Base,o=r.WordArray,i=e.algo,a=i.SHA1,c=i.HMAC,s=i.PBKDF2=n.extend({cfg:n.extend({keySize:4,hasher:a,iterations:1}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,e){var r=this.cfg,n=c.create(r.hasher,t),i=o.create(),a=o.create([1]),s=i.words,u=a.words,l=r.keySize,f=r.iterations;while(s.length<l){var h=n.update(e).finalize(a);n.reset();for(var p=h.words,d=p.length,y=h,v=1;v<f;v++){y=n.finalize(y),n.reset();for(var m=y.words,g=0;g<d;g++)p[g]^=m[g]}i.concat(h),u[0]++}return i.sigBytes=4*l,i}});e.PBKDF2=function(t,e,r){return s.create(r).compute(t,e)}}(),t.PBKDF2}))},e1f1:function(t,e,r){},e39e:function(t,e){t.exports=u},e3fc:function(t,e,r){(function(e,n,o){t.exports=n(r("bf17"),r("023d"))})(0,(function(t){return t.pad.Iso97971={pad:function(e,r){e.concat(t.lib.WordArray.create([2147483648],1)),t.pad.ZeroPadding.pad(e,r)},unpad:function(e){t.pad.ZeroPadding.unpad(e),e.sigBytes--}},t.pad.Iso97971}))},e41e:function(t,e,r){"use strict";r("6b48")},e558:function(t,e,r){"use strict";r("b8ad")},e58e:function(t,e,r){"use strict";r("4b6e")},ea8c:function(t,e,r){(function(e,n,o){t.exports=n(r("bf17"),r("5c90"))})(0,(function(t){return function(e){var r=t,n=r.lib,o=n.WordArray,i=n.Hasher,a=r.x64,c=a.Word,s=r.algo,u=[],l=[],f=[];(function(){for(var t=1,e=0,r=0;r<24;r++){u[t+5*e]=(r+1)*(r+2)/2%64;var n=e%5,o=(2*t+3*e)%5;t=n,e=o}for(t=0;t<5;t++)for(e=0;e<5;e++)l[t+5*e]=e+(2*t+3*e)%5*5;for(var i=1,a=0;a<24;a++){for(var s=0,h=0,p=0;p<7;p++){if(1&i){var d=(1<<p)-1;d<32?h^=1<<d:s^=1<<d-32}128&i?i=i<<1^113:i<<=1}f[a]=c.create(s,h)}})();var h=[];(function(){for(var t=0;t<25;t++)h[t]=c.create()})();var p=s.SHA3=i.extend({cfg:i.cfg.extend({outputLength:512}),_doReset:function(){for(var t=this._state=[],e=0;e<25;e++)t[e]=new c.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(t,e){for(var r=this._state,n=this.blockSize/2,o=0;o<n;o++){var i=t[e+2*o],a=t[e+2*o+1];i=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),a=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8);var c=r[o];c.high^=a,c.low^=i}for(var s=0;s<24;s++){for(var p=0;p<5;p++){for(var d=0,y=0,v=0;v<5;v++){c=r[p+5*v];d^=c.high,y^=c.low}var m=h[p];m.high=d,m.low=y}for(p=0;p<5;p++){var g=h[(p+4)%5],b=h[(p+1)%5],w=b.high,_=b.low;for(d=g.high^(w<<1|_>>>31),y=g.low^(_<<1|w>>>31),v=0;v<5;v++){c=r[p+5*v];c.high^=d,c.low^=y}}for(var x=1;x<25;x++){c=r[x];var O=c.high,k=c.low,E=u[x];E<32?(d=O<<E|k>>>32-E,y=k<<E|O>>>32-E):(d=k<<E-32|O>>>64-E,y=O<<E-32|k>>>64-E);var S=h[l[x]];S.high=d,S.low=y}var j=h[0],L=r[0];j.high=L.high,j.low=L.low;for(p=0;p<5;p++)for(v=0;v<5;v++){x=p+5*v,c=r[x];var P=h[x],N=h[(p+1)%5+5*v],A=h[(p+2)%5+5*v];c.high=P.high^~N.high&A.high,c.low=P.low^~N.low&A.low}c=r[0];var T=f[s];c.high^=T.high,c.low^=T.low}},_doFinalize:function(){var t=this._data,r=t.words,n=(this._nDataBytes,8*t.sigBytes),i=32*this.blockSize;r[n>>>5]|=1<<24-n%32,r[(e.ceil((n+1)/i)*i>>>5)-1]|=128,t.sigBytes=4*r.length,this._process();for(var a=this._state,c=this.cfg.outputLength/8,s=c/8,u=[],l=0;l<s;l++){var f=a[l],h=f.high,p=f.low;h=16711935&(h<<8|h>>>24)|4278255360&(h<<24|h>>>8),p=16711935&(p<<8|p>>>24)|4278255360&(p<<24|p>>>8),u.push(p),u.push(h)}return new o.init(u,c)},clone:function(){for(var t=i.clone.call(this),e=t._state=this._state.slice(0),r=0;r<25;r++)e[r]=e[r].clone();return t}});r.SHA3=i._createHelper(p),r.HmacSHA3=i._createHmacHelper(p)}(Math),t.SHA3}))},ecbb:function(t,e,r){(function(e,n,o){t.exports=n(r("bf17"),r("023d"))})(0,(function(t){return function(e){var r=t,n=r.lib,o=n.CipherParams,i=r.enc,a=i.Hex,c=r.format;c.Hex={stringify:function(t){return t.ciphertext.toString(a)},parse:function(t){var e=a.parse(t);return o.create({ciphertext:e})}}}(),t.format.Hex}))},ed00:function(t,e,r){(function(e,n){t.exports=n(r("bf17"))})(0,(function(t){return function(){var e=t,r=e.lib,n=r.WordArray,o=e.enc;o.Utf16=o.Utf16BE={stringify:function(t){for(var e=t.words,r=t.sigBytes,n=[],o=0;o<r;o+=2){var i=e[o>>>2]>>>16-o%4*8&65535;n.push(String.fromCharCode(i))}return n.join("")},parse:function(t){for(var e=t.length,r=[],o=0;o<e;o++)r[o>>>1]|=t.charCodeAt(o)<<16-o%2*16;return n.create(r,2*e)}};function i(t){return t<<8&4278255360|t>>>8&16711935}o.Utf16LE={stringify:function(t){for(var e=t.words,r=t.sigBytes,n=[],o=0;o<r;o+=2){var a=i(e[o>>>2]>>>16-o%4*8&65535);n.push(String.fromCharCode(a))}return n.join("")},parse:function(t){for(var e=t.length,r=[],o=0;o<e;o++)r[o>>>1]|=i(t.charCodeAt(o)<<16-o%2*16);return n.create(r,2*e)}}}(),t.enc.Utf16}))},eda6:function(t,e,r){(function(e,n,o){t.exports=n(r("bf17"),r("023d"))})(0,(function(t){return t.pad.ZeroPadding={pad:function(t,e){var r=4*e;t.clamp(),t.sigBytes+=r-(t.sigBytes%r||r)},unpad:function(t){var e=t.words,r=t.sigBytes-1;for(r=t.sigBytes-1;r>=0;r--)if(e[r>>>2]>>>24-r%4*8&255){t.sigBytes=r+1;break}}},t.pad.ZeroPadding}))},f0c7:function(t,e,r){(function(e,n,o){t.exports=n(r("bf17"),r("f97e"),r("a638"),r("57eb"),r("023d"))})(0,(function(t){return function(){var e=t,r=e.lib,n=r.StreamCipher,o=e.algo,i=[],a=[],c=[],s=o.RabbitLegacy=n.extend({_doReset:function(){var t=this._key.words,e=this.cfg.iv,r=this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16],n=this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];this._b=0;for(var o=0;o<4;o++)u.call(this);for(o=0;o<8;o++)n[o]^=r[o+4&7];if(e){var i=e.words,a=i[0],c=i[1],s=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),l=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8),f=s>>>16|4294901760&l,h=l<<16|65535&s;n[0]^=s,n[1]^=f,n[2]^=l,n[3]^=h,n[4]^=s,n[5]^=f,n[6]^=l,n[7]^=h;for(o=0;o<4;o++)u.call(this)}},_doProcessBlock:function(t,e){var r=this._X;u.call(this),i[0]=r[0]^r[5]>>>16^r[3]<<16,i[1]=r[2]^r[7]>>>16^r[5]<<16,i[2]=r[4]^r[1]>>>16^r[7]<<16,i[3]=r[6]^r[3]>>>16^r[1]<<16;for(var n=0;n<4;n++)i[n]=16711935&(i[n]<<8|i[n]>>>24)|4278255360&(i[n]<<24|i[n]>>>8),t[e+n]^=i[n]},blockSize:4,ivSize:2});function u(){for(var t=this._X,e=this._C,r=0;r<8;r++)a[r]=e[r];e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0<a[0]>>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0<a[1]>>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0<a[2]>>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0<a[3]>>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0<a[4]>>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0<a[5]>>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0<a[6]>>>0?1:0)|0,this._b=e[7]>>>0<a[7]>>>0?1:0;for(r=0;r<8;r++){var n=t[r]+e[r],o=65535&n,i=n>>>16,s=((o*o>>>17)+o*i>>>15)+i*i,u=((4294901760&n)*n|0)+((65535&n)*n|0);c[r]=s^u}t[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,t[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,t[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,t[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,t[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,t[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,t[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,t[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}e.RabbitLegacy=n._createHelper(s)}(),t.RabbitLegacy}))},f581:function(t,e,r){},f97e:function(t,e,r){(function(e,n){t.exports=n(r("bf17"))})(0,(function(t){return function(){var e=t,r=e.lib,n=r.WordArray,o=e.enc;o.Base64={stringify:function(t){var e=t.words,r=t.sigBytes,n=this._map;t.clamp();for(var o=[],i=0;i<r;i+=3)for(var a=e[i>>>2]>>>24-i%4*8&255,c=e[i+1>>>2]>>>24-(i+1)%4*8&255,s=e[i+2>>>2]>>>24-(i+2)%4*8&255,u=a<<16|c<<8|s,l=0;l<4&&i+.75*l<r;l++)o.push(n.charAt(u>>>6*(3-l)&63));var f=n.charAt(64);if(f)while(o.length%4)o.push(f);return o.join("")},parse:function(t){var e=t.length,r=this._map,n=this._reverseMap;if(!n){n=this._reverseMap=[];for(var o=0;o<r.length;o++)n[r.charCodeAt(o)]=o}var a=r.charAt(64);if(a){var c=t.indexOf(a);-1!==c&&(e=c)}return i(t,e,n)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function i(t,e,r){for(var o=[],i=0,a=0;a<e;a++)if(a%4){var c=r[t.charCodeAt(a-1)]<<a%4*2,s=r[t.charCodeAt(a)]>>>6-a%4*2,u=c|s;o[i>>>2]|=u<<24-i%4*8,i++}return n.create(o,i)}}(),t.enc.Base64}))},fa0b:function(t,e,r){"use strict";r("c820")},fa93:function(t,e,r){"use strict";r("1a73")},fb70:function(t,e,r){(function(e,n){t.exports=n(r("bf17"))})(0,(function(t){(function(){var e=t,r=e.lib,n=r.Base,o=e.enc,i=o.Utf8,a=e.algo;a.HMAC=n.extend({init:function(t,e){t=this._hasher=new t.init,"string"==typeof e&&(e=i.parse(e));var r=t.blockSize,n=4*r;e.sigBytes>n&&(e=t.finalize(e)),e.clamp();for(var o=this._oKey=e.clone(),a=this._iKey=e.clone(),c=o.words,s=a.words,u=0;u<r;u++)c[u]^=1549556828,s[u]^=909522486;o.sigBytes=a.sigBytes=n,this.reset()},reset:function(){var t=this._hasher;t.reset(),t.update(this._iKey)},update:function(t){return this._hasher.update(t),this},finalize:function(t){var e=this._hasher,r=e.finalize(t);e.reset();var n=e.finalize(this._oKey.clone().concat(r));return n}})})()}))}})}));
|
|
34
|
+
var n=r("2a55"),o=r("15a5"),i=r("91a8");function a(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"===typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(e){return!1}}function c(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(t,e){if(c()<e)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e),t.__proto__=u.prototype):(null===t&&(t=new u(e)),t.length=e),t}function u(t,e,r){if(!u.TYPED_ARRAY_SUPPORT&&!(this instanceof u))return new u(t,e,r);if("number"===typeof t){if("string"===typeof e)throw new Error("If encoding is specified then the first argument must be a string");return p(this,t)}return l(this,t,e,r)}function l(t,e,r,n){if("number"===typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!==typeof ArrayBuffer&&e instanceof ArrayBuffer?v(t,e,r,n):"string"===typeof e?d(t,e,r):m(t,e)}function f(t){if("number"!==typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function h(t,e,r,n){return f(e),e<=0?s(t,e):void 0!==r?"string"===typeof n?s(t,e).fill(r,n):s(t,e).fill(r):s(t,e)}function p(t,e){if(f(e),t=s(t,e<0?0:0|g(e)),!u.TYPED_ARRAY_SUPPORT)for(var r=0;r<e;++r)t[r]=0;return t}function d(t,e,r){if("string"===typeof r&&""!==r||(r="utf8"),!u.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|w(e,r);t=s(t,n);var o=t.write(e,r);return o!==n&&(t=t.slice(0,o)),t}function y(t,e){var r=e.length<0?0:0|g(e.length);t=s(t,r);for(var n=0;n<r;n+=1)t[n]=255&e[n];return t}function v(t,e,r,n){if(e.byteLength,r<0||e.byteLength<r)throw new RangeError("'offset' is out of bounds");if(e.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");return e=void 0===r&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,r):new Uint8Array(e,r,n),u.TYPED_ARRAY_SUPPORT?(t=e,t.__proto__=u.prototype):t=y(t,e),t}function m(t,e){if(u.isBuffer(e)){var r=0|g(e.length);return t=s(t,r),0===t.length?t:(e.copy(t,0,0,r),t)}if(e){if("undefined"!==typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!==typeof e.length||et(e.length)?s(t,0):y(t,e);if("Buffer"===e.type&&i(e.data))return y(t,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function g(t){if(t>=c())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+c().toString(16)+" bytes");return 0|t}function b(t){return+t!=t&&(t=0),u.alloc(+t)}function w(t,e){if(u.isBuffer(t))return t.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!==typeof t&&(t=""+t);var r=t.length;if(0===r)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return Z(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return Q(t).length;default:if(n)return Z(t).length;e=(""+e).toLowerCase(),n=!0}}function _(t,e,r){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if(r>>>=0,e>>>=0,r<=e)return"";t||(t="utf8");while(1)switch(t){case"hex":return q(this,e,r);case"utf8":case"utf-8":return C(this,e,r);case"ascii":return M(this,e,r);case"latin1":case"binary":return D(this,e,r);case"base64":return A(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function x(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function O(t,e,r,n,o){if(0===t.length)return-1;if("string"===typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=o?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(o)return-1;r=t.length-1}else if(r<0){if(!o)return-1;r=0}if("string"===typeof e&&(e=u.from(e,n)),u.isBuffer(e))return 0===e.length?-1:k(t,e,r,n,o);if("number"===typeof e)return e&=255,u.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):k(t,[e],r,n,o);throw new TypeError("val must be string, number or Buffer")}function k(t,e,r,n,o){var i,a=1,c=t.length,s=e.length;if(void 0!==n&&(n=String(n).toLowerCase(),"ucs2"===n||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;a=2,c/=2,s/=2,r/=2}function u(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(o){var l=-1;for(i=r;i<c;i++)if(u(t,i)===u(e,-1===l?0:i-l)){if(-1===l&&(l=i),i-l+1===s)return l*a}else-1!==l&&(i-=i-l),l=-1}else for(r+s>c&&(r=c-s),i=r;i>=0;i--){for(var f=!0,h=0;h<s;h++)if(u(t,i+h)!==u(e,h)){f=!1;break}if(f)return i}return-1}function E(t,e,r,n){r=Number(r)||0;var o=t.length-r;n?(n=Number(n),n>o&&(n=o)):n=o;var i=e.length;if(i%2!==0)throw new TypeError("Invalid hex string");n>i/2&&(n=i/2);for(var a=0;a<n;++a){var c=parseInt(e.substr(2*a,2),16);if(isNaN(c))return a;t[r+a]=c}return a}function S(t,e,r,n){return tt(Z(e,t.length-r),t,r,n)}function j(t,e,r,n){return tt(X(e),t,r,n)}function L(t,e,r,n){return j(t,e,r,n)}function P(t,e,r,n){return tt(Q(e),t,r,n)}function N(t,e,r,n){return tt(J(e,t.length-r),t,r,n)}function A(t,e,r){return 0===e&&r===t.length?n.fromByteArray(t):n.fromByteArray(t.slice(e,r))}function C(t,e,r){r=Math.min(t.length,r);var n=[],o=e;while(o<r){var i,a,c,s,u=t[o],l=null,f=u>239?4:u>223?3:u>191?2:1;if(o+f<=r)switch(f){case 1:u<128&&(l=u);break;case 2:i=t[o+1],128===(192&i)&&(s=(31&u)<<6|63&i,s>127&&(l=s));break;case 3:i=t[o+1],a=t[o+2],128===(192&i)&&128===(192&a)&&(s=(15&u)<<12|(63&i)<<6|63&a,s>2047&&(s<55296||s>57343)&&(l=s));break;case 4:i=t[o+1],a=t[o+2],c=t[o+3],128===(192&i)&&128===(192&a)&&128===(192&c)&&(s=(15&u)<<18|(63&i)<<12|(63&a)<<6|63&c,s>65535&&s<1114112&&(l=s))}null===l?(l=65533,f=1):l>65535&&(l-=65536,n.push(l>>>10&1023|55296),l=56320|1023&l),n.push(l),o+=f}return I(n)}e.Buffer=u,e.SlowBuffer=b,e.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:a(),e.kMaxLength=c(),u.poolSize=8192,u._augment=function(t){return t.__proto__=u.prototype,t},u.from=function(t,e,r){return l(null,t,e,r)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(t,e,r){return h(null,t,e,r)},u.allocUnsafe=function(t){return p(null,t)},u.allocUnsafeSlow=function(t){return p(null,t)},u.isBuffer=function(t){return!(null==t||!t._isBuffer)},u.compare=function(t,e){if(!u.isBuffer(t)||!u.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var r=t.length,n=e.length,o=0,i=Math.min(r,n);o<i;++o)if(t[o]!==e[o]){r=t[o],n=e[o];break}return r<n?-1:n<r?1:0},u.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(t,e){if(!i(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return u.alloc(0);var r;if(void 0===e)for(e=0,r=0;r<t.length;++r)e+=t[r].length;var n=u.allocUnsafe(e),o=0;for(r=0;r<t.length;++r){var a=t[r];if(!u.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(n,o),o+=a.length}return n},u.byteLength=w,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)x(this,e,e+1);return this},u.prototype.swap32=function(){var t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)x(this,e,e+3),x(this,e+1,e+2);return this},u.prototype.swap64=function(){var t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)x(this,e,e+7),x(this,e+1,e+6),x(this,e+2,e+5),x(this,e+3,e+4);return this},u.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?C(this,0,t):_.apply(this,arguments)},u.prototype.equals=function(t){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===u.compare(this,t)},u.prototype.inspect=function(){var t="",r=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(t+=" ... ")),"<Buffer "+t+">"},u.prototype.compare=function(t,e,r,n,o){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),e<0||r>t.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&e>=r)return 0;if(n>=o)return-1;if(e>=r)return 1;if(e>>>=0,r>>>=0,n>>>=0,o>>>=0,this===t)return 0;for(var i=o-n,a=r-e,c=Math.min(i,a),s=this.slice(n,o),l=t.slice(e,r),f=0;f<c;++f)if(s[f]!==l[f]){i=s[f],a=l[f];break}return i<a?-1:a<i?1:0},u.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},u.prototype.indexOf=function(t,e,r){return O(this,t,e,r,!0)},u.prototype.lastIndexOf=function(t,e,r){return O(this,t,e,r,!1)},u.prototype.write=function(t,e,r,n){if(void 0===e)n="utf8",r=this.length,e=0;else if(void 0===r&&"string"===typeof e)n=e,r=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(r)?(r|=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var o=this.length-e;if((void 0===r||r>o)&&(r=o),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var i=!1;;)switch(n){case"hex":return E(this,t,e,r);case"utf8":case"utf-8":return S(this,t,e,r);case"ascii":return j(this,t,e,r);case"latin1":case"binary":return L(this,t,e,r);case"base64":return P(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,t,e,r);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),i=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var T=4096;function I(t){var e=t.length;if(e<=T)return String.fromCharCode.apply(String,t);var r="",n=0;while(n<e)r+=String.fromCharCode.apply(String,t.slice(n,n+=T));return r}function M(t,e,r){var n="";r=Math.min(t.length,r);for(var o=e;o<r;++o)n+=String.fromCharCode(127&t[o]);return n}function D(t,e,r){var n="";r=Math.min(t.length,r);for(var o=e;o<r;++o)n+=String.fromCharCode(t[o]);return n}function q(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var o="",i=e;i<r;++i)o+=W(t[i]);return o}function R(t,e,r){for(var n=t.slice(e,r),o="",i=0;i<n.length;i+=2)o+=String.fromCharCode(n[i]+256*n[i+1]);return o}function B(t,e,r){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}function F(t,e,r,n,o,i){if(!u.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>o||e<i)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}function $(t,e,r,n){e<0&&(e=65535+e+1);for(var o=0,i=Math.min(t.length-r,2);o<i;++o)t[r+o]=(e&255<<8*(n?o:1-o))>>>8*(n?o:1-o)}function V(t,e,r,n){e<0&&(e=4294967295+e+1);for(var o=0,i=Math.min(t.length-r,4);o<i;++o)t[r+o]=e>>>8*(n?o:3-o)&255}function U(t,e,r,n,o,i){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function G(t,e,r,n,i){return i||U(t,e,r,4,34028234663852886e22,-34028234663852886e22),o.write(t,e,r,n,23,4),r+4}function z(t,e,r,n,i){return i||U(t,e,r,8,17976931348623157e292,-17976931348623157e292),o.write(t,e,r,n,52,8),r+8}u.prototype.slice=function(t,e){var r,n=this.length;if(t=~~t,e=void 0===e?n:~~e,t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),e<t&&(e=t),u.TYPED_ARRAY_SUPPORT)r=this.subarray(t,e),r.__proto__=u.prototype;else{var o=e-t;r=new u(o,void 0);for(var i=0;i<o;++i)r[i]=this[i+t]}return r},u.prototype.readUIntLE=function(t,e,r){t|=0,e|=0,r||B(t,e,this.length);var n=this[t],o=1,i=0;while(++i<e&&(o*=256))n+=this[t+i]*o;return n},u.prototype.readUIntBE=function(t,e,r){t|=0,e|=0,r||B(t,e,this.length);var n=this[t+--e],o=1;while(e>0&&(o*=256))n+=this[t+--e]*o;return n},u.prototype.readUInt8=function(t,e){return e||B(t,1,this.length),this[t]},u.prototype.readUInt16LE=function(t,e){return e||B(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUInt16BE=function(t,e){return e||B(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUInt32LE=function(t,e){return e||B(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},u.prototype.readUInt32BE=function(t,e){return e||B(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readIntLE=function(t,e,r){t|=0,e|=0,r||B(t,e,this.length);var n=this[t],o=1,i=0;while(++i<e&&(o*=256))n+=this[t+i]*o;return o*=128,n>=o&&(n-=Math.pow(2,8*e)),n},u.prototype.readIntBE=function(t,e,r){t|=0,e|=0,r||B(t,e,this.length);var n=e,o=1,i=this[t+--n];while(n>0&&(o*=256))i+=this[t+--n]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*e)),i},u.prototype.readInt8=function(t,e){return e||B(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},u.prototype.readInt16LE=function(t,e){e||B(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt16BE=function(t,e){e||B(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt32LE=function(t,e){return e||B(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,e){return e||B(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readFloatLE=function(t,e){return e||B(t,4,this.length),o.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,e){return e||B(t,4,this.length),o.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,e){return e||B(t,8,this.length),o.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,e){return e||B(t,8,this.length),o.read(this,t,!1,52,8)},u.prototype.writeUIntLE=function(t,e,r,n){if(t=+t,e|=0,r|=0,!n){var o=Math.pow(2,8*r)-1;F(this,t,e,r,o,0)}var i=1,a=0;this[e]=255&t;while(++a<r&&(i*=256))this[e+a]=t/i&255;return e+r},u.prototype.writeUIntBE=function(t,e,r,n){if(t=+t,e|=0,r|=0,!n){var o=Math.pow(2,8*r)-1;F(this,t,e,r,o,0)}var i=r-1,a=1;this[e+i]=255&t;while(--i>=0&&(a*=256))this[e+i]=t/a&255;return e+r},u.prototype.writeUInt8=function(t,e,r){return t=+t,e|=0,r||F(this,t,e,1,255,0),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},u.prototype.writeUInt16LE=function(t,e,r){return t=+t,e|=0,r||F(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):$(this,t,e,!0),e+2},u.prototype.writeUInt16BE=function(t,e,r){return t=+t,e|=0,r||F(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):$(this,t,e,!1),e+2},u.prototype.writeUInt32LE=function(t,e,r){return t=+t,e|=0,r||F(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):V(this,t,e,!0),e+4},u.prototype.writeUInt32BE=function(t,e,r){return t=+t,e|=0,r||F(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):V(this,t,e,!1),e+4},u.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e|=0,!n){var o=Math.pow(2,8*r-1);F(this,t,e,r,o-1,-o)}var i=0,a=1,c=0;this[e]=255&t;while(++i<r&&(a*=256))t<0&&0===c&&0!==this[e+i-1]&&(c=1),this[e+i]=(t/a>>0)-c&255;return e+r},u.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e|=0,!n){var o=Math.pow(2,8*r-1);F(this,t,e,r,o-1,-o)}var i=r-1,a=1,c=0;this[e+i]=255&t;while(--i>=0&&(a*=256))t<0&&0===c&&0!==this[e+i+1]&&(c=1),this[e+i]=(t/a>>0)-c&255;return e+r},u.prototype.writeInt8=function(t,e,r){return t=+t,e|=0,r||F(this,t,e,1,127,-128),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},u.prototype.writeInt16LE=function(t,e,r){return t=+t,e|=0,r||F(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):$(this,t,e,!0),e+2},u.prototype.writeInt16BE=function(t,e,r){return t=+t,e|=0,r||F(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):$(this,t,e,!1),e+2},u.prototype.writeInt32LE=function(t,e,r){return t=+t,e|=0,r||F(this,t,e,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):V(this,t,e,!0),e+4},u.prototype.writeInt32BE=function(t,e,r){return t=+t,e|=0,r||F(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):V(this,t,e,!1),e+4},u.prototype.writeFloatLE=function(t,e,r){return G(this,t,e,!0,r)},u.prototype.writeFloatBE=function(t,e,r){return G(this,t,e,!1,r)},u.prototype.writeDoubleLE=function(t,e,r){return z(this,t,e,!0,r)},u.prototype.writeDoubleBE=function(t,e,r){return z(this,t,e,!1,r)},u.prototype.copy=function(t,e,r,n){if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e<n-r&&(n=t.length-e+r);var o,i=n-r;if(this===t&&r<e&&e<n)for(o=i-1;o>=0;--o)t[o+e]=this[o+r];else if(i<1e3||!u.TYPED_ARRAY_SUPPORT)for(o=0;o<i;++o)t[o+e]=this[o+r];else Uint8Array.prototype.set.call(t,this.subarray(r,r+i),e);return i},u.prototype.fill=function(t,e,r,n){if("string"===typeof t){if("string"===typeof e?(n=e,e=0,r=this.length):"string"===typeof r&&(n=r,r=this.length),1===t.length){var o=t.charCodeAt(0);o<256&&(t=o)}if(void 0!==n&&"string"!==typeof n)throw new TypeError("encoding must be a string");if("string"===typeof n&&!u.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"===typeof t&&(t&=255);if(e<0||this.length<e||this.length<r)throw new RangeError("Out of range index");if(r<=e)return this;var i;if(e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"===typeof t)for(i=e;i<r;++i)this[i]=t;else{var a=u.isBuffer(t)?t:Z(new u(t,n).toString()),c=a.length;for(i=0;i<r-e;++i)this[i+e]=a[i%c]}return this};var K=/[^+\/0-9A-Za-z-_]/g;function H(t){if(t=Y(t).replace(K,""),t.length<2)return"";while(t.length%4!==0)t+="=";return t}function Y(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function W(t){return t<16?"0"+t.toString(16):t.toString(16)}function Z(t,e){var r;e=e||1/0;for(var n=t.length,o=null,i=[],a=0;a<n;++a){if(r=t.charCodeAt(a),r>55295&&r<57344){if(!o){if(r>56319){(e-=3)>-1&&i.push(239,191,189);continue}if(a+1===n){(e-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(e-=3)>-1&&i.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&(e-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((e-=1)<0)break;i.push(r)}else if(r<2048){if((e-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function X(t){for(var e=[],r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}function J(t,e){for(var r,n,o,i=[],a=0;a<t.length;++a){if((e-=2)<0)break;r=t.charCodeAt(a),n=r>>8,o=r%256,i.push(o),i.push(n)}return i}function Q(t){return n.toByteArray(H(t))}function tt(t,e,r,n){for(var o=0;o<n;++o){if(o+r>=e.length||o>=t.length)break;e[o+r]=t[o]}return o}function et(t){return t!==t}}).call(this,r("a42b"))},cebe:function(t,e){t.exports=s},cf3f:function(t,e,r){"use strict";r("bca4")},cf8c:function(t,e,r){},d08f:function(t,e,r){},d4c3:function(t,e,r){(function(e,n,o){t.exports=n(r("bf17"),r("f97e"),r("a638"),r("57eb"),r("023d"))})(0,(function(t){return function(){var e=t,r=e.lib,n=r.StreamCipher,o=e.algo,i=o.RC4=n.extend({_doReset:function(){for(var t=this._key,e=t.words,r=t.sigBytes,n=this._S=[],o=0;o<256;o++)n[o]=o;o=0;for(var i=0;o<256;o++){var a=o%r,c=e[a>>>2]>>>24-a%4*8&255;i=(i+n[o]+c)%256;var s=n[o];n[o]=n[i],n[i]=s}this._i=this._j=0},_doProcessBlock:function(t,e){t[e]^=a.call(this)},keySize:8,ivSize:0});function a(){for(var t=this._S,e=this._i,r=this._j,n=0,o=0;o<4;o++){e=(e+1)%256,r=(r+t[e])%256;var i=t[e];t[e]=t[r],t[r]=i,n|=t[(t[e]+t[r])%256]<<24-8*o}return this._i=e,this._j=r,n}e.RC4=n._createHelper(i);var c=o.RC4Drop=i.extend({cfg:i.cfg.extend({drop:192}),_doReset:function(){i._doReset.call(this);for(var t=this.cfg.drop;t>0;t--)a.call(this)}});e.RC4Drop=n._createHelper(c)}(),t.RC4}))},da25:function(t,e,r){(function(e,n){t.exports=n(r("bf17"))})(0,(function(t){return function(e){var r=t,n=r.lib,o=n.WordArray,i=n.Hasher,a=r.algo,c=[],s=[];(function(){function t(t){for(var r=e.sqrt(t),n=2;n<=r;n++)if(!(t%n))return!1;return!0}function r(t){return 4294967296*(t-(0|t))|0}var n=2,o=0;while(o<64)t(n)&&(o<8&&(c[o]=r(e.pow(n,.5))),s[o]=r(e.pow(n,1/3)),o++),n++})();var u=[],l=a.SHA256=i.extend({_doReset:function(){this._hash=new o.init(c.slice(0))},_doProcessBlock:function(t,e){for(var r=this._hash.words,n=r[0],o=r[1],i=r[2],a=r[3],c=r[4],l=r[5],f=r[6],h=r[7],p=0;p<64;p++){if(p<16)u[p]=0|t[e+p];else{var d=u[p-15],y=(d<<25|d>>>7)^(d<<14|d>>>18)^d>>>3,v=u[p-2],m=(v<<15|v>>>17)^(v<<13|v>>>19)^v>>>10;u[p]=y+u[p-7]+m+u[p-16]}var g=c&l^~c&f,b=n&o^n&i^o&i,w=(n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22),_=(c<<26|c>>>6)^(c<<21|c>>>11)^(c<<7|c>>>25),x=h+_+g+s[p]+u[p],O=w+b;h=f,f=l,l=c,c=a+x|0,a=i,i=o,o=n,n=x+O|0}r[0]=r[0]+n|0,r[1]=r[1]+o|0,r[2]=r[2]+i|0,r[3]=r[3]+a|0,r[4]=r[4]+c|0,r[5]=r[5]+l|0,r[6]=r[6]+f|0,r[7]=r[7]+h|0},_doFinalize:function(){var t=this._data,r=t.words,n=8*this._nDataBytes,o=8*t.sigBytes;return r[o>>>5]|=128<<24-o%32,r[14+(o+64>>>9<<4)]=e.floor(n/4294967296),r[15+(o+64>>>9<<4)]=n,t.sigBytes=4*r.length,this._process(),this._hash},clone:function(){var t=i.clone.call(this);return t._hash=this._hash.clone(),t}});r.SHA256=i._createHelper(l),r.HmacSHA256=i._createHmacHelper(l)}(Math),t.SHA256}))},dbf7:function(t,e,r){},dc36:function(t,e,r){var n,o,i;(function(r,a){o=[],n=a,i="function"===typeof n?n.apply(e,o):n,void 0===i||(t.exports=i)})("undefined"!==typeof self&&self,(function(){function t(){var e=Object.getOwnPropertyDescriptor(document,"currentScript");if(!e&&"currentScript"in document&&document.currentScript)return document.currentScript;if(e&&e.get!==t&&document.currentScript)return document.currentScript;try{throw new Error}catch(p){var r,n,o,i=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,a=/@([^@]*):(\d+):(\d+)\s*$/gi,c=i.exec(p.stack)||a.exec(p.stack),s=c&&c[1]||!1,u=c&&c[2]||!1,l=document.location.href.replace(document.location.hash,""),f=document.getElementsByTagName("script");s===l&&(r=document.documentElement.outerHTML,n=new RegExp("(?:[^\\n]+?\\n){0,"+(u-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),o=r.replace(n,"$1").trim());for(var h=0;h<f.length;h++){if("interactive"===f[h].readyState)return f[h];if(f[h].src===s)return f[h];if(s===l&&f[h].innerHTML&&f[h].innerHTML.trim()===o)return f[h]}return null}}return t}))},ddc6:function(t,e,r){(function(e,n,o){t.exports=n(r("bf17"),r("023d"))})(0,(function(t){return t.mode.CTR=function(){var e=t.lib.BlockCipherMode.extend(),r=e.Encryptor=e.extend({processBlock:function(t,e){var r=this._cipher,n=r.blockSize,o=this._iv,i=this._counter;o&&(i=this._counter=o.slice(0),this._iv=void 0);var a=i.slice(0);r.encryptBlock(a,0),i[n-1]=i[n-1]+1|0;for(var c=0;c<n;c++)t[e+c]^=a[c]}});return e.Decryptor=r,e}(),t.mode.CTR}))},dfed:function(t,e,r){(function(e,n,o){t.exports=n(r("bf17"),r("2b25"),r("fb70"))})(0,(function(t){return function(){var e=t,r=e.lib,n=r.Base,o=r.WordArray,i=e.algo,a=i.SHA1,c=i.HMAC,s=i.PBKDF2=n.extend({cfg:n.extend({keySize:4,hasher:a,iterations:1}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,e){var r=this.cfg,n=c.create(r.hasher,t),i=o.create(),a=o.create([1]),s=i.words,u=a.words,l=r.keySize,f=r.iterations;while(s.length<l){var h=n.update(e).finalize(a);n.reset();for(var p=h.words,d=p.length,y=h,v=1;v<f;v++){y=n.finalize(y),n.reset();for(var m=y.words,g=0;g<d;g++)p[g]^=m[g]}i.concat(h),u[0]++}return i.sigBytes=4*l,i}});e.PBKDF2=function(t,e,r){return s.create(r).compute(t,e)}}(),t.PBKDF2}))},e1f1:function(t,e,r){},e39e:function(t,e){t.exports=u},e3fc:function(t,e,r){(function(e,n,o){t.exports=n(r("bf17"),r("023d"))})(0,(function(t){return t.pad.Iso97971={pad:function(e,r){e.concat(t.lib.WordArray.create([2147483648],1)),t.pad.ZeroPadding.pad(e,r)},unpad:function(e){t.pad.ZeroPadding.unpad(e),e.sigBytes--}},t.pad.Iso97971}))},e41e:function(t,e,r){"use strict";r("6b48")},e558:function(t,e,r){"use strict";r("b8ad")},e58e:function(t,e,r){"use strict";r("4b6e")},ea8c:function(t,e,r){(function(e,n,o){t.exports=n(r("bf17"),r("5c90"))})(0,(function(t){return function(e){var r=t,n=r.lib,o=n.WordArray,i=n.Hasher,a=r.x64,c=a.Word,s=r.algo,u=[],l=[],f=[];(function(){for(var t=1,e=0,r=0;r<24;r++){u[t+5*e]=(r+1)*(r+2)/2%64;var n=e%5,o=(2*t+3*e)%5;t=n,e=o}for(t=0;t<5;t++)for(e=0;e<5;e++)l[t+5*e]=e+(2*t+3*e)%5*5;for(var i=1,a=0;a<24;a++){for(var s=0,h=0,p=0;p<7;p++){if(1&i){var d=(1<<p)-1;d<32?h^=1<<d:s^=1<<d-32}128&i?i=i<<1^113:i<<=1}f[a]=c.create(s,h)}})();var h=[];(function(){for(var t=0;t<25;t++)h[t]=c.create()})();var p=s.SHA3=i.extend({cfg:i.cfg.extend({outputLength:512}),_doReset:function(){for(var t=this._state=[],e=0;e<25;e++)t[e]=new c.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(t,e){for(var r=this._state,n=this.blockSize/2,o=0;o<n;o++){var i=t[e+2*o],a=t[e+2*o+1];i=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),a=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8);var c=r[o];c.high^=a,c.low^=i}for(var s=0;s<24;s++){for(var p=0;p<5;p++){for(var d=0,y=0,v=0;v<5;v++){c=r[p+5*v];d^=c.high,y^=c.low}var m=h[p];m.high=d,m.low=y}for(p=0;p<5;p++){var g=h[(p+4)%5],b=h[(p+1)%5],w=b.high,_=b.low;for(d=g.high^(w<<1|_>>>31),y=g.low^(_<<1|w>>>31),v=0;v<5;v++){c=r[p+5*v];c.high^=d,c.low^=y}}for(var x=1;x<25;x++){c=r[x];var O=c.high,k=c.low,E=u[x];E<32?(d=O<<E|k>>>32-E,y=k<<E|O>>>32-E):(d=k<<E-32|O>>>64-E,y=O<<E-32|k>>>64-E);var S=h[l[x]];S.high=d,S.low=y}var j=h[0],L=r[0];j.high=L.high,j.low=L.low;for(p=0;p<5;p++)for(v=0;v<5;v++){x=p+5*v,c=r[x];var P=h[x],N=h[(p+1)%5+5*v],A=h[(p+2)%5+5*v];c.high=P.high^~N.high&A.high,c.low=P.low^~N.low&A.low}c=r[0];var C=f[s];c.high^=C.high,c.low^=C.low}},_doFinalize:function(){var t=this._data,r=t.words,n=(this._nDataBytes,8*t.sigBytes),i=32*this.blockSize;r[n>>>5]|=1<<24-n%32,r[(e.ceil((n+1)/i)*i>>>5)-1]|=128,t.sigBytes=4*r.length,this._process();for(var a=this._state,c=this.cfg.outputLength/8,s=c/8,u=[],l=0;l<s;l++){var f=a[l],h=f.high,p=f.low;h=16711935&(h<<8|h>>>24)|4278255360&(h<<24|h>>>8),p=16711935&(p<<8|p>>>24)|4278255360&(p<<24|p>>>8),u.push(p),u.push(h)}return new o.init(u,c)},clone:function(){for(var t=i.clone.call(this),e=t._state=this._state.slice(0),r=0;r<25;r++)e[r]=e[r].clone();return t}});r.SHA3=i._createHelper(p),r.HmacSHA3=i._createHmacHelper(p)}(Math),t.SHA3}))},ecbb:function(t,e,r){(function(e,n,o){t.exports=n(r("bf17"),r("023d"))})(0,(function(t){return function(e){var r=t,n=r.lib,o=n.CipherParams,i=r.enc,a=i.Hex,c=r.format;c.Hex={stringify:function(t){return t.ciphertext.toString(a)},parse:function(t){var e=a.parse(t);return o.create({ciphertext:e})}}}(),t.format.Hex}))},ed00:function(t,e,r){(function(e,n){t.exports=n(r("bf17"))})(0,(function(t){return function(){var e=t,r=e.lib,n=r.WordArray,o=e.enc;o.Utf16=o.Utf16BE={stringify:function(t){for(var e=t.words,r=t.sigBytes,n=[],o=0;o<r;o+=2){var i=e[o>>>2]>>>16-o%4*8&65535;n.push(String.fromCharCode(i))}return n.join("")},parse:function(t){for(var e=t.length,r=[],o=0;o<e;o++)r[o>>>1]|=t.charCodeAt(o)<<16-o%2*16;return n.create(r,2*e)}};function i(t){return t<<8&4278255360|t>>>8&16711935}o.Utf16LE={stringify:function(t){for(var e=t.words,r=t.sigBytes,n=[],o=0;o<r;o+=2){var a=i(e[o>>>2]>>>16-o%4*8&65535);n.push(String.fromCharCode(a))}return n.join("")},parse:function(t){for(var e=t.length,r=[],o=0;o<e;o++)r[o>>>1]|=i(t.charCodeAt(o)<<16-o%2*16);return n.create(r,2*e)}}}(),t.enc.Utf16}))},eda6:function(t,e,r){(function(e,n,o){t.exports=n(r("bf17"),r("023d"))})(0,(function(t){return t.pad.ZeroPadding={pad:function(t,e){var r=4*e;t.clamp(),t.sigBytes+=r-(t.sigBytes%r||r)},unpad:function(t){var e=t.words,r=t.sigBytes-1;for(r=t.sigBytes-1;r>=0;r--)if(e[r>>>2]>>>24-r%4*8&255){t.sigBytes=r+1;break}}},t.pad.ZeroPadding}))},f0c7:function(t,e,r){(function(e,n,o){t.exports=n(r("bf17"),r("f97e"),r("a638"),r("57eb"),r("023d"))})(0,(function(t){return function(){var e=t,r=e.lib,n=r.StreamCipher,o=e.algo,i=[],a=[],c=[],s=o.RabbitLegacy=n.extend({_doReset:function(){var t=this._key.words,e=this.cfg.iv,r=this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16],n=this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];this._b=0;for(var o=0;o<4;o++)u.call(this);for(o=0;o<8;o++)n[o]^=r[o+4&7];if(e){var i=e.words,a=i[0],c=i[1],s=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),l=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8),f=s>>>16|4294901760&l,h=l<<16|65535&s;n[0]^=s,n[1]^=f,n[2]^=l,n[3]^=h,n[4]^=s,n[5]^=f,n[6]^=l,n[7]^=h;for(o=0;o<4;o++)u.call(this)}},_doProcessBlock:function(t,e){var r=this._X;u.call(this),i[0]=r[0]^r[5]>>>16^r[3]<<16,i[1]=r[2]^r[7]>>>16^r[5]<<16,i[2]=r[4]^r[1]>>>16^r[7]<<16,i[3]=r[6]^r[3]>>>16^r[1]<<16;for(var n=0;n<4;n++)i[n]=16711935&(i[n]<<8|i[n]>>>24)|4278255360&(i[n]<<24|i[n]>>>8),t[e+n]^=i[n]},blockSize:4,ivSize:2});function u(){for(var t=this._X,e=this._C,r=0;r<8;r++)a[r]=e[r];e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0<a[0]>>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0<a[1]>>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0<a[2]>>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0<a[3]>>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0<a[4]>>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0<a[5]>>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0<a[6]>>>0?1:0)|0,this._b=e[7]>>>0<a[7]>>>0?1:0;for(r=0;r<8;r++){var n=t[r]+e[r],o=65535&n,i=n>>>16,s=((o*o>>>17)+o*i>>>15)+i*i,u=((4294901760&n)*n|0)+((65535&n)*n|0);c[r]=s^u}t[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,t[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,t[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,t[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,t[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,t[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,t[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,t[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}e.RabbitLegacy=n._createHelper(s)}(),t.RabbitLegacy}))},f581:function(t,e,r){},f97e:function(t,e,r){(function(e,n){t.exports=n(r("bf17"))})(0,(function(t){return function(){var e=t,r=e.lib,n=r.WordArray,o=e.enc;o.Base64={stringify:function(t){var e=t.words,r=t.sigBytes,n=this._map;t.clamp();for(var o=[],i=0;i<r;i+=3)for(var a=e[i>>>2]>>>24-i%4*8&255,c=e[i+1>>>2]>>>24-(i+1)%4*8&255,s=e[i+2>>>2]>>>24-(i+2)%4*8&255,u=a<<16|c<<8|s,l=0;l<4&&i+.75*l<r;l++)o.push(n.charAt(u>>>6*(3-l)&63));var f=n.charAt(64);if(f)while(o.length%4)o.push(f);return o.join("")},parse:function(t){var e=t.length,r=this._map,n=this._reverseMap;if(!n){n=this._reverseMap=[];for(var o=0;o<r.length;o++)n[r.charCodeAt(o)]=o}var a=r.charAt(64);if(a){var c=t.indexOf(a);-1!==c&&(e=c)}return i(t,e,n)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function i(t,e,r){for(var o=[],i=0,a=0;a<e;a++)if(a%4){var c=r[t.charCodeAt(a-1)]<<a%4*2,s=r[t.charCodeAt(a)]>>>6-a%4*2,u=c|s;o[i>>>2]|=u<<24-i%4*8,i++}return n.create(o,i)}}(),t.enc.Base64}))},fa0b:function(t,e,r){"use strict";r("c820")},fa93:function(t,e,r){"use strict";r("1a73")},fb70:function(t,e,r){(function(e,n){t.exports=n(r("bf17"))})(0,(function(t){(function(){var e=t,r=e.lib,n=r.Base,o=e.enc,i=o.Utf8,a=e.algo;a.HMAC=n.extend({init:function(t,e){t=this._hasher=new t.init,"string"==typeof e&&(e=i.parse(e));var r=t.blockSize,n=4*r;e.sigBytes>n&&(e=t.finalize(e)),e.clamp();for(var o=this._oKey=e.clone(),a=this._iKey=e.clone(),c=o.words,s=a.words,u=0;u<r;u++)c[u]^=1549556828,s[u]^=909522486;o.sigBytes=a.sigBytes=n,this.reset()},reset:function(){var t=this._hasher;t.reset(),t.update(this._iKey)},update:function(t){return this._hasher.update(t),this},finalize:function(t){var e=this._hasher,r=e.finalize(t);e.reset();var n=e.finalize(this._oKey.clone().concat(r));return n}})})()}))}})}));
|
|
35
35
|
//# sourceMappingURL=core.umd.min.js.map
|