From 09a1d1a0e5a4ceff45d9687be3f4d08d5d5f95e9 Mon Sep 17 00:00:00 2001 From: Akshay Ram Date: Mon, 11 Jul 2022 00:05:06 +0200 Subject: [PATCH] feat: update packages --- .github/workflows/release.yml | 32 + .releaserc | 17 + README.md | 7 - docs/bundle.js | 3 +- docs/bundle.js.LICENSE.txt | 266 + docs/index.html | 18 +- package-lock.json | 31191 ++++++++++++++++---------------- package.json | 24 +- webpack.config.js | 27 +- 9 files changed, 15812 insertions(+), 15773 deletions(-) create mode 100644 .github/workflows/release.yml create mode 100644 .releaserc create mode 100644 docs/bundle.js.LICENSE.txt diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 00000000..d3010807 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,32 @@ +name: Release + +on: + push: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: '16.x' + - name: Intall dependencies + run: npm install --frozen-lockfile + - name: Build lib + run: npm run lib + - name: Build docs + run: npm run docs:prod + - name: Deploy docs + run: | + git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git + npx gh-pages -d docs -u "github-actions-bot " + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Publish library + run: npm run publish:lib + env: + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.releaserc b/.releaserc new file mode 100644 index 00000000..85f3050e --- /dev/null +++ b/.releaserc @@ -0,0 +1,17 @@ +{ + "branches": [ + "main", + "next" + ], + "plugins": [ + "@semantic-release/commit-analyzer", + "@semantic-release/release-notes-generator", + [ + "@semantic-release/npm", + { + "npmPublish": true, + "tarballDir": "lib" + } + ] + ] +} diff --git a/README.md b/README.md index aad281df..19bd516d 100644 --- a/README.md +++ b/README.md @@ -7,13 +7,6 @@ It's a minimalistic React component for embedding a Microsoft PowerBI report, dashboard or tile into your React application. -This repository is maintained by: -- [Akshay Ram (akshay5995)](https://github.com/akshay5995) -- [Satya J (satya64)](https://github.com/satya64) -- [Muthu (muthu1712)](https://github.com/muthu1712) - -Existing users of the package please refer to Change Log [here](https://github.com/akshay5995/powerbi-report-component/wiki/Changelog) and please refer [here](https://github.com/akshay5995/powerbi-report-component/wiki/README-file-for--=-2.0.0) for the README for versions <=2.0.0 - ## Installation `npm i powerbi-report-component` diff --git a/docs/bundle.js b/docs/bundle.js index fd74a24b..895b744d 100644 --- a/docs/bundle.js +++ b/docs/bundle.js @@ -1 +1,2 @@ -!function(e){var r={};function a(n){if(r[n])return r[n].exports;var t=r[n]={i:n,l:!1,exports:{}};return e[n].call(t.exports,t,t.exports,a),t.l=!0,t.exports}a.m=e,a.c=r,a.d=function(n,t,e){a.o(n,t)||Object.defineProperty(n,t,{enumerable:!0,get:e})},a.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},a.t=function(t,n){if(1&n&&(t=a(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var e=Object.create(null);if(a.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var r in t)a.d(e,r,function(n){return t[n]}.bind(null,r));return e},a.n=function(n){var t=n&&n.__esModule?function(){return n.default}:function(){return n};return a.d(t,"a",t),t},a.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},a.p="",a(a.s=325)}([function(n,t,e){"use strict";n.exports=e(151)},function(n,t,e){var r;!function(){"use strict";var i={}.hasOwnProperty;function l(){for(var n=[],t=0;t=r.F1&&t<=r.F12)return!1;switch(t){case r.ALT:case r.CAPS_LOCK:case r.CONTEXT_MENU:case r.CTRL:case r.DOWN:case r.END:case r.ESC:case r.HOME:case r.INSERT:case r.LEFT:case r.MAC_FF_META:case r.META:case r.NUMLOCK:case r.NUM_CENTER:case r.PAGE_DOWN:case r.PAGE_UP:case r.PAUSE:case r.PRINT_SCREEN:case r.RIGHT:case r.SHIFT:case r.UP:case r.WIN_KEY:case r.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(n){if(n>=r.ZERO&&n<=r.NINE)return!0;if(n>=r.NUM_ZERO&&n<=r.NUM_MULTIPLY)return!0;if(n>=r.A&&n<=r.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===n)return!0;switch(n){case r.SPACE:case r.QUESTION_MARK:case r.NUM_PLUS:case r.NUM_MINUS:case r.NUM_PERIOD:case r.NUM_DIVISION:case r.SEMICOLON:case r.DASH:case r.EQUALS:case r.COMMA:case r.PERIOD:case r.SLASH:case r.APOSTROPHE:case r.SINGLE_QUOTE:case r.OPEN_SQUARE_BRACKET:case r.BACKSLASH:case r.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};t.a=r},function(n,t,e){"use strict";(function n(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(n){}})(),n.exports=e(152)},function(n,t,e){var r=e(155),a=e(156),o=e(157),i=e(159);n.exports=function(n,t){return r(n)||a(n,t)||o(n,t)||i()}},function(n,t,e){"use strict";t.__esModule=!0;var r,a=e(160),o=(r=a)&&r.__esModule?r:{default:r};t.default=o.default||function(n){for(var t=1;tn.length)&&(t=n.length);for(var e=0,r=new Array(t);en.length)&&(t=n.length);for(var e=0,r=new Array(t);en.length)&&(t=n.length);for(var e=0,r=new Array(t);ee.top&&e.right>e.left?e:null}function fn(n){var t,e,r;if(sn.isWindow(n)||9===n.nodeType){var a=sn.getWindow(n);t={left:sn.getWindowScrollLeft(a),top:sn.getWindowScrollTop(a)},e=sn.viewportWidth(a),r=sn.viewportHeight(a)}else t=sn.offset(n),e=sn.outerWidth(n),r=sn.outerHeight(n);return t.width=e,t.height=r,t}function bn(n,t){var e=t.charAt(0),r=t.charAt(1),a=n.width,o=n.height,i=n.left,l=n.top;return"c"===e?l+=o/2:"b"===e&&(l+=o),"c"===r?i+=a/2:"r"===r&&(i+=a),{left:i,top:l}}function mn(n,t,e,r,a){var o=bn(t,e[1]),i=bn(n,e[0]),l=[i.left-o.left,i.top-o.top];return{left:Math.round(n.left-l[0]+r[0]-a[0]),top:Math.round(n.top-l[1]+r[1]-a[1])}}function hn(n,t,e){return n.lefte.right}function gn(n,t,e){return n.tope.bottom}function yn(n,t,e){var r=[];return sn.each(n,function(n){r.push(n.replace(t,function(n){return e[n]}))}),r}function vn(n,t){return n[t]=-n[t],n}function xn(n,t){return(/%$/.test(n)?parseInt(n.substring(0,n.length-1),10)/100*t:parseInt(n,10))||0}function wn(n,t){n[0]=xn(n[0],t.width),n[1]=xn(n[1],t.height)}function kn(n,t,e,r){var a=e.points,o=e.offset||[0,0],i=e.targetOffset||[0,0],l=e.overflow,s=e.source||n;o=[].concat(o),i=[].concat(i);var c={},u=0,p=dn(s,!(!(l=l||{})||!l.alwaysByViewport)),d=fn(s);wn(o,d),wn(i,t);var f,b,m,h,g,y,v,x,w,k,O,E,S=mn(d,t,a,o,i),P=sn.merge(d,S);if(p&&(l.adjustX||l.adjustY)&&r){if(l.adjustX&&hn(S,d,p)){var j=yn(a,/[lr]/gi,{l:"r",r:"l"}),C=vn(o,0),_=vn(i,0),T=mn(d,t,j,C,_);O=d,E=p,(k=T).left>E.right||k.left+O.widthw.bottom||v.top+x.height=m.left&&g.left+y.width>m.right&&(y.width-=g.left+y.width-m.right),h.adjustX&&g.left+y.width>m.right&&(g.left=Math.max(m.right-y.width,m.left)),h.adjustY&&g.top=m.top&&g.top+y.height>m.bottom&&(y.height-=g.top+y.height-m.bottom),h.adjustY&&g.top+y.height>m.bottom&&(g.top=Math.max(m.bottom-y.height,m.top)),P=sn.mix(g,y))}return P.width!==d.width&&sn.css(s,"width",sn.width(s)+P.width-d.width),P.height!==d.height&&sn.css(s,"height",sn.height(s)+P.height-d.height),sn.offset(s,{left:P.left,top:P.top},{useCssRight:e.useCssRight,useCssBottom:e.useCssBottom,useCssTransform:e.useCssTransform,ignoreShake:e.ignoreShake}),{points:a,offset:o,targetOffset:i,overflow:c}}function On(n,t,e){var r,a,o,i,l=e.target||t;return kn(n,fn(l),e,(r=l,a=e.overflow&&e.overflow.alwaysByViewport,o=dn(r,a),i=fn(r),!(!o||i.left+i.width<=o.left||i.top+i.height<=o.top||i.left>=o.right||i.top>=o.bottom)))}On.__getOffsetParent=un,On.__getVisibleRectForElement=dn;var En=e(28);function Sn(n,t){return function(n){if(Array.isArray(n))return n}(n)||function(n,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(n)))return;var e=[],r=!0,a=!1,o=void 0;try{for(var i,l=n[Symbol.iterator]();!(r=(i=l.next()).done)&&(e.push(i.value),!t||e.length!==t);r=!0);}catch(n){a=!0,o=n}finally{try{r||null==l.return||l.return()}finally{if(a)throw o}}return e}(n,t)||function(n,t){if(!n)return;if("string"==typeof n)return Pn(n,t);var e=Object.prototype.toString.call(n).slice(8,-1);"Object"===e&&n.constructor&&(e=n.constructor.name);if("Map"===e||"Set"===e)return Array.from(n);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return Pn(n,t)}(n,t)||function(){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 Pn(n,t){(null==t||t>n.length)&&(t=n.length);for(var e=0,r=new Array(t);en.length)&&(t=n.length);for(var e=0,r=new Array(t);en.length)&&(t=n.length);for(var e=0,r=new Array(t);e=l.subMenuTitle.offsetWidth||(n.style.minWidth="".concat(l.subMenuTitle.offsetWidth,"px"))}},l.saveSubMenuTitle=function(n){l.subMenuTitle=n},l.getBaseProps=function(){var n=hn(l).props;return{mode:"horizontal"===n.mode?"vertical":n.mode,visible:l.props.isOpen,level:n.level+1,inlineIndent:n.inlineIndent,focusable:!1,onClick:l.onSubMenuClick,onSelect:l.onSelect,onDeselect:l.onDeselect,onDestroy:l.onDestroy,selectedKeys:n.selectedKeys,eventKey:"".concat(n.eventKey,"-menu-"),openKeys:n.openKeys,motion:n.motion,onOpenChange:l.onOpenChange,subMenuOpenDelay:n.subMenuOpenDelay,parentMenu:hn(l),subMenuCloseDelay:n.subMenuCloseDelay,forceSubMenuRender:n.forceSubMenuRender,triggerSubMenuAction:n.triggerSubMenuAction,builtinPlacements:n.builtinPlacements,defaultActiveFirst:n.store.getState().defaultActiveFirst[J(n.eventKey)],multiple:n.multiple,prefixCls:n.rootPrefixCls,id:l.internalMenuId,manualRef:l.saveMenuInstance,itemIcon:n.itemIcon,expandIcon:n.expandIcon,direction:n.direction}},l.getMotion=function(n,t){var e=hn(l).haveRendered,r=l.props,a=r.motion,o=r.rootPrefixCls;return xn({},a,{leavedClassName:"".concat(o,"-hidden"),removeOnLeave:!1,motionAppear:e||!t||"inline"!==n})};var t=n.store,e=n.eventKey,r=t.getState().defaultActiveFirst,a=l.isRootMenu=!1;return r&&(a=r[e]),kn(t,e,a),l}return n=i,(t=[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var n=this,t=this.props,e=t.mode,r=t.parentMenu,a=t.manualRef;a&&a(this),"horizontal"===e&&r.isRootMenu&&this.props.isOpen&&(this.minWidthTimeout=setTimeout(function(){return n.adjustWidth()},0))}},{key:"componentWillUnmount",value:function(){var n=this.props,t=n.onDestroy,e=n.eventKey;t&&t(e),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout)}},{key:"renderChildren",value:function(a){var o=this,i=this.getBaseProps(),n=this.getMotion(i.mode,i.visible);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||i.visible||i.forceSubMenuRender,!this.haveOpened)return P.a.createElement("div",null);var l=i.direction;return P.a.createElement(cn.b,Object.assign({visible:i.visible},n),function(n){var t=n.className,e=n.style,r=C()("".concat(i.prefixCls,"-sub"),t,wn({},"".concat(i.prefixCls,"-rtl"),"rtl"===l));return P.a.createElement(rt,Object.assign({},i,{id:o.internalMenuId,className:r,style:e}),a)})}},{key:"render",value:function(){var n,t=xn({},this.props),e=t.isOpen,r=this.getPrefixCls(),a="inline"===t.mode,o=C()(r,"".concat(r,"-").concat(t.mode),(wn(n={},t.className,!!t.className),wn(n,this.getOpenClassName(),e),wn(n,this.getActiveClassName(),t.active||e&&!a),wn(n,this.getDisabledClassName(),t.disabled),wn(n,this.getSelectedClassName(),this.isChildrenSelected()),n));this.internalMenuId||(t.eventKey?this.internalMenuId="".concat(t.eventKey,"$Menu"):(On+=1,this.internalMenuId="$__$".concat(On,"$Menu")));var i={},l={},s={};t.disabled||(i={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},l={onClick:this.onTitleClick},s={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var c={},u=t.direction;a&&("rtl"===u?c.paddingRight=t.inlineIndent*t.level:c.paddingLeft=t.inlineIndent*t.level);var p={};this.props.isOpen&&(p={"aria-owns":this.internalMenuId});var d=null;"horizontal"!==t.mode&&(d=this.props.expandIcon,"function"==typeof this.props.expandIcon&&(d=P.a.createElement(this.props.expandIcon,xn({},this.props))));var f=P.a.createElement("div",Object.assign({ref:this.saveSubMenuTitle,style:c,className:"".concat(r,"-title"),role:"button"},s,l,{"aria-expanded":e},p,{"aria-haspopup":"true",title:"string"==typeof t.title?t.title:void 0}),t.title,d||P.a.createElement("i",{className:"".concat(r,"-arrow")})),b=this.renderChildren(t.children),m=t.parentMenu.isRootMenu?t.parentMenu.props.getPopupContainer:function(n){return n.parentNode},h=En[t.mode],g=t.popupOffset?{offset:t.popupOffset}:{},y="inline"===t.mode?"":t.popupClassName;y+="rtl"===u?" ".concat(r,"-rtl"):"";var v=t.disabled,x=t.triggerSubMenuAction,w=t.subMenuOpenDelay,k=t.forceSubMenuRender,O=t.subMenuCloseDelay,E=t.builtinPlacements;rn.forEach(function(n){return delete t[n]}),delete t.onClick;var S="rtl"===u?Object.assign({},dn,E):Object.assign({},pn,E);return delete t.direction,P.a.createElement("li",Object.assign({},t,i,{className:o,role:"menuitem"}),a&&f,a&&b,!a&&P.a.createElement(sn.a,{prefixCls:r,popupClassName:C()("".concat(r,"-popup"),y),getPopupContainer:m,builtinPlacements:S,popupPlacement:h,popupVisible:e,popupAlign:g,popup:b,action:v?[]:[x],mouseEnterDelay:w,mouseLeaveDelay:O,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:k},f))}}])&&bn(n.prototype,t),e&&bn(n,e),i}();Sn.defaultProps={onMouseEnter:Z,onMouseLeave:Z,onTitleMouseEnter:Z,onTitleMouseLeave:Z,onTitleClick:Z,manualRef:Z,mode:"vertical",title:""};var Pn=w(function(n,t){var e=n.openKeys,r=n.activeKey,a=n.selectedKeys,o=t.eventKey,i=t.subMenuKey;return{isOpen:-1n.length)&&(t=n.length);for(var e=0,r=new Array(t);et+.5&&(e=-1,g.menuItemSizes.forEach(function(n){(r+=n)+g.overflowedIndicatorWidth<=t&&(e+=1)})),g.setState({lastVisibleIndex:e})}}},g}return n=a,(t=[{key:"componentDidMount",value:function(){var t=this;if(this.setChildrenWidthAndResize(),1===this.props.level&&"horizontal"===this.props.mode){var n=on.a.findDOMNode(this);if(!n)return;this.resizeObserver=new ln.a(function(n){n.forEach(t.setChildrenWidthAndResize)}),[].slice.call(n.children).concat(n).forEach(function(n){t.resizeObserver.observe(n)}),"undefined"!=typeof MutationObserver&&(this.mutationObserver=new MutationObserver(function(){t.resizeObserver.disconnect(),[].slice.call(n.children).concat(n).forEach(function(n){t.resizeObserver.observe(n)}),t.setChildrenWidthAndResize()}),this.mutationObserver.observe(n,{attributes:!1,childList:!0,subTree:!1}))}}},{key:"componentWillUnmount",value:function(){this.resizeObserver&&this.resizeObserver.disconnect(),this.mutationObserver&&this.mutationObserver.disconnect()}},{key:"renderChildren",value:function(i){var l=this,s=this.state.lastVisibleIndex;return(i||[]).reduce(function(n,t,e){var r=t;if("horizontal"!==l.props.mode)return[].concat(_n(n),[r]);var a=l.getOverflowedSubMenuItem(t.props.eventKey,[]);void 0!==s&&-1!==l.props.className.indexOf("".concat(l.props.prefixCls,"-root"))&&(sdocument.F=Object<\/script>"),n.close(),u=n.F;e--;)delete u[c][l[e]];return u()};n.exports=Object.create||function(n,t){var e;return null!==n?(a[c]=o(n),e=new a,a[c]=null,e[s]=n):e=u(),void 0===t?e:i(e,t)}},function(n,t,e){var r=e(35).f,a=e(36),o=e(45)("toStringTag");n.exports=function(n,t,e){n&&!a(n=e?n:n.prototype,o)&&r(n,o,{configurable:!0,value:t})}},function(n,t,e){t.f=e(45)},function(n,t,e){var r=e(25),a=e(26),o=e(61),i=e(90),l=e(35).f;n.exports=function(n){var t=a.Symbol||(a.Symbol=!o&&r.Symbol||{});"_"==n.charAt(0)||n in t||l(t,n,{value:i.f(n)})}},function(n,t,e){var r=e(46)(e(20),"Map");n.exports=r},function(n,t,e){var r=e(20).Symbol;n.exports=r},function(n,t){var e=Array.isArray;n.exports=e},function(n,t,e){"use strict";var r=this&&this.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(t,"__esModule",{value:!0});var a=r(e(170));t.generate=a.default;var o={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"};t.presetPrimaryColors=o;var i={};t.presetPalettes=i,Object.keys(o).forEach(function(n){i[n]=a.default(o[n]),i[n].primary=i[n][5]});var l=i.red;t.red=l;var s=i.volcano;t.volcano=s;var c=i.gold;t.gold=c;var u=i.orange;t.orange=u;var p=i.yellow;t.yellow=p;var d=i.lime;t.lime=d;var f=i.green;t.green=f;var b=i.cyan;t.cyan=b;var m=i.blue;t.blue=m;var h=i.geekblue;t.geekblue=h;var g=i.purple;t.purple=g;var y=i.magenta;t.magenta=y;var v=i.grey;t.grey=v},function(n,t){var l=[],s=[];function e(n,t){if(t=t||{},void 0===n)throw new Error("insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).");var e,r,a=!0===t.prepend?"prepend":"append",o=void 0!==t.container?t.container:document.querySelector("head"),i=l.indexOf(o);return-1===i&&(i=l.push(o)-1,s[i]={}),void 0!==s[i]&&void 0!==s[i][a]?e=s[i][a]:(e=s[i][a]=((r=document.createElement("style")).setAttribute("type","text/css"),r),"prepend"==a?o.insertBefore(e,o.childNodes[0]):o.appendChild(e)),65279===n.charCodeAt(0)&&(n=n.substr(1,n.length)),e.styleSheet?e.styleSheet.cssText+=n:e.textContent+=n,e}n.exports=e,n.exports.insertCss=e},function(n,t,e){"use strict";var r=e(227),a={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},p={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};function d(n){return r.isMemo(n)?o:i[n.$$typeof]||a}i[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i[r.Memo]=o;var f=Object.defineProperty,b=Object.getOwnPropertyNames,m=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,g=Object.getPrototypeOf,y=Object.prototype;n.exports=function n(t,e,r){if("string"!=typeof e){if(y){var a=g(e);a&&a!==y&&n(t,a,r)}var o=b(e);m&&(o=o.concat(m(e)));for(var i=d(t),l=d(e),s=0;sa;)i(r,e=t[a++])&&(~s(o,e)||o.push(e));return o}},function(n,t,e){var r=e(105);n.exports=Object("z").propertyIsEnumerable(0)?Object:function(n){return"String"==r(n)?n.split(""):Object(n)}},function(n,t){var e={}.toString;n.exports=function(n){return e.call(n).slice(8,-1)}},function(n,t,e){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var u=e(85);function p(n,t){if(null==n)return{};var e,r,a=function(n,t){if(null==n)return{};var e,r,a={},o=Object.keys(n);for(r=0;r()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},d={integer:function(n){return d.number(n)&&parseInt(n,10)===n},float:function(n){return d.number(n)&&!d.integer(n)},array:function(n){return Array.isArray(n)},regexp:function(n){if(n instanceof RegExp)return!0;try{return!!new RegExp(n)}catch(n){return!1}},date:function(n){return"function"==typeof n.getTime&&"function"==typeof n.getMonth&&"function"==typeof n.getYear},number:function(n){return!isNaN(n)&&"number"==typeof n},object:function(n){return"object"==typeof n&&!d.array(n)},method:function(n){return"function"==typeof n},email:function(n){return"string"==typeof n&&!!n.match(r.email)&&n.length<255},url:function(n){return"string"==typeof n&&!!n.match(r.url)},hex:function(n){return"string"==typeof n&&!!n.match(r.hex)}};var v={required:c,whitespace:function(n,t,e,r,a){!/^\s+$/.test(t)&&""!==t||r.push(h(a.messages.whitespace,n.fullField))},type:function(n,t,e,r,a){if(n.required&&void 0===t)c(n,t,e,r,a);else{var o=n.type;-1<["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(o)?d[o](t)||r.push(h(a.messages.types[o],n.fullField,n.type)):o&&typeof t!==n.type&&r.push(h(a.messages.types[o],n.fullField,n.type))}},range:function(n,t,e,r,a){var o="number"==typeof n.len,i="number"==typeof n.min,l="number"==typeof n.max,s=t,c=null,u="number"==typeof t,p="string"==typeof t,d=Array.isArray(t);if(u?c="number":p?c="string":d&&(c="array"),!c)return!1;d&&(s=t.length),p&&(s=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),o?s!==n.len&&r.push(h(a.messages[c].len,n.fullField,n.len)):i&&!l&&sn.max?r.push(h(a.messages[c].max,n.fullField,n.max)):i&&l&&(sn.max)&&r.push(h(a.messages[c].range,n.fullField,n.min,n.max))},enum:function(n,t,e,r,a){n.enum=Array.isArray(n.enum)?n.enum:[],-1===n.enum.indexOf(t)&&r.push(h(a.messages.enum,n.fullField,n.enum.join(", ")))},pattern:function(n,t,e,r,a){if(n.pattern)if(n.pattern instanceof RegExp)n.pattern.lastIndex=0,n.pattern.test(t)||r.push(h(a.messages.pattern.mismatch,n.fullField,t,n.pattern));else if("string"==typeof n.pattern){new RegExp(n.pattern).test(t)||r.push(h(a.messages.pattern.mismatch,n.fullField,t,n.pattern))}}};function x(n,t,e,r,a){var o=n.type,i=[];if(n.required||!n.required&&r.hasOwnProperty(n.field)){if(l(t,o)&&!n.required)return e();v.required(n,t,r,i,a,o),l(t,o)||v.type(n,t,r,i,a)}e(i)}var w={string:function(n,t,e,r,a){var o=[];if(n.required||!n.required&&r.hasOwnProperty(n.field)){if(l(t,"string")&&!n.required)return e();v.required(n,t,r,o,a,"string"),l(t,"string")||(v.type(n,t,r,o,a),v.range(n,t,r,o,a),v.pattern(n,t,r,o,a),!0===n.whitespace&&v.whitespace(n,t,r,o,a))}e(o)},method:function(n,t,e,r,a){var o=[];if(n.required||!n.required&&r.hasOwnProperty(n.field)){if(l(t)&&!n.required)return e();v.required(n,t,r,o,a),void 0!==t&&v.type(n,t,r,o,a)}e(o)},number:function(n,t,e,r,a){var o=[];if(n.required||!n.required&&r.hasOwnProperty(n.field)){if(""===t&&(t=void 0),l(t)&&!n.required)return e();v.required(n,t,r,o,a),void 0!==t&&(v.type(n,t,r,o,a),v.range(n,t,r,o,a))}e(o)},boolean:function(n,t,e,r,a){var o=[];if(n.required||!n.required&&r.hasOwnProperty(n.field)){if(l(t)&&!n.required)return e();v.required(n,t,r,o,a),void 0!==t&&v.type(n,t,r,o,a)}e(o)},regexp:function(n,t,e,r,a){var o=[];if(n.required||!n.required&&r.hasOwnProperty(n.field)){if(l(t)&&!n.required)return e();v.required(n,t,r,o,a),l(t)||v.type(n,t,r,o,a)}e(o)},integer:function(n,t,e,r,a){var o=[];if(n.required||!n.required&&r.hasOwnProperty(n.field)){if(l(t)&&!n.required)return e();v.required(n,t,r,o,a),void 0!==t&&(v.type(n,t,r,o,a),v.range(n,t,r,o,a))}e(o)},float:function(n,t,e,r,a){var o=[];if(n.required||!n.required&&r.hasOwnProperty(n.field)){if(l(t)&&!n.required)return e();v.required(n,t,r,o,a),void 0!==t&&(v.type(n,t,r,o,a),v.range(n,t,r,o,a))}e(o)},array:function(n,t,e,r,a){var o=[];if(n.required||!n.required&&r.hasOwnProperty(n.field)){if(l(t,"array")&&!n.required)return e();v.required(n,t,r,o,a,"array"),l(t,"array")||(v.type(n,t,r,o,a),v.range(n,t,r,o,a))}e(o)},object:function(n,t,e,r,a){var o=[];if(n.required||!n.required&&r.hasOwnProperty(n.field)){if(l(t)&&!n.required)return e();v.required(n,t,r,o,a),void 0!==t&&v.type(n,t,r,o,a)}e(o)},enum:function(n,t,e,r,a){var o=[];if(n.required||!n.required&&r.hasOwnProperty(n.field)){if(l(t)&&!n.required)return e();v.required(n,t,r,o,a),void 0!==t&&v.enum(n,t,r,o,a)}e(o)},pattern:function(n,t,e,r,a){var o=[];if(n.required||!n.required&&r.hasOwnProperty(n.field)){if(l(t,"string")&&!n.required)return e();v.required(n,t,r,o,a),l(t,"string")||v.pattern(n,t,r,o,a)}e(o)},date:function(n,t,e,r,a){var o=[];if(n.required||!n.required&&r.hasOwnProperty(n.field)){if(l(t)&&!n.required)return e();var i;if(v.required(n,t,r,o,a),!l(t))i="number"==typeof t?new Date(t):t,v.type(n,i,r,o,a),i&&v.range(n,i.getTime(),r,o,a)}e(o)},url:x,hex:x,email:x,required:function(n,t,e,r,a){var o=[],i=Array.isArray(t)?"array":typeof t;v.required(n,t,r,o,a,i),e(o)},any:function(n,t,e,r,a){var o=[];if(n.required||!n.required&&r.hasOwnProperty(n.field)){if(l(t)&&!n.required)return e();v.required(n,t,r,o,a)}e(o)}};function k(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var n=JSON.parse(JSON.stringify(this));return n.clone=this.clone,n}}}var O=k();function E(n){this.rules=null,this._messages=O,this.define(n)}E.prototype={messages:function(n){return n&&(this._messages=p(k(),n)),this._messages},define:function(n){if(!n)throw new Error("Cannot configure a schema with no rules");if("object"!=typeof n||Array.isArray(n))throw new Error("Rules must be an object");var t,e;for(t in this.rules={},n)n.hasOwnProperty(t)&&(e=n[t],this.rules[t]=Array.isArray(e)?e:[e])},validate:function(r,n,t){var a=this;void 0===n&&(n={}),void 0===t&&(t=function(){});var o,i,l=r,d=n,s=t;if("function"==typeof d&&(s=d,d={}),!this.rules||0===Object.keys(this.rules).length)return s&&s(),Promise.resolve();if(d.messages){var e=this.messages();e===O&&(e=k()),p(e,d.messages),d.messages=e}else d.messages=this.messages();var c={};(d.keys||Object.keys(this.rules)).forEach(function(e){o=a.rules[e],i=l[e],o.forEach(function(n){var t=n;"function"==typeof t.transform&&(l===r&&(l=b({},l)),i=l[e]=t.transform(i)),(t="function"==typeof t?{validator:t}:b({},t)).validator=a.getValidationMethod(t),t.field=e,t.fullField=t.fullField||e,t.type=a.getType(t),t.validator&&(c[e]=c[e]||[],c[e].push({rule:t,value:i,source:l,field:e}))})});var f={};return u(c,d,function(l,s){var n,c=l.rule,u=!("object"!==c.type&&"array"!==c.type||"object"!=typeof c.fields&&"object"!=typeof c.defaultField);function p(n,t){return b(b({},t),{},{fullField:c.fullField+"."+n})}function t(n){void 0===n&&(n=[]);var e=n;if(Array.isArray(e)||(e=[e]),!d.suppressWarning&&e.length&&E.warning("async-validator:",e),e.length&&c.message&&(e=[].concat(c.message)),e=e.map(y(c)),d.first&&e.length)return f[c.field]=1,s(e);if(u){if(c.required&&!l.value)return c.message?e=[].concat(c.message).map(y(c)):d.error&&(e=[d.error(c,h(d.messages.required,c.field))]),s(e);var t={};if(c.defaultField)for(var r in l.value)l.value.hasOwnProperty(r)&&(t[r]=c.defaultField);for(var a in t=b(b({},t),l.rule.fields))if(t.hasOwnProperty(a)){var o=Array.isArray(t[a])?t[a]:[t[a]];t[a]=o.map(p.bind(null,a))}var i=new E(t);i.messages(d.messages),l.rule.options&&(l.rule.options.messages=d.messages,l.rule.options.error=d.error),i.validate(l.value,l.rule.options||d,function(n){var t=[];e&&e.length&&t.push.apply(t,e),n&&n.length&&t.push.apply(t,n),s(t.length?t:null)})}else s(e)}u=u&&(c.required||!c.required&&l.value),c.field=l.field,c.asyncValidator?n=c.asyncValidator(c,l.value,t,l.source,d):c.validator&&(!0===(n=c.validator(c,l.value,t,l.source,d))?t():!1===n?t(c.message||c.field+" fails"):n instanceof Array?t(n):n instanceof Error&&t(n.message)),n&&n.then&&n.then(function(){return t()},function(n){return t(n)})},function(n){!function(n){var t,e,r=[],a={};for(t=0;tn.length)&&(t=n.length);for(var e=0,r=new Array(t);en.length)&&(t=n.length);for(var e=0,r=new Array(t);ey&&(r="".concat(a.slice(0,y),"..."))}return function(t){for(var n=1;nn.length)&&(t=n.length);for(var e=0,r=new Array(t);en.length)&&(t=n.length);for(var e=0,r=new Array(t);en.length)&&(t=n.length);for(var e=0,r=new Array(t);e children");r=n}}),r}var O,E=e(5),S=e.n(E),P=e(99),j={isAppearSupported:function(n){return n.transitionName&&n.transitionAppear||n.animation.appear},isEnterSupported:function(n){return n.transitionName&&n.transitionEnter||n.animation.enter},isLeaveSupported:function(n){return n.transitionName&&n.transitionLeave||n.animation.leave},allowAppearCallback:function(n){return n.transitionAppear||n.animation.appear},allowEnterCallback:function(n){return n.transitionEnter||n.animation.enter},allowLeaveCallback:function(n){return n.transitionLeave||n.animation.leave}},C={enter:"transitionEnter",appear:"transitionAppear",leave:"transitionLeave"},_=(O=h.a.Component,b()(T,O),c()(T,[{key:"componentWillUnmount",value:function(){this.stop()}},{key:"componentWillEnter",value:function(n){j.isEnterSupported(this.props)?this.transition("enter",n):n()}},{key:"componentWillAppear",value:function(n){j.isAppearSupported(this.props)?this.transition("appear",n):n()}},{key:"componentWillLeave",value:function(n){j.isLeaveSupported(this.props)?this.transition("leave",n):n()}},{key:"transition",value:function(n,t){var e=this,r=S.a.findDOMNode(this),a=this.props,o=a.transitionName,i="object"==typeof o;function l(){e.stopper=null,t()}if(this.stop(),(P.b||!a.animation[n])&&o&&a[C[n]]){var s=i?o[n]:o+"-"+n,c=s+"-active";i&&o[n+"Active"]&&(c=o[n+"Active"]),this.stopper=Object(P.a)(r,{name:s,active:c},l)}else this.stopper=a.animation[n](r,l)}},{key:"stop",value:function(){var n=this.stopper;n&&(this.stopper=null,n.stop())}},{key:"render",value:function(){return this.props.children}}]),T);function T(){return l()(this,T),p()(this,(T.__proto__||Object.getPrototypeOf(T)).apply(this,arguments))}_.propTypes={children:y.a.any,animation:y.a.any,transitionName:y.a.any};var z=_,V="rc_animate_"+Date.now();function M(n){var t=n.children;return h.a.isValidElement(t)&&!t.key?h.a.cloneElement(t,{key:V}):t}function A(){}var R,I=(R=h.a.Component,b()(N,R),c()(N,[{key:"componentDidMount",value:function(){var t=this,e=this.props.showProp,n=this.state.children;e&&(n=n.filter(function(n){return!!n.props[e]})),n.forEach(function(n){n&&t.performAppear(n.key)})}},{key:"componentWillReceiveProps",value:function(n){var a=this,o=x(M(this.nextProps=n)),t=this.props;t.exclusive&&Object.keys(this.currentlyAnimatingKeys).forEach(function(n){a.stop(n)});var e,r,i,l,s=t.showProp,c=this.currentlyAnimatingKeys,u=t.exclusive?x(M(t)):this.state.children,p=[];s?(u.forEach(function(n){var t=n&&w(o,n.key),e=void 0;(e=t&&t.props[s]||!n.props[s]?t:h.a.cloneElement(t||n,d()({},s,!0)))&&p.push(e)}),o.forEach(function(n){n&&w(u,n.key)||p.push(n)})):(e=o,r=[],i={},l=[],u.forEach(function(n){n&&w(e,n.key)?l.length&&(i[n.key]=l,l=[]):l.push(n)}),e.forEach(function(n){n&&Object.prototype.hasOwnProperty.call(i,n.key)&&(r=r.concat(i[n.key])),r.push(n)}),p=r=r.concat(l)),this.setState({children:p}),o.forEach(function(n){var t=n&&n.key;if(!n||!c[t]){var e=n&&w(u,t);if(s){var r=n.props[s];e?!k(u,t,s)&&r&&a.keysToEnter.push(t):r&&a.keysToEnter.push(t)}else e||a.keysToEnter.push(t)}}),u.forEach(function(n){var t=n&&n.key;if(!n||!c[t]){var e=n&&w(o,t);if(s){var r=n.props[s];e?!k(o,t,s)&&r&&a.keysToLeave.push(t):r&&a.keysToLeave.push(t)}else e||a.keysToLeave.push(t)}})}},{key:"componentDidUpdate",value:function(){var n=this.keysToEnter;this.keysToEnter=[],n.forEach(this.performEnter);var t=this.keysToLeave;this.keysToLeave=[],t.forEach(this.performLeave)}},{key:"isValidChildByKey",value:function(n,t){var e=this.props.showProp;return e?k(n,t,e):w(n,t)}},{key:"stop",value:function(n){delete this.currentlyAnimatingKeys[n];var t=this.childrenRefs[n];t&&t.stop()}},{key:"render",value:function(){var e=this,n=this.props;this.nextProps=n;var t=this.state.children,r=null;t&&(r=t.map(function(t){if(null==t)return t;if(!t.key)throw new Error("must set key for children");return h.a.createElement(z,{key:t.key,ref:function(n){e.childrenRefs[t.key]=n},animation:n.animation,transitionName:n.transitionName,transitionEnter:n.transitionEnter,transitionAppear:n.transitionAppear,transitionLeave:n.transitionLeave},t)}));var a=n.component;if(a){var o=n;return"string"==typeof a&&(o=i()({className:n.className,style:n.style},n.componentProps)),h.a.createElement(a,o,r)}return r[0]||null}}]),N);function N(n){l()(this,N);var t=p()(this,(N.__proto__||Object.getPrototypeOf(N)).call(this,n));return D.call(t),t.currentlyAnimatingKeys={},t.keysToEnter=[],t.keysToLeave=[],t.state={children:x(M(n))},t.childrenRefs={},t}I.isAnimate=!0,I.propTypes={className:y.a.string,style:y.a.object,component:y.a.any,componentProps:y.a.object,animation:y.a.object,transitionName:y.a.oneOfType([y.a.string,y.a.object]),transitionEnter:y.a.bool,transitionAppear:y.a.bool,exclusive:y.a.bool,transitionLeave:y.a.bool,onEnd:y.a.func,onEnter:y.a.func,onLeave:y.a.func,onAppear:y.a.func,showProp:y.a.string,children:y.a.node},I.defaultProps={animation:{},component:"span",componentProps:{},transitionEnter:!0,transitionLeave:!0,transitionAppear:!1,onEnd:A,onEnter:A,onLeave:A,onAppear:A};var D=function(){var s=this;this.performEnter=function(n){s.childrenRefs[n]&&(s.currentlyAnimatingKeys[n]=!0,s.childrenRefs[n].componentWillEnter(s.handleDoneAdding.bind(s,n,"enter")))},this.performAppear=function(n){s.childrenRefs[n]&&(s.currentlyAnimatingKeys[n]=!0,s.childrenRefs[n].componentWillAppear(s.handleDoneAdding.bind(s,n,"appear")))},this.handleDoneAdding=function(n,t){var e=s.props;if(delete s.currentlyAnimatingKeys[n],!e.exclusive||e===s.nextProps){var r=x(M(e));s.isValidChildByKey(r,n)?"appear"===t?j.allowAppearCallback(e)&&(e.onAppear(n),e.onEnd(n,!0)):j.allowEnterCallback(e)&&(e.onEnter(n),e.onEnd(n,!0)):s.performLeave(n)}},this.performLeave=function(n){s.childrenRefs[n]&&(s.currentlyAnimatingKeys[n]=!0,s.childrenRefs[n].componentWillLeave(s.handleDoneLeaving.bind(s,n)))},this.handleDoneLeaving=function(n){var t=s.props;if(delete s.currentlyAnimatingKeys[n],!t.exclusive||t===s.nextProps){var e,r,a,o,i=x(M(t));if(s.isValidChildByKey(i,n))s.performEnter(n);else{var l=function(){j.allowLeaveCallback(t)&&(t.onLeave(n),t.onEnd(n,!1))};e=s.state.children,r=i,a=t.showProp,(o=e.length===r.length)&&e.forEach(function(n,t){var e=r[t];n&&e&&(n&&!e||!n&&e||n.key!==e.key||a&&n.props[a]!==e.props[a])&&(o=!1)}),o?l():s.setState({children:i},l)}}}};t.a=v(I)},function(n,t,e){"use strict";var P=e(0),r=e(1),j=e.n(r),a=e(11),o=e.n(a);function l(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),e.push.apply(e,r)}return e}function s(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}function C(n){var t=n.height,e=n.offset,r=n.children,a=n.prefixCls,o={},i={display:"flex",flexDirection:"column"};return void 0!==e&&(o={height:t,position:"relative",overflow:"hidden"},i=function(t){for(var n=1;nS.listRef.current.scrollTop+v&&(s="bottom")),"top"===s?S.listRef.current.scrollTop=u:"bottom"===s&&(S.listRef.current.scrollTop=u-(v-c))}}}else S.listRef.current.scrollTop=E})},S.renderChildren=function(n,o,i){var l=S.state.status;return n.map(function(n,t){var e=o+t,r=i(n,e,{style:"MEASURE_START"===l?{visibility:"hidden"}:{}}),a=S.getIndexKey(e);return P.cloneElement(r,{key:a,ref:function(n){S.itemElements[a]=n}})})},S.cachedProps=n,S.state={status:"NONE",scrollTop:null,itemIndex:0,itemOffsetPtg:0,startIndex:0,endIndex:0,startItemTop:0,isVirtual:H(n.height,n.itemHeight,n.data.length,n.virtual),itemCount:n.data.length},S}var n,e,r;return function(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&f(n,t)}(t,P["Component"]),n=t,r=[{key:"getDerivedStateFromProps",value:function(n){return n.disabled?null:{itemCount:n.data.length}}}],(e=[{key:"componentDidMount",value:function(){this.listRef.current&&(this.listRef.current.scrollTop=0,this.onScroll(null))}},{key:"componentDidUpdate",value:function(){var t=this,n=this.state.status,e=this.props,r=e.data,a=e.height,o=e.itemHeight,i=e.disabled,l=e.onSkipRender,s=e.virtual,c=this.cachedProps.data||[],u=null;if(c.length!==r.length){var p=function(n,t,e){var r,a,o=n.length,i=t.length;if(0===o&&0===i)return null;a=oc.length){var d=this.state,f=d.startIndex,b=d.endIndex;l&&(null===u||u