@ccw-api/api 0.10.0 → 0.10.2

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.
@@ -6,7 +6,7 @@ var ccwApi=(()=>{var qi=Object.create;var tt=Object.defineProperty;var Ii=Object
6
6
  `);return a===-1?"":n.stack.slice(a+1)})();try{if(!o.stack)o.stack=s;else if(s){let a=s.indexOf(`
7
7
  `),i=a===-1?-1:s.indexOf(`
8
8
  `,a+1),p=i===-1?"":s.slice(i+1);String(o.stack).endsWith(p)||(o.stack+=`
9
- `+s)}}catch{}}throw o}}_request(e,r){typeof e=="string"?(r=r||{},r.url=e):r=e||{},r=de(this.defaults,r);let{transitional:o,paramsSerializer:n,headers:s}=r;o!==void 0&&Ye.assertOptions(o,{silentJSONParsing:ie.transitional(ie.boolean),forcedJSONParsing:ie.transitional(ie.boolean),clarifyTimeoutError:ie.transitional(ie.boolean),legacyInterceptorReqResOrdering:ie.transitional(ie.boolean),advertiseZstdAcceptEncoding:ie.transitional(ie.boolean)},!1),n!=null&&(b.isFunction(n)?r.paramsSerializer={serialize:n}:Ye.assertOptions(n,{encode:ie.function,serialize:ie.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),Ye.assertOptions(r,{baseUrl:ie.spelling("baseURL"),withXsrfToken:ie.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let a=s&&b.merge(s.common,s[r.method]);s&&b.forEach(["delete","get","head","post","put","patch","query","common"],g=>{delete s[g]}),r.headers=Q.concat(a,s);let i=[],p=!0;this.interceptors.request.forEach(function(y){if(typeof y.runWhen=="function"&&y.runWhen(r)===!1)return;p=p&&y.synchronous;let A=r.transitional||qe;A&&A.legacyInterceptorReqResOrdering?i.unshift(y.fulfilled,y.rejected):i.push(y.fulfilled,y.rejected)});let u=[];this.interceptors.response.forEach(function(y){u.push(y.fulfilled,y.rejected)});let c,m=0,d;if(!p){let g=[mt.bind(this),void 0];for(g.unshift(...i),g.push(...u),d=g.length,c=Promise.resolve(r);m<d;)c=c.then(g[m++],g[m++]);return c}d=i.length;let h=r;for(;m<d;){let g=i[m++],y=i[m++];try{h=g(h)}catch(A){y.call(this,A);break}}try{c=mt.call(this,h)}catch(g){return Promise.reject(g)}for(m=0,d=u.length;m<d;)c=c.then(u[m++],u[m++]);return c}getUri(e){e=de(this.defaults,e);let r=Xe(e.baseURL,e.url,e.allowAbsoluteUrls);return Ke(r,e.params,e.paramsSerializer)}};b.forEach(["delete","get","head","options"],function(e){Me.prototype[e]=function(r,o){return this.request(de(o||{},{method:e,url:r,data:(o||{}).data}))}});b.forEach(["post","put","patch","query"],function(e){function r(o){return function(s,a,i){return this.request(de(i||{},{method:e,headers:o?{"Content-Type":"multipart/form-data"}:{},url:s,data:a}))}}Me.prototype[e]=r(),e!=="query"&&(Me.prototype[e+"Form"]=r(!0))});var Ze=Me;var wr=class t{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(s){r=s});let o=this;this.promise.then(n=>{if(!o._listeners)return;let s=o._listeners.length;for(;s-- >0;)o._listeners[s](n);o._listeners=null}),this.promise.then=n=>{let s,a=new Promise(i=>{o.subscribe(i),s=i}).then(n);return a.cancel=function(){o.unsubscribe(s)},a},e(function(s,a,i){o.reason||(o.reason=new le(s,a,i),r(o.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let r=this._listeners.indexOf(e);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){let e=new AbortController,r=o=>{e.abort(o)};return this.subscribe(r),e.signal.unsubscribe=()=>this.unsubscribe(r),e.signal}static source(){let e;return{token:new t(function(n){e=n}),cancel:e}}},Oo=wr;function Fr(t){return function(r){return t.apply(null,r)}}function Sr(t){return b.isObject(t)&&t.isAxiosError===!0}var _r={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(_r).forEach(([t,e])=>{_r[e]=t});var ko=_r;function Lo(t){let e=new Ze(t),r=je(Ze.prototype.request,e);return b.extend(r,Ze.prototype,e,{allOwnKeys:!0}),b.extend(r,e,null,{allOwnKeys:!0}),r.create=function(n){return Lo(de(t,n))},r}var ee=Lo(Oe);ee.Axios=Ze;ee.CanceledError=le;ee.CancelToken=Oo;ee.isCancel=$e;ee.VERSION=Le;ee.toFormData=be;ee.AxiosError=M;ee.Cancel=ee.CanceledError;ee.all=function(e){return Promise.all(e)};ee.spread=Fr;ee.isAxiosError=Sr;ee.mergeConfig=de;ee.AxiosHeaders=Q;ee.formToJSON=t=>ut(b.isHTMLForm(t)?new FormData(t):t);ee.getAdapter=lt.getAdapter;ee.HttpStatusCode=ko;ee.default=ee;var Mo=ee;var{Axios:sl,AxiosError:il,CanceledError:al,isCancel:cl,CancelToken:pl,VERSION:xl,all:ul,Cancel:dl,isAxiosError:fl,spread:ll,toFormData:ml,AxiosHeaders:gl,HttpStatusCode:hl,formToJSON:Al,getAdapter:yl,mergeConfig:bl,create:Uo}=Mo;var Ir=Mi($0(),1),{HmacMD5:hc}=Ir.default,qr="",Ac=Ir.default.lib.WordArray.random(16).toString();async function J0(t){if(qr)return qr;let e=await fetch("https://community-web.ccw.site/health/check",{method:"POST",headers:t,credentials:"include"}).then(r=>r.json());if(e.code!=="200")throw new Error("Request failed: failed to health check",{cause:e});return qr=e.body.map(({traceId:r})=>r[parseInt(r[0],16)+1]).reverse().join(""),J0(t)}async function yc(t,e=Date.now()){t.headers.Cookie=tr?`token=${tr}`:"",t.headers["Guest-Id"]=tr?"":Ac;let r=await J0(t.headers);return t.headers.B=`${e}`,t.headers.A=hc(`ccw${JSON.stringify(t.data)}${e}`,r).toString(),t}async function bc(t){if(t.data.code=="200")return t;throw new Error(`ccw axios Request failed: ${t.data.msg}`,{cause:t})}var tr="";function X0(t){tr=t}var l=Uo({baseURL:"https://community-web.ccw.site/",withCredentials:!0});l.interceptors.request.use(yc);l.interceptors.response.use(bc);var rr=l;var Rc="https://sso.ccw.site/web/auth/login-by-password";async function Y0(t,e,r={device:"Node",browser:"Node.js"}){let o={loginKey:t,password:e,clientCode:"STUDY_COMMUNITY",extra:JSON.stringify({...r,scene:null})},{extra:n,...s}=await l.post(Rc,o).then(i=>i.data.body),a=JSON.parse(n);return{...s,extra:a}}var Cc="https://sso.ccw.site/web/auth/logout";async function Z0(){return await l.post(Cc,{}).then(t=>t.data.body)}var Bc="https://sso.ccw.site/web/auth/logout_by_session";async function Q0(t){return await l.post(Bc,{id:t}).then(e=>e.data.body)}var Ec="https://sso.ccw.site/web/auth/assistant/captcha/v2/create";async function en(t,e="loginbyPhone",r="86",o="ccw_sms",n){let s={recipient:t,countryCode:r,scene:e,ruleCode:o,captcha:n};return await l.post(Ec,s).then(a=>a.data.body)}var Dc="https://sso.ccw.site/web/auth/v3/login/by_phone";async function tn(t,e,r={device:"Node",browser:"Node.js"},o="86",n="ccw_sms",s="loginbyPhone"){let{extra:a,...i}=await l.post(Dc,{phone:t,code:e,countryCode:o,ruleCode:n,scene:s,clientCode:"STUDY_COMMUNITY",extra:JSON.stringify({...r,scene:null})}).then(u=>u.data.body),p=JSON.parse(a);return{...i,extra:p}}var Or={loginByPassword:Y0,logout:Z0,logoutBySession:Q0,createSmsCaptcha:en,loginByPhone:tn};var vc="https://community-web.ccw.site/api/v1/short_code/encode";async function rn(t,e,r,o){let n={origin:{inviterAvatar:e,inviterName:r,inviterId:t,inviterType:"STUDENT",entrance:"create_detail",creationOid:o}};return await l.post(vc,n).then(s=>s.data.body)}var wc="https://community-web.ccw.site/approval/list";async function on(t){let e={objectId:t,objectType:"STUDENT"};return await rr.post(wc,e).then(r=>r.data.body)}var Fc="https://community-web.ccw.site/base/dateTime";async function nn(){return rr.post(Fc,void 0).then(t=>t.data.body)}var Sc="https://community-web.ccw.site/campaign_resource/detail";async function sn(t){return await l.post(Sc,{keyword:t}).then(e=>e.data.body)}var _c="https://community-web.ccw.site/check_in_record/detail";async function an(){let t={scene:"HOMEPAGE"};return await l.post(_c,t).then(e=>e.data.body)}var Pc="https://community-web.ccw.site/check_in_record/insert";async function cn(){let t={scene:"HOMEPAGE"};return await l.post(Pc,t).then(e=>e.data.body)}var Tc="https://community-web.ccw.site/cloud_asset/user/privacy";async function pn(){return await l.post(Tc,{}).then(t=>t.data.body)}function U(t,e){let r=new URL(t);return Object.entries(e).forEach(([o,n])=>{n!=null&&r.searchParams.set(o,n)}),r.toString()}var N={page:1,perPage:20,sortType:"DESC",sortField:""};var qc="https://community-web.ccw.site/cloud_asset/search",Ic={...N,sortField:"createdAt"};async function xn(t,e="/",r={}){let o={...Ic,...r},n=U(qc,o),s={creatorOid:t,path:e};return await l.post(n,s).then(a=>a.data.body)}var Oc="https://community-web.ccw.site/comment/page";async function un(t,e,r=["PUBLISHED","FOLDED"],o={sortField:"createdAt"}){let n={...N,...o},s=U(Oc,n),a={topicId:t,parentId:e,statuses:r};return await l.post(s,a).then(i=>i.data.body)}var kc="https://community-web.ccw.site/comment/page_by_topic",Lc={...N,sortField:"createdAt"};async function dn(t,e,r,o={sortField:"createdAt"}){let n={...Lc,...o},s=U(kc,n),a={subjectOid:t,subjectType:e,sectionType:r};return await l.post(s,a).then(i=>i.data.body)}var Mc="https://community-web.ccw.site/config/detail";async function fn(t){let e={key:t};return await l.post(Mc,e).then(r=>r.data.body)}var Uc="https://community-web.ccw.site/ccw-mall/ccw/product/fe/query";async function ln(t,e={sortField:"createdAt"}){let r={...N,...e},o=U(Uc,r),n={page:r.page,perPage:r.perPage,sortType:r.sortType,productCategory:t,source:"CCW_OFFICIAL"};return await l.post(o,n).then(s=>s.data.body)}var Nc="https://community-web.ccw.site/creation/detail";async function mn(t,e,r=""){let o={oid:t,accessKey:e,mode:r};return await l.post(Nc,o).then(n=>n.data.body)}var Hc="https://community-web.ccw.site/creation/excellent/list";async function gn(t){let e={num:t};return await l.post(Hc,e).then(r=>r.data.body)}var jc="https://community-web.ccw.site/creation/introduction/detail";async function hn(t){let e={studentOid:t};return await l.post(jc,e).then(r=>r.data.body)}var zc="https://community-web.ccw.site/creation/like/detail";async function An(t){let e={creationOid:t};return await l.post(zc,e).then(r=>r.data.body)}var Wc="https://community-web.ccw.site/creation/loading/tips";async function yn(){return await l.post(Wc,{}).then(t=>t.data.body)}var Gc="https://community-web.ccw.site/creation/page",Kc={...N,sortField:"createdAt"};async function bn(t,e={}){let r={...Kc,...e},o=U(Gc,r),n={remixCreationOids:t};return await l.post(o,n).then(s=>s.data.body)}var Vc="https://community-web.ccw.site/creation/page_by_student",$c={...N,sortField:"createdAt"};async function Rn(t,e={}){let r={...$c,...e},o=U(Vc,r),n={studentOids:t};return await l.post(o,n).then(s=>s.data.body)}var Jc="https://community-web.ccw.site/creation/potential/list";async function Cn(t){let e={num:t};return await l.post(Jc,e).then(r=>r.data.body)}var Xc="https://community-web.ccw.site/creation/recommend",Yc={...N,sortField:"createdAt"};async function Bn(t,e={}){let r={...Yc,...e},o=U(Xc,r),n={num:t,subjectType:"POTENTIAL"};return await l.post(o,n).then(s=>s.data.body)}var Zc="https://community-web.ccw.site/recommend_creator/list";async function En(t=4,e=8){let r={excellentCount:t,potentialCount:e};return await l.post(Zc,r).then(o=>o.data.body)}var Qc="https://community-web.ccw.site/creation/search/page",ep={...N,sortField:"createdAt"};async function Dn(t,e={}){let r={...ep,...e},o=U(Qc,r);return await l.post(o,t).then(n=>n.data.body)}var tp="https://community-web.ccw.site/creation/student/detail";async function vn(t){let e={studentOid:t};return await l.post(tp,e).then(r=>r.data.body)}var rp="https://community-web.ccw.site/creation/tag/list";async function wn(){let t={visibility:"PUBLIC"};return await l.post(rp,t).then(e=>e.data.body)}var op="https://community-web.ccw.site/short_url/create";async function Fn(t){let e={originUrl:t};return await l.post(op,e).then(r=>r.data.body)}var np="https://community-web.ccw.site/hash_tag_creation/list_relation";async function Sn(t){let e={creationOid:t};return await l.post(np,e).then(r=>r.data.body)}var sp="https://community-web.ccw.site/hash_tag_creation/mine",ip={...N,sortField:"lastPassedAt"};async function _n(t,e,r={}){let o={...ip,...r},n=U(sp,o),s={...o,excludeHashTag:t,statuses:e};return await l.post(n,s).then(a=>a.data.body)}var ap="https://community-web.ccw.site/hash_tag/detail";async function Pn(t){let e={identifier:t};return await l.post(ap,e).then(r=>r.data.body)}var cp="https://community-web.ccw.site/hash_tag/managed/list",pp={...N,sortField:"createdAt"};async function Tn(t,e=[],r={}){let o={...pp,...r},n=U(cp,o),s={...o,studentOid:t,excludeHashTagIds:e};return await l.post(n,s).then(a=>a.data.body)}var xp="https://community-web.ccw.site/hash_tag_favorite/detail";async function qn(t){let e={hashTagId:t};return await l.post(xp,e).then(r=>r.data.body)}var up="https://community-web.ccw.site/creation_donated_record/ranking_list";async function In(t,e={sortField:"createdAt"}){let r={...N,...e},o=U(up,r),n={creationOid:t};return await l.post(o,n).then(s=>s.data.body)}var dp="https://community-web.ccw.site/creation_favorite/detail";async function On(t){let e={creationOid:t};return await l.post(dp,e).then(r=>r.data.body)}var fp="https://community-web.ccw.site/creation_recommend_position/list";async function kn(t){let e={creationOid:t};return await l.post(fp,e).then(r=>r.data.body)}var lp="https://community-web.ccw.site/creation_screenshot/page";async function Ln(t,e={}){let r={...N,...e},o=U(lp,r),n={subjectOid:t};return await l.post(o,n).then(s=>s.data.body)}var mp="https://community-web.ccw.site/creation_stats/view";async function Mn(t,e=""){let r={oid:t,inviteCode:e};return await l.post(mp,r).then(o=>o.data.body)}var gp="https://community-web.ccw.site/notify_message/show";async function Un(){let t={type:"COMMENT_AUDIT"};return await l.post(gp,t).then(e=>e.data.body)}var hp="https://community-web.ccw.site/post/detail";async function Nn(t){let e={slug:t};return await l.post(hp,e).then(r=>r.data.body)}var Ap="https://community-web.ccw.site/search/hot_words";async function Hn(t){let e={length:t};return await l.post(Ap,e).then(r=>r.data.body)}var yp="https://community-web.ccw.site/student/block_record/detail";async function jn(t){let e={studentOid:t};return await l.post(yp,e).then(r=>r.data.body)}var bp="https://community-web.ccw.site/student/block_record/list";async function zn(t={sortField:"createdAt"}){let e={...N,...t},r=U(bp,e),o={};return await l.post(r,o).then(n=>n.data.body)}var Rp="https://community-web.ccw.site/student/block_record/status";async function Wn(t){let e={studentOid:t};return await l.post(Rp,e).then(r=>r.data.body)}var Cp="https://community-web.ccw.site/students/creator_score";async function Gn(){return await l.post(Cp,void 0).then(e=>e.data.body)}var Bp="https://community-web.ccw.site/students/last_active_at";async function Kn(t){let e={studentOid:t};return await l.post(Bp,e).then(r=>r.data.body)}var Ep="https://community-web.ccw.site/students/list";async function Vn(t){let e={studentOids:t};return await l.post(Ep,e).then(r=>r.data.body)}var Dp="https://community-web.ccw.site/students/list_sessions";async function $n(t={sortField:"createdAt"}){let e={...N,...t},r=U(Dp,e),o={};return await l.post(r,o).then(n=>n.data.body)}var vp="https://community-web.ccw.site/students/profile";async function Jn(t){let e={studentOid:t};return await l.post(vp,e).then(r=>r.data.body)}var wp="https://community-web.ccw.site/students/reputation_score_log/page";async function Xn(t={sortField:"createdAt"}){let e={...N,...t},r=U(wp,e),o={};return await l.post(r,o).then(n=>n.data.body)}var Fp="https://community-web.ccw.site/students/self/detail";async function Yn(t,e,r){let o={needGrade:t,needExtraInfo:e,fields:r};return await l.post(Fp,o).then(n=>n.data.body)}var Sp="https://community-web.ccw.site/students/stats";async function Zn(t){let e={studentOid:t};return await l.post(Sp,e).then(r=>r.data.body)}var _p="https://community-web.ccw.site/students/update";async function Qn(t,e,r,o,n,s,a,i,p){let u={gender:t,hideGender:e,fullName:r,birthday:o,programmingCapability:n,school:s,qq:a,hobbies:i,learnedProgrammingLanguages:p};return await l.post(_p,u).then(c=>c.data.body)}var Pp="https://community-web.ccw.site/study-community/member/detail";async function es(){let t={};return await l.post(Pp,t).then(e=>e.data.body)}var Tp="https://community-web.ccw.site/study-community/spread_feed/unread/count";async function ts(t){let e={studentOid:t};return await l.post(Tp,e).then(r=>r.data.body)}var qp="https://community-web.ccw.site/subject_area/page";async function rs(t,e={sortField:"createdAt"}){let r={...N,...e},o=U(qp,r),n={scene:t};return await l.post(o,n).then(s=>s.data.body)}var Ip="https://community-web.ccw.site/subject_area/page_by_channel";async function os(t,e={sortField:"campaignResourceId"}){let r={...N,...e},o=U(Ip,r),n={channel:t,scene:"CUSTOM_PAGE"};return await l.post(o,n).then(s=>s.data.body)}var Op="https://community-web.ccw.site/task/award";async function ns(t){let e={taskOid:t};return await l.post(Op,e).then(r=>r.data.body)}var kp="https://community-web.ccw.site/task/mine";async function ss(){let t={scene:"checkIn"};return await l.post(kp,t).then(e=>e.data.body)}var Lp="https://community-web.ccw.site/user-card/detail";async function is(t){let e={oid:t};return await l.post(Lp,e).then(r=>r.data.body)}var Mp="https://community-web.ccw.site/user_label/list";async function as(){let t={};return await l.post(Mp,t).then(e=>e.data.body)}var Up="https://community-web.ccw.site/currency/account/personal";async function cs(){return await l.post(Up).then(t=>t.data.body)}var Np="https://community-web.ccw.site/emoji/all";async function ps(){return await l.post(Np,{}).then(t=>t.data.body)}var Hp="https://community-web.ccw.site/emoji/category/list";async function xs(){return await l.post(Hp,{}).then(t=>t.data.body)}var jp="https://community-web.ccw.site/emoji/page";async function us(t="ENABLED",e={sortField:"createdAt"}){let r={...N,...e},o=U(jp,r),n={page:r.page,perPage:r.perPage,status:t};return await l.post(o,n).then(s=>s.data.body)}var zp="https://community-web.ccw.site/event";async function ds(t){let e={actionId:t};return await l.post(zp,e).then(r=>r.data.body)}var Wp="https://community-web.ccw.site/health/check";async function fs(){return await l.post(Wp).then(t=>t.data.body)}var Gp="https://community-web.ccw.site/leaflets/item/list";async function ls(t){let e={advertisementId:t};return await l.post(Gp,e).then(r=>r.data.body)}var Kp="https://community-web.ccw.site/locked_user/detail";async function ms(t){let e={accountOid:t};return await l.post(Kp,e).then(r=>r.data.body)}var Vp="https://community-web.ccw.site/muted_user/detail";async function gs(t){let e={studentNumber:t};return await l.post(Vp,e).then(r=>r.data.body)}var $p="https://community-web.ccw.site/notification/page";async function hs(t="COMMENT_TO_ME",e={sortField:"createdAt"}){let r={...N,...e},o=U($p,r),n={notifyGroup:t,page:r.page};return await l.post(o,n).then(s=>s.data.body)}var Jp="https://community-web.ccw.site/notification/stats/v2";async function As(t=!0){let e={countAll:t};return await l.post(Jp,e).then(r=>r.data.body)}var Xp="https://community-web.ccw.site/typical_project/page";async function ys(t,e={sortField:"createdAt"}){let r={...N,...e},o=U(Xp,r),n={studentOid:t,templateType:"APPLICATION"};return await l.post(o,n).then(s=>s.data.body)}var Yp="https://community-web.ccw.site/typical_project/student/unread_count";async function bs(t){let e={studentOid:t};return await l.post(Yp,e).then(r=>r.data.body)}var Zp="https://community-web.ccw.site/creation/own/page";async function Rs(t={sortField:"updatedAt"},e=["BANNED","PUBLISHED","REJECTED","SUBMITTED"],r=!1){let o={...N,...t},n=U(Zp,o),s={statuses:e,ignoreTypicalProject:r};return await l.post(n,s).then(a=>a.data.body)}var Qp="https://community-web.ccw.site/creation/team_member/produce_ticket";async function Cs(t){let e={creationOid:t};return await l.post(Qp,e).then(r=>r.data.body)}var ex="https://community-web.ccw.site/creation/team_member/list";async function Bs(t,e){let r={creationOid:t,authorities:e};return await l.post(ex,r).then(o=>o.data.body)}var tx="https://community-web.ccw.site/creation/teamwork_log/page";async function Es(t,e,r={sortField:"createdAt"}){let o={...N,...r},n=U(tx,o),s={creationId:t,operateTargets:e},a=await l.post(n,s).then(u=>u.data.body),{data:i}=a,p=i.map(u=>{let{content:c}=u;return{...u,content:JSON.parse(c)}});return{...a,data:p}}var rx="https://community-web.ccw.site/creation/update";async function Ds(t,e,r="LANDSCAPE",o){if(!e.includes("t=")){let a=new URL(e);a.searchParams.set("t",Date.now().toString()),e=a.toString()}let s={oid:t,latestProjectLink:e,screenMode:r,latestCoverLink:o};return await l.post(rx,s).then(a=>a.data.body)}var ox="https://community-web.ccw.site/creation/submit";async function vs(t){return await l.post(ox,t).then(e=>e.data.body)}var nx="https://community-web.ccw.site/creation/smart_contract/split_rule/detail";async function ws(t){let e={creationOid:t};return await l.post(nx,e).then(r=>r.data.body)}var sx="https://community-web.ccw.site/students/bind_phone";async function Fs(t,e,r="86"){let o={phone:t,code:e,ruleCode:"ccw_sms",scene:"bindPhone",countryCode:r};return await l.post(sx,o).then(n=>n.data.body)}var ix="https://community-web.ccw.site/students/password/change";async function Ss(t,e){let r={newPassword:t,code:e};return await l.post(ix,r).then(o=>o.data.body)}var ax="https://community-web.ccw.site/captcha/v2/create_by_session";async function _s(t="change_password",e="86",r="ccw_sms",o="SMS"){let n={type:o,countryCode:e,scene:t,ruleCode:r};return await l.post(ax,n).then(s=>s.data.body)}var cx="https://community-web.ccw.site/creation/smart_contract/split_rule/create";async function Ps(t,e){let r={creationOid:t,memberSplitDetails:e};return await l.post(cx,r).then(o=>o.data.body)}var px="https://community-web.ccw.site/creation_attribute/detail";async function Ts(t){let e={creationOid:t},r=await l.post(px,e).then(s=>s.data.body);if(r===null)return null;let{ext:{KEYPAD_CONFIG:o}}=r,n=JSON.parse(o);return{...r,ext:{KEYPAD_CONFIG:n}}}var xx="https://community-web.ccw.site/creation_activity_stats/list";async function qs(t){let e={creationOid:t,type:"DAY"};return await l.post(xx,e).then(r=>r.data.body)}var ux="https://community-web.ccw.site/creation_release/page";async function Is(t,e={sortField:"submittedAt"}){let r={...N,...e},o=U(ux,r),n={creationOid:t};return await l.post(o,n).then(s=>s.data.body)}var dx="https://community-web.ccw.site/creation_release/code_profiling/detail";async function Os(t,e){let r={creationOid:t,creationReleaseOid:e};return await l.post(dx,r).then(o=>o.data.body)}var fx="https://community-web.ccw.site/historical_team_member/page";async function ks(t,e={sortField:"createdAt"}){let r={...N,...e},o=U(fx,r),n={creationOid:t,page:r.page,perPage:r.perPage};return await l.post(o,n).then(s=>s.data.body)}var lx="https://community-web.ccw.site/short_url/decompress";async function Ls(t){let e={shortUrlCode:t};return await l.post(lx,e).then(r=>r.data.body)}var mx="https://community-web.ccw.site/hash_tag/recommend/list";async function Ms(){return await l.post(mx).then(t=>t.data.body)}var gx="https://community-web.ccw.site/ccw-main/status";async function Us(){let t={};return await l.post(gx,t).then(e=>e.data.body)}var hx="https://community-web.ccw.site/study-community/cloud_variable/create";async function Ns(t,e){let r={projectId:t,variables:e};return await l.post(hx,r).then(o=>o.data.body)}var Ax="https://community-web.ccw.site/study-community/comment/top";async function Hs(t){let e={id:t};return await l.post(Ax,e).then(r=>r.data.body)}var yx="https://community-web.ccw.site/study-community/comment/fold";async function js(t){let e={id:t};return await l.post(yx,e).then(r=>r.data.body)}var bx="https://community-web.ccw.site/study-community/comment/reset_weight";async function zs(t){let e={id:t};return await l.post(bx,e).then(r=>r.data.body)}var Rx="https://community-web.ccw.site/study-community/comment/delete";async function Ws(t){let e={id:t};return await l.post(Rx,e).then(r=>r.data.body)}var Cx="https://community-web.ccw.site/comment/create";async function Gs(t,e,r){e.outline??="foo";let o={content:t,topic:e,sectionType:r};return await l.post(Cx,o).then(n=>n.data.body)}var Bx="https://community-web.ccw.site/comment/like_record/create";async function Ks(t){let e={commentId:t};return await l.post(Bx,e).then(r=>r.data.body)}var Ex="https://community-web.ccw.site/student/following/page";async function Vs(t,e={sortField:"createdAt"}){let r={...N,...e},o=U(Ex,r),n={studentOid:t};return await l.post(o,n).then(s=>s.data.body)}var Dx="https://community-web.ccw.site/study-trade/trade/donate";async function $s(t,e,r="CREATION"){let o={bucks:t,objectId:e,objectType:r};return await l.post(Dx,o).then(n=>n.data.body)}var vx="https://community-web.ccw.site/user_package/user_product";async function Js(t=5,e={}){let r={...N,...e},o=U(vx,r),n={page:r.page,perPage:r.perPage,sortType:r.sortType,productCategory:t};return await l.post(o,n).then(s=>s.data.body)}var wx="https://community-web.ccw.site/user_package/status";async function Xs(t,e){let r={status:e,id:t};return await l.post(wx,r).then(o=>o.data.body)}var Fx="https://community-web.ccw.site/great_creation/update";async function Ys(t){let e={creationOid:t};return await l.post(Fx,e).then(r=>r.data.body)}var Sx="https://community-web.ccw.site/smart_contract/execute";async function Zs(t,e,r,o,n="CREATION"){let s={bizId:t,bizType:n,id:e,ruleId:r,params:{bucks:o}};return await l.post(Sx,s).then(a=>a.data.body)}var _x="https://community-web.ccw.site/smart_contract/account";async function Qs(t){let e={id:t};return await l.post(_x,e).then(r=>r.data.body)}var Px="https://community-web.ccw.site/smart_contract/detail";async function ei(t){let e={id:t};return await l.post(Px,e).then(r=>r.data.body)}var Tx="https://community-web.ccw.site/smart_contract/list";async function ti(t,e="CREATION"){let r={bizId:t,bizType:e};return await l.post(Tx,r).then(o=>o.data.body)}var qx="https://community-web.ccw.site/extensions/following/status";async function ri(t,e){let r={playingCreationOid:t,userOid:e};return await l.post(qx,r).then(o=>o.data.body)}var Ix="https://community-web.ccw.site/extensions/creation-like/detail";async function oi(t,e){let r={playingCreationOid:t,creationOid:e};return await l.post(Ix,r).then(o=>o.data.body)}var Ox="https://community-web.ccw.site/study-community/following/follow";async function ni(t){let e={followingOid:t};return await l.post(Ox,e).then(r=>r.data.body)}var kx="https://community-web.ccw.site/study-community/following/unfollow";async function si(t){let e={followingOid:t};return await l.post(kx,e).then(r=>r.data.body)}var kr={acceptAward:ns,bindStudentPhone:Fs,changeStudentPassword:Ss,donateTrade:$s,encodeShortCode:rn,executeSmartContract:Zs,createCloudVariable:Ns,createComment:Gs,createShortUrl:Fn,createSmsCaptchaBySession:_s,createSplitRule:Ps,decompressShortUrl:Ls,deleteComment:Ws,foldComment:js,followCreator:ni,unfollowCreator:si,getApprovalTags:on,getCampaignResources:sn,getCcwMainStatus:Us,getCheckInRecords:an,getCodeProfilingDetail:Os,getCommentReplies:un,getCommentsByTopic:dn,getConfigDetail:fn,getCreationActivityStatsList:qs,getCreationAttributeDetail:Ts,getCreationDetail:mn,getCreationFavoriteDetail:On,getCreationIntroduction:hn,getConnectCommunityCreationLikeStatus:oi,getCreationRecommendPositionList:kn,getCreationReleasePage:Is,getCreationScreenshotPage:Ln,getCreationStudentDetail:vn,getCreationTags:wn,getCreatorScore:Gn,getDonatedRecordRanking:In,getExcellentCreations:gn,getConnectCommunityFollowingStatus:ri,getEmojiCategoryList:xs,getEmojiPage:us,getAllEmojis:ps,getHashTagDetail:Pn,getHashTagFavoriteDetail:qn,getHistoricalTeamMemberPage:ks,getManagedHashTags:Tn,getHealthCheck:fs,getLeafletsItemList:ls,getLikeDetail:An,getLoadingTips:yn,getLockedUserDetail:ms,getMutedUserDetail:gs,getMyHashTagCreations:_n,getMyTasks:ss,getNotifyDeleteReasons:Un,getNotificationPage:hs,getNotificationStats:As,getOwnCreationPage:Rs,getPersonalCurrencyAccount:cs,getPlanetsOfCreation:Sn,getPostDetail:Nn,getPotentialCreations:Cn,getRecommendCreations:Bn,getRecommendCreators:En,getRecommendHashTags:Ms,getRemixedCreationPage:bn,getReputationScoreLogPage:Xn,getSearchHotWords:Hn,getSmartContractAccount:Qs,getSmartContractDetail:ei,getSmartContractList:ti,getSplitRuleDetail:ws,getSpreadFeedUnreadCount:ts,getStudentBlockRecordDetail:jn,getStudentBlockRecordList:zn,getStudentBlockStatus:Wn,getStudentFollowingPage:Vs,getStudentLastActiveAt:Kn,getStudentProfile:Jn,getStudentSelfDetail:Yn,getStudentSessions:$n,getStudentsList:Vn,getStudentStats:Zn,getStudyCommunityMemberDetail:es,getSubjectAreaPage:rs,getSubjectAreaPageByChannel:os,getTeamMemberList:Bs,getTeamworkLogPage:Es,getTime:nn,getTypicalProjectPage:ys,getTypicalProjectUnreadCount:bs,getUserAssetStorageSize:pn,getUserCardDetail:is,getUserLabelList:as,getUserProductsPage:Js,queryMallProducts:ln,getCreationsByStudent:Rn,insertCheckInRecord:cn,likeComment:Ks,produceTeamMemberTicket:Cs,resetCommentWeight:zs,searchCloudAssets:xn,searchCreationsByTag:Dn,sendEvent:ds,setUserProductStatus:Xs,submitCreation:vs,topComment:Hs,updateCreation:Ds,updateGreatCreation:Ys,updateStudent:Qn,viewCreationStats:Mn};var Lx="https://gandi-main.ccw.site/timestamp/current";async function ii(){return await l.get(Lx).then(t=>t.data.body)}var Mx="https://gandi-main.ccw.site/bulletins";async function ai(t="PUBLISHED",e={sortField:"publishedAt"}){let r={...N,...e},o=U(Mx,{...r,status:t});return await l.get(o).then(n=>n.data.body)}var Ux="https://gandi-main.ccw.site/bulletins";async function ci(t){return await l.get(`${Ux}/${t}`).then(e=>e.data.body)}var pi="https://gandi-main.ccw.site/creation/leaderboards";async function xi(t,e,r,o=""){let n={score:e,oid:r,ext:o},s=`${pi}/${t}/records`;return await l.post(s,n).then(a=>a.data.body)}async function ui(t){let e=`${pi}/${t}/records`;return await l.get(e).then(r=>r.data.body)}var Lr={getCurrentTimestamp:ii,getBulletinsPage:ai,getBulletinDetail:ci,submitLeaderboardRecord:xi,getLeaderboardRecords:ui};var Nx="https://bfs-web.ccw.site/users";async function di(t,e={sortField:"updatedAt"}){let r={...N,...e},o=U(`${Nx}/${t}/extensions`,r);return await l.get(o).then(n=>n.data.body)}var Hx="https://bfs-web.ccw.site/extensions";async function fi(t,e){let r={eid:t,bucks:e};return await l.post(`${Hx}/${t}/donate`,r).then(o=>o.data.body)}var Mr={donateExtension:fi,getUserExtensions:di};var jx="https://community-web-cloud-database.ccw.site/cloud_variable/save";async function li(t,e,r){let o={primaryKey:t,secondaryKey:e,value:r};return await l.post(jx,o).then(n=>n.data.body)}async function mi(t,e,r){return await li(t,e,{v:r})}async function gi(t,e,r){let o=`${t}-u`;return await li(o,`${e}`,r)}var zx="https://community-web-cloud-database.ccw.site/cloud_variable/detail/v2";async function hi(t,e,r,o){let n={accessKey:t,primaryKey:e,secondaryKey:r,filterKeys:o};return await l.post(zx,n).then(s=>s.data.body)}var Ur={saveProjectCloudVariable:mi,saveUserCloudVariable:gi,getCloudVariableDetailV2:hi};var Wx="https://op-parent-api.xiguacity.cn/captcha/create";async function Ai(t="BLOCK_PUZZLE"){let e={type:t};return await l.post(Wx,e).then(r=>r.data.body)}var Gx="https://op-parent-api.xiguacity.cn/captcha/check";async function yi(t,e,r=5){let o={data:{x:e,y:r},token:t};return await l.post(Gx,o).then(n=>n.data.body)}var Nr={createCaptcha:Ai,checkCaptcha:yi};var Kx={sso:Or,communityWeb:kr,gandiMain:Lr,bfsWeb:Mr,communityWebCloudDatabase:Ur,opParentApi:Nr};return Ui(Vx);})();
9
+ `+s)}}catch{}}throw o}}_request(e,r){typeof e=="string"?(r=r||{},r.url=e):r=e||{},r=de(this.defaults,r);let{transitional:o,paramsSerializer:n,headers:s}=r;o!==void 0&&Ye.assertOptions(o,{silentJSONParsing:ie.transitional(ie.boolean),forcedJSONParsing:ie.transitional(ie.boolean),clarifyTimeoutError:ie.transitional(ie.boolean),legacyInterceptorReqResOrdering:ie.transitional(ie.boolean),advertiseZstdAcceptEncoding:ie.transitional(ie.boolean)},!1),n!=null&&(b.isFunction(n)?r.paramsSerializer={serialize:n}:Ye.assertOptions(n,{encode:ie.function,serialize:ie.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),Ye.assertOptions(r,{baseUrl:ie.spelling("baseURL"),withXsrfToken:ie.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let a=s&&b.merge(s.common,s[r.method]);s&&b.forEach(["delete","get","head","post","put","patch","query","common"],g=>{delete s[g]}),r.headers=Q.concat(a,s);let i=[],p=!0;this.interceptors.request.forEach(function(y){if(typeof y.runWhen=="function"&&y.runWhen(r)===!1)return;p=p&&y.synchronous;let A=r.transitional||qe;A&&A.legacyInterceptorReqResOrdering?i.unshift(y.fulfilled,y.rejected):i.push(y.fulfilled,y.rejected)});let u=[];this.interceptors.response.forEach(function(y){u.push(y.fulfilled,y.rejected)});let c,m=0,d;if(!p){let g=[mt.bind(this),void 0];for(g.unshift(...i),g.push(...u),d=g.length,c=Promise.resolve(r);m<d;)c=c.then(g[m++],g[m++]);return c}d=i.length;let h=r;for(;m<d;){let g=i[m++],y=i[m++];try{h=g(h)}catch(A){y.call(this,A);break}}try{c=mt.call(this,h)}catch(g){return Promise.reject(g)}for(m=0,d=u.length;m<d;)c=c.then(u[m++],u[m++]);return c}getUri(e){e=de(this.defaults,e);let r=Xe(e.baseURL,e.url,e.allowAbsoluteUrls);return Ke(r,e.params,e.paramsSerializer)}};b.forEach(["delete","get","head","options"],function(e){Me.prototype[e]=function(r,o){return this.request(de(o||{},{method:e,url:r,data:(o||{}).data}))}});b.forEach(["post","put","patch","query"],function(e){function r(o){return function(s,a,i){return this.request(de(i||{},{method:e,headers:o?{"Content-Type":"multipart/form-data"}:{},url:s,data:a}))}}Me.prototype[e]=r(),e!=="query"&&(Me.prototype[e+"Form"]=r(!0))});var Ze=Me;var wr=class t{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(s){r=s});let o=this;this.promise.then(n=>{if(!o._listeners)return;let s=o._listeners.length;for(;s-- >0;)o._listeners[s](n);o._listeners=null}),this.promise.then=n=>{let s,a=new Promise(i=>{o.subscribe(i),s=i}).then(n);return a.cancel=function(){o.unsubscribe(s)},a},e(function(s,a,i){o.reason||(o.reason=new le(s,a,i),r(o.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let r=this._listeners.indexOf(e);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){let e=new AbortController,r=o=>{e.abort(o)};return this.subscribe(r),e.signal.unsubscribe=()=>this.unsubscribe(r),e.signal}static source(){let e;return{token:new t(function(n){e=n}),cancel:e}}},Oo=wr;function Fr(t){return function(r){return t.apply(null,r)}}function Sr(t){return b.isObject(t)&&t.isAxiosError===!0}var _r={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(_r).forEach(([t,e])=>{_r[e]=t});var ko=_r;function Lo(t){let e=new Ze(t),r=je(Ze.prototype.request,e);return b.extend(r,Ze.prototype,e,{allOwnKeys:!0}),b.extend(r,e,null,{allOwnKeys:!0}),r.create=function(n){return Lo(de(t,n))},r}var ee=Lo(Oe);ee.Axios=Ze;ee.CanceledError=le;ee.CancelToken=Oo;ee.isCancel=$e;ee.VERSION=Le;ee.toFormData=be;ee.AxiosError=M;ee.Cancel=ee.CanceledError;ee.all=function(e){return Promise.all(e)};ee.spread=Fr;ee.isAxiosError=Sr;ee.mergeConfig=de;ee.AxiosHeaders=Q;ee.formToJSON=t=>ut(b.isHTMLForm(t)?new FormData(t):t);ee.getAdapter=lt.getAdapter;ee.HttpStatusCode=ko;ee.default=ee;var Mo=ee;var{Axios:sl,AxiosError:il,CanceledError:al,isCancel:cl,CancelToken:pl,VERSION:xl,all:ul,Cancel:dl,isAxiosError:fl,spread:ll,toFormData:ml,AxiosHeaders:gl,HttpStatusCode:hl,formToJSON:Al,getAdapter:yl,mergeConfig:bl,create:Uo}=Mo;var Ir=Mi($0(),1),{HmacMD5:hc}=Ir.default,qr="",Ac=Ir.default.lib.WordArray.random(16).toString();async function J0(t){if(qr)return qr;let e=await fetch("https://community-web.ccw.site/health/check",{method:"POST",headers:t,credentials:"include"}).then(r=>r.json());if(e.code!=="200")throw new Error("Request failed: failed to health check",{cause:e});return qr=e.body.map(({traceId:r})=>r[parseInt(r[0],16)+1]).reverse().join(""),J0(t)}async function yc(t,e=Date.now()){tr.length>0&&(t.headers.Cookie=`token=${tr}`),t.headers["Guest-Id"]=tr?"":Ac;let r=await J0(t.headers);return t.headers.B=`${e}`,t.headers.A=hc(`ccw${JSON.stringify(t.data)}${e}`,r).toString(),t}async function bc(t){if(t.data.code=="200")return t;throw new Error(`ccw axios Request failed: ${t.data.msg}`,{cause:t})}var tr="";function X0(t){tr=t}var l=Uo({baseURL:"https://community-web.ccw.site/",withCredentials:!0});l.interceptors.request.use(yc);l.interceptors.response.use(bc);var rr=l;var Rc="https://sso.ccw.site/web/auth/login-by-password";async function Y0(t,e,r={device:"Node",browser:"Node.js"}){let o={loginKey:t,password:e,clientCode:"STUDY_COMMUNITY",extra:JSON.stringify({...r,scene:null})},{extra:n,...s}=await l.post(Rc,o).then(i=>i.data.body),a=JSON.parse(n);return{...s,extra:a}}var Cc="https://sso.ccw.site/web/auth/logout";async function Z0(){return await l.post(Cc,{}).then(t=>t.data.body)}var Bc="https://sso.ccw.site/web/auth/logout_by_session";async function Q0(t){return await l.post(Bc,{id:t}).then(e=>e.data.body)}var Ec="https://sso.ccw.site/web/auth/assistant/captcha/v2/create";async function en(t,e="loginbyPhone",r="86",o="ccw_sms",n){let s={recipient:t,countryCode:r,scene:e,ruleCode:o,captcha:n};return await l.post(Ec,s).then(a=>a.data.body)}var Dc="https://sso.ccw.site/web/auth/v3/login/by_phone";async function tn(t,e,r={device:"Node",browser:"Node.js"},o="86",n="ccw_sms",s="loginbyPhone"){let{extra:a,...i}=await l.post(Dc,{phone:t,code:e,countryCode:o,ruleCode:n,scene:s,clientCode:"STUDY_COMMUNITY",extra:JSON.stringify({...r,scene:null})}).then(u=>u.data.body),p=JSON.parse(a);return{...i,extra:p}}var Or={loginByPassword:Y0,logout:Z0,logoutBySession:Q0,createSmsCaptcha:en,loginByPhone:tn};var vc="https://community-web.ccw.site/api/v1/short_code/encode";async function rn(t,e,r,o){let n={origin:{inviterAvatar:e,inviterName:r,inviterId:t,inviterType:"STUDENT",entrance:"create_detail",creationOid:o}};return await l.post(vc,n).then(s=>s.data.body)}var wc="https://community-web.ccw.site/approval/list";async function on(t){let e={objectId:t,objectType:"STUDENT"};return await rr.post(wc,e).then(r=>r.data.body)}var Fc="https://community-web.ccw.site/base/dateTime";async function nn(){return rr.post(Fc,void 0).then(t=>t.data.body)}var Sc="https://community-web.ccw.site/campaign_resource/detail";async function sn(t){return await l.post(Sc,{keyword:t}).then(e=>e.data.body)}var _c="https://community-web.ccw.site/check_in_record/detail";async function an(){let t={scene:"HOMEPAGE"};return await l.post(_c,t).then(e=>e.data.body)}var Pc="https://community-web.ccw.site/check_in_record/insert";async function cn(){let t={scene:"HOMEPAGE"};return await l.post(Pc,t).then(e=>e.data.body)}var Tc="https://community-web.ccw.site/cloud_asset/user/privacy";async function pn(){return await l.post(Tc,{}).then(t=>t.data.body)}function U(t,e){let r=new URL(t);return Object.entries(e).forEach(([o,n])=>{n!=null&&r.searchParams.set(o,n)}),r.toString()}var N={page:1,perPage:20,sortType:"DESC",sortField:""};var qc="https://community-web.ccw.site/cloud_asset/search",Ic={...N,sortField:"createdAt"};async function xn(t,e="/",r={}){let o={...Ic,...r},n=U(qc,o),s={creatorOid:t,path:e};return await l.post(n,s).then(a=>a.data.body)}var Oc="https://community-web.ccw.site/comment/page";async function un(t,e,r=["PUBLISHED","FOLDED"],o={sortField:"createdAt"}){let n={...N,...o},s=U(Oc,n),a={topicId:t,parentId:e,statuses:r};return await l.post(s,a).then(i=>i.data.body)}var kc="https://community-web.ccw.site/comment/page_by_topic",Lc={...N,sortField:"createdAt"};async function dn(t,e,r,o={sortField:"createdAt"}){let n={...Lc,...o},s=U(kc,n),a={subjectOid:t,subjectType:e,sectionType:r};return await l.post(s,a).then(i=>i.data.body)}var Mc="https://community-web.ccw.site/config/detail";async function fn(t){let e={key:t};return await l.post(Mc,e).then(r=>r.data.body)}var Uc="https://community-web.ccw.site/ccw-mall/ccw/product/fe/query";async function ln(t,e={sortField:"createdAt"}){let r={...N,...e},o=U(Uc,r),n={page:r.page,perPage:r.perPage,sortType:r.sortType,productCategory:t,source:"CCW_OFFICIAL"};return await l.post(o,n).then(s=>s.data.body)}var Nc="https://community-web.ccw.site/creation/detail";async function mn(t,e,r=""){let o={oid:t,accessKey:e,mode:r};return await l.post(Nc,o).then(n=>n.data.body)}var Hc="https://community-web.ccw.site/creation/excellent/list";async function gn(t){let e={num:t};return await l.post(Hc,e).then(r=>r.data.body)}var jc="https://community-web.ccw.site/creation/introduction/detail";async function hn(t){let e={studentOid:t};return await l.post(jc,e).then(r=>r.data.body)}var zc="https://community-web.ccw.site/creation/like/detail";async function An(t){let e={creationOid:t};return await l.post(zc,e).then(r=>r.data.body)}var Wc="https://community-web.ccw.site/creation/loading/tips";async function yn(){return await l.post(Wc,{}).then(t=>t.data.body)}var Gc="https://community-web.ccw.site/creation/page",Kc={...N,sortField:"createdAt"};async function bn(t,e={}){let r={...Kc,...e},o=U(Gc,r),n={remixCreationOids:t};return await l.post(o,n).then(s=>s.data.body)}var Vc="https://community-web.ccw.site/creation/page_by_student",$c={...N,sortField:"createdAt"};async function Rn(t,e={}){let r={...$c,...e},o=U(Vc,r),n={studentOids:t};return await l.post(o,n).then(s=>s.data.body)}var Jc="https://community-web.ccw.site/creation/potential/list";async function Cn(t){let e={num:t};return await l.post(Jc,e).then(r=>r.data.body)}var Xc="https://community-web.ccw.site/creation/recommend",Yc={...N,sortField:"createdAt"};async function Bn(t,e={}){let r={...Yc,...e},o=U(Xc,r),n={num:t,subjectType:"POTENTIAL"};return await l.post(o,n).then(s=>s.data.body)}var Zc="https://community-web.ccw.site/recommend_creator/list";async function En(t=4,e=8){let r={excellentCount:t,potentialCount:e};return await l.post(Zc,r).then(o=>o.data.body)}var Qc="https://community-web.ccw.site/creation/search/page",ep={...N,sortField:"createdAt"};async function Dn(t,e={}){let r={...ep,...e},o=U(Qc,r);return await l.post(o,t).then(n=>n.data.body)}var tp="https://community-web.ccw.site/creation/student/detail";async function vn(t){let e={studentOid:t};return await l.post(tp,e).then(r=>r.data.body)}var rp="https://community-web.ccw.site/creation/tag/list";async function wn(){let t={visibility:"PUBLIC"};return await l.post(rp,t).then(e=>e.data.body)}var op="https://community-web.ccw.site/short_url/create";async function Fn(t){let e={originUrl:t};return await l.post(op,e).then(r=>r.data.body)}var np="https://community-web.ccw.site/hash_tag_creation/list_relation";async function Sn(t){let e={creationOid:t};return await l.post(np,e).then(r=>r.data.body)}var sp="https://community-web.ccw.site/hash_tag_creation/mine",ip={...N,sortField:"lastPassedAt"};async function _n(t,e,r={}){let o={...ip,...r},n=U(sp,o),s={...o,excludeHashTag:t,statuses:e};return await l.post(n,s).then(a=>a.data.body)}var ap="https://community-web.ccw.site/hash_tag/detail";async function Pn(t){let e={identifier:t};return await l.post(ap,e).then(r=>r.data.body)}var cp="https://community-web.ccw.site/hash_tag/managed/list",pp={...N,sortField:"createdAt"};async function Tn(t,e=[],r={}){let o={...pp,...r},n=U(cp,o),s={...o,studentOid:t,excludeHashTagIds:e};return await l.post(n,s).then(a=>a.data.body)}var xp="https://community-web.ccw.site/hash_tag_favorite/detail";async function qn(t){let e={hashTagId:t};return await l.post(xp,e).then(r=>r.data.body)}var up="https://community-web.ccw.site/creation_donated_record/ranking_list";async function In(t,e={sortField:"createdAt"}){let r={...N,...e},o=U(up,r),n={creationOid:t};return await l.post(o,n).then(s=>s.data.body)}var dp="https://community-web.ccw.site/creation_favorite/detail";async function On(t){let e={creationOid:t};return await l.post(dp,e).then(r=>r.data.body)}var fp="https://community-web.ccw.site/creation_recommend_position/list";async function kn(t){let e={creationOid:t};return await l.post(fp,e).then(r=>r.data.body)}var lp="https://community-web.ccw.site/creation_screenshot/page";async function Ln(t,e={}){let r={...N,...e},o=U(lp,r),n={subjectOid:t};return await l.post(o,n).then(s=>s.data.body)}var mp="https://community-web.ccw.site/creation_stats/view";async function Mn(t,e=""){let r={oid:t,inviteCode:e};return await l.post(mp,r).then(o=>o.data.body)}var gp="https://community-web.ccw.site/notify_message/show";async function Un(){let t={type:"COMMENT_AUDIT"};return await l.post(gp,t).then(e=>e.data.body)}var hp="https://community-web.ccw.site/post/detail";async function Nn(t){let e={slug:t};return await l.post(hp,e).then(r=>r.data.body)}var Ap="https://community-web.ccw.site/search/hot_words";async function Hn(t){let e={length:t};return await l.post(Ap,e).then(r=>r.data.body)}var yp="https://community-web.ccw.site/student/block_record/detail";async function jn(t){let e={studentOid:t};return await l.post(yp,e).then(r=>r.data.body)}var bp="https://community-web.ccw.site/student/block_record/list";async function zn(t={sortField:"createdAt"}){let e={...N,...t},r=U(bp,e),o={};return await l.post(r,o).then(n=>n.data.body)}var Rp="https://community-web.ccw.site/student/block_record/status";async function Wn(t){let e={studentOid:t};return await l.post(Rp,e).then(r=>r.data.body)}var Cp="https://community-web.ccw.site/students/creator_score";async function Gn(){return await l.post(Cp,void 0).then(e=>e.data.body)}var Bp="https://community-web.ccw.site/students/last_active_at";async function Kn(t){let e={studentOid:t};return await l.post(Bp,e).then(r=>r.data.body)}var Ep="https://community-web.ccw.site/students/list";async function Vn(t){let e={studentOids:t};return await l.post(Ep,e).then(r=>r.data.body)}var Dp="https://community-web.ccw.site/students/list_sessions";async function $n(t={sortField:"createdAt"}){let e={...N,...t},r=U(Dp,e),o={};return await l.post(r,o).then(n=>n.data.body)}var vp="https://community-web.ccw.site/students/profile";async function Jn(t){let e={studentOid:t};return await l.post(vp,e).then(r=>r.data.body)}var wp="https://community-web.ccw.site/students/reputation_score_log/page";async function Xn(t={sortField:"createdAt"}){let e={...N,...t},r=U(wp,e),o={};return await l.post(r,o).then(n=>n.data.body)}var Fp="https://community-web.ccw.site/students/self/detail";async function Yn(t,e,r){let o={needGrade:t,needExtraInfo:e,fields:r};return await l.post(Fp,o).then(n=>n.data.body)}var Sp="https://community-web.ccw.site/students/stats";async function Zn(t){let e={studentOid:t};return await l.post(Sp,e).then(r=>r.data.body)}var _p="https://community-web.ccw.site/students/update";async function Qn(t,e,r,o,n,s,a,i,p){let u={gender:t,hideGender:e,fullName:r,birthday:o,programmingCapability:n,school:s,qq:a,hobbies:i,learnedProgrammingLanguages:p};return await l.post(_p,u).then(c=>c.data.body)}var Pp="https://community-web.ccw.site/study-community/member/detail";async function es(){let t={};return await l.post(Pp,t).then(e=>e.data.body)}var Tp="https://community-web.ccw.site/study-community/spread_feed/unread/count";async function ts(t){let e={studentOid:t};return await l.post(Tp,e).then(r=>r.data.body)}var qp="https://community-web.ccw.site/subject_area/page";async function rs(t,e={sortField:"createdAt"}){let r={...N,...e},o=U(qp,r),n={scene:t};return await l.post(o,n).then(s=>s.data.body)}var Ip="https://community-web.ccw.site/subject_area/page_by_channel";async function os(t,e={sortField:"campaignResourceId"}){let r={...N,...e},o=U(Ip,r),n={channel:t,scene:"CUSTOM_PAGE"};return await l.post(o,n).then(s=>s.data.body)}var Op="https://community-web.ccw.site/task/award";async function ns(t){let e={taskOid:t};return await l.post(Op,e).then(r=>r.data.body)}var kp="https://community-web.ccw.site/task/mine";async function ss(){let t={scene:"checkIn"};return await l.post(kp,t).then(e=>e.data.body)}var Lp="https://community-web.ccw.site/user-card/detail";async function is(t){let e={oid:t};return await l.post(Lp,e).then(r=>r.data.body)}var Mp="https://community-web.ccw.site/user_label/list";async function as(){let t={};return await l.post(Mp,t).then(e=>e.data.body)}var Up="https://community-web.ccw.site/currency/account/personal";async function cs(){return await l.post(Up).then(t=>t.data.body)}var Np="https://community-web.ccw.site/emoji/all";async function ps(){return await l.post(Np,{}).then(t=>t.data.body)}var Hp="https://community-web.ccw.site/emoji/category/list";async function xs(){return await l.post(Hp,{}).then(t=>t.data.body)}var jp="https://community-web.ccw.site/emoji/page";async function us(t="ENABLED",e={sortField:"createdAt"}){let r={...N,...e},o=U(jp,r),n={page:r.page,perPage:r.perPage,status:t};return await l.post(o,n).then(s=>s.data.body)}var zp="https://community-web.ccw.site/event";async function ds(t){let e={actionId:t};return await l.post(zp,e).then(r=>r.data.body)}var Wp="https://community-web.ccw.site/health/check";async function fs(){return await l.post(Wp).then(t=>t.data.body)}var Gp="https://community-web.ccw.site/leaflets/item/list";async function ls(t){let e={advertisementId:t};return await l.post(Gp,e).then(r=>r.data.body)}var Kp="https://community-web.ccw.site/locked_user/detail";async function ms(t){let e={accountOid:t};return await l.post(Kp,e).then(r=>r.data.body)}var Vp="https://community-web.ccw.site/muted_user/detail";async function gs(t){let e={studentNumber:t};return await l.post(Vp,e).then(r=>r.data.body)}var $p="https://community-web.ccw.site/notification/page";async function hs(t="COMMENT_TO_ME",e={sortField:"createdAt"}){let r={...N,...e},o=U($p,r),n={notifyGroup:t,page:r.page};return await l.post(o,n).then(s=>s.data.body)}var Jp="https://community-web.ccw.site/notification/stats/v2";async function As(t=!0){let e={countAll:t};return await l.post(Jp,e).then(r=>r.data.body)}var Xp="https://community-web.ccw.site/typical_project/page";async function ys(t,e={sortField:"createdAt"}){let r={...N,...e},o=U(Xp,r),n={studentOid:t,templateType:"APPLICATION"};return await l.post(o,n).then(s=>s.data.body)}var Yp="https://community-web.ccw.site/typical_project/student/unread_count";async function bs(t){let e={studentOid:t};return await l.post(Yp,e).then(r=>r.data.body)}var Zp="https://community-web.ccw.site/creation/own/page";async function Rs(t={sortField:"updatedAt"},e=["BANNED","PUBLISHED","REJECTED","SUBMITTED"],r=!1){let o={...N,...t},n=U(Zp,o),s={statuses:e,ignoreTypicalProject:r};return await l.post(n,s).then(a=>a.data.body)}var Qp="https://community-web.ccw.site/creation/team_member/produce_ticket";async function Cs(t){let e={creationOid:t};return await l.post(Qp,e).then(r=>r.data.body)}var ex="https://community-web.ccw.site/creation/team_member/list";async function Bs(t,e){let r={creationOid:t,authorities:e};return await l.post(ex,r).then(o=>o.data.body)}var tx="https://community-web.ccw.site/creation/teamwork_log/page";async function Es(t,e,r={sortField:"createdAt"}){let o={...N,...r},n=U(tx,o),s={creationId:t,operateTargets:e},a=await l.post(n,s).then(u=>u.data.body),{data:i}=a,p=i.map(u=>{let{content:c}=u;return{...u,content:JSON.parse(c)}});return{...a,data:p}}var rx="https://community-web.ccw.site/creation/update";async function Ds(t,e,r="LANDSCAPE",o){if(!e.includes("t=")){let a=new URL(e);a.searchParams.set("t",Date.now().toString()),e=a.toString()}let s={oid:t,latestProjectLink:e,screenMode:r,latestCoverLink:o};return await l.post(rx,s).then(a=>a.data.body)}var ox="https://community-web.ccw.site/creation/submit";async function vs(t){return await l.post(ox,t).then(e=>e.data.body)}var nx="https://community-web.ccw.site/creation/smart_contract/split_rule/detail";async function ws(t){let e={creationOid:t};return await l.post(nx,e).then(r=>r.data.body)}var sx="https://community-web.ccw.site/students/bind_phone";async function Fs(t,e,r="86"){let o={phone:t,code:e,ruleCode:"ccw_sms",scene:"bindPhone",countryCode:r};return await l.post(sx,o).then(n=>n.data.body)}var ix="https://community-web.ccw.site/students/password/change";async function Ss(t,e){let r={newPassword:t,code:e};return await l.post(ix,r).then(o=>o.data.body)}var ax="https://community-web.ccw.site/captcha/v2/create_by_session";async function _s(t="change_password",e="86",r="ccw_sms",o="SMS"){let n={type:o,countryCode:e,scene:t,ruleCode:r};return await l.post(ax,n).then(s=>s.data.body)}var cx="https://community-web.ccw.site/creation/smart_contract/split_rule/create";async function Ps(t,e){let r={creationOid:t,memberSplitDetails:e};return await l.post(cx,r).then(o=>o.data.body)}var px="https://community-web.ccw.site/creation_attribute/detail";async function Ts(t){let e={creationOid:t},r=await l.post(px,e).then(s=>s.data.body);if(r===null)return null;let{ext:{KEYPAD_CONFIG:o}}=r,n=JSON.parse(o);return{...r,ext:{KEYPAD_CONFIG:n}}}var xx="https://community-web.ccw.site/creation_activity_stats/list";async function qs(t){let e={creationOid:t,type:"DAY"};return await l.post(xx,e).then(r=>r.data.body)}var ux="https://community-web.ccw.site/creation_release/page";async function Is(t,e={sortField:"submittedAt"}){let r={...N,...e},o=U(ux,r),n={creationOid:t};return await l.post(o,n).then(s=>s.data.body)}var dx="https://community-web.ccw.site/creation_release/code_profiling/detail";async function Os(t,e){let r={creationOid:t,creationReleaseOid:e};return await l.post(dx,r).then(o=>o.data.body)}var fx="https://community-web.ccw.site/historical_team_member/page";async function ks(t,e={sortField:"createdAt"}){let r={...N,...e},o=U(fx,r),n={creationOid:t,page:r.page,perPage:r.perPage};return await l.post(o,n).then(s=>s.data.body)}var lx="https://community-web.ccw.site/short_url/decompress";async function Ls(t){let e={shortUrlCode:t};return await l.post(lx,e).then(r=>r.data.body)}var mx="https://community-web.ccw.site/hash_tag/recommend/list";async function Ms(){return await l.post(mx).then(t=>t.data.body)}var gx="https://community-web.ccw.site/ccw-main/status";async function Us(){let t={};return await l.post(gx,t).then(e=>e.data.body)}var hx="https://community-web.ccw.site/study-community/cloud_variable/create";async function Ns(t,e){let r={projectId:t,variables:e};return await l.post(hx,r).then(o=>o.data.body)}var Ax="https://community-web.ccw.site/study-community/comment/top";async function Hs(t){let e={id:t};return await l.post(Ax,e).then(r=>r.data.body)}var yx="https://community-web.ccw.site/study-community/comment/fold";async function js(t){let e={id:t};return await l.post(yx,e).then(r=>r.data.body)}var bx="https://community-web.ccw.site/study-community/comment/reset_weight";async function zs(t){let e={id:t};return await l.post(bx,e).then(r=>r.data.body)}var Rx="https://community-web.ccw.site/study-community/comment/delete";async function Ws(t){let e={id:t};return await l.post(Rx,e).then(r=>r.data.body)}var Cx="https://community-web.ccw.site/comment/create";async function Gs(t,e,r){e.outline??="foo";let o={content:t,topic:e,sectionType:r};return await l.post(Cx,o).then(n=>n.data.body)}var Bx="https://community-web.ccw.site/comment/like_record/create";async function Ks(t){let e={commentId:t};return await l.post(Bx,e).then(r=>r.data.body)}var Ex="https://community-web.ccw.site/student/following/page";async function Vs(t,e={sortField:"createdAt"}){let r={...N,...e},o=U(Ex,r),n={studentOid:t};return await l.post(o,n).then(s=>s.data.body)}var Dx="https://community-web.ccw.site/study-trade/trade/donate";async function $s(t,e,r="CREATION"){let o={bucks:t,objectId:e,objectType:r};return await l.post(Dx,o).then(n=>n.data.body)}var vx="https://community-web.ccw.site/user_package/user_product";async function Js(t=5,e={}){let r={...N,...e},o=U(vx,r),n={page:r.page,perPage:r.perPage,sortType:r.sortType,productCategory:t};return await l.post(o,n).then(s=>s.data.body)}var wx="https://community-web.ccw.site/user_package/status";async function Xs(t,e){let r={status:e,id:t};return await l.post(wx,r).then(o=>o.data.body)}var Fx="https://community-web.ccw.site/great_creation/update";async function Ys(t){let e={creationOid:t};return await l.post(Fx,e).then(r=>r.data.body)}var Sx="https://community-web.ccw.site/smart_contract/execute";async function Zs(t,e,r,o,n="CREATION"){let s={bizId:t,bizType:n,id:e,ruleId:r,params:{bucks:o}};return await l.post(Sx,s).then(a=>a.data.body)}var _x="https://community-web.ccw.site/smart_contract/account";async function Qs(t){let e={id:t};return await l.post(_x,e).then(r=>r.data.body)}var Px="https://community-web.ccw.site/smart_contract/detail";async function ei(t){let e={id:t};return await l.post(Px,e).then(r=>r.data.body)}var Tx="https://community-web.ccw.site/smart_contract/list";async function ti(t,e="CREATION"){let r={bizId:t,bizType:e};return await l.post(Tx,r).then(o=>o.data.body)}var qx="https://community-web.ccw.site/extensions/following/status";async function ri(t,e){let r={playingCreationOid:t,userOid:e};return await l.post(qx,r).then(o=>o.data.body)}var Ix="https://community-web.ccw.site/extensions/creation-like/detail";async function oi(t,e){let r={playingCreationOid:t,creationOid:e};return await l.post(Ix,r).then(o=>o.data.body)}var Ox="https://community-web.ccw.site/study-community/following/follow";async function ni(t){let e={followingOid:t};return await l.post(Ox,e).then(r=>r.data.body)}var kx="https://community-web.ccw.site/study-community/following/unfollow";async function si(t){let e={followingOid:t};return await l.post(kx,e).then(r=>r.data.body)}var kr={acceptAward:ns,bindStudentPhone:Fs,changeStudentPassword:Ss,donateTrade:$s,encodeShortCode:rn,executeSmartContract:Zs,createCloudVariable:Ns,createComment:Gs,createShortUrl:Fn,createSmsCaptchaBySession:_s,createSplitRule:Ps,decompressShortUrl:Ls,deleteComment:Ws,foldComment:js,followCreator:ni,unfollowCreator:si,getApprovalTags:on,getCampaignResources:sn,getCcwMainStatus:Us,getCheckInRecords:an,getCodeProfilingDetail:Os,getCommentReplies:un,getCommentsByTopic:dn,getConfigDetail:fn,getCreationActivityStatsList:qs,getCreationAttributeDetail:Ts,getCreationDetail:mn,getCreationFavoriteDetail:On,getCreationIntroduction:hn,getConnectCommunityCreationLikeStatus:oi,getCreationRecommendPositionList:kn,getCreationReleasePage:Is,getCreationScreenshotPage:Ln,getCreationStudentDetail:vn,getCreationTags:wn,getCreatorScore:Gn,getDonatedRecordRanking:In,getExcellentCreations:gn,getConnectCommunityFollowingStatus:ri,getEmojiCategoryList:xs,getEmojiPage:us,getAllEmojis:ps,getHashTagDetail:Pn,getHashTagFavoriteDetail:qn,getHistoricalTeamMemberPage:ks,getManagedHashTags:Tn,getHealthCheck:fs,getLeafletsItemList:ls,getLikeDetail:An,getLoadingTips:yn,getLockedUserDetail:ms,getMutedUserDetail:gs,getMyHashTagCreations:_n,getMyTasks:ss,getNotifyDeleteReasons:Un,getNotificationPage:hs,getNotificationStats:As,getOwnCreationPage:Rs,getPersonalCurrencyAccount:cs,getPlanetsOfCreation:Sn,getPostDetail:Nn,getPotentialCreations:Cn,getRecommendCreations:Bn,getRecommendCreators:En,getRecommendHashTags:Ms,getRemixedCreationPage:bn,getReputationScoreLogPage:Xn,getSearchHotWords:Hn,getSmartContractAccount:Qs,getSmartContractDetail:ei,getSmartContractList:ti,getSplitRuleDetail:ws,getSpreadFeedUnreadCount:ts,getStudentBlockRecordDetail:jn,getStudentBlockRecordList:zn,getStudentBlockStatus:Wn,getStudentFollowingPage:Vs,getStudentLastActiveAt:Kn,getStudentProfile:Jn,getStudentSelfDetail:Yn,getStudentSessions:$n,getStudentsList:Vn,getStudentStats:Zn,getStudyCommunityMemberDetail:es,getSubjectAreaPage:rs,getSubjectAreaPageByChannel:os,getTeamMemberList:Bs,getTeamworkLogPage:Es,getTime:nn,getTypicalProjectPage:ys,getTypicalProjectUnreadCount:bs,getUserAssetStorageSize:pn,getUserCardDetail:is,getUserLabelList:as,getUserProductsPage:Js,queryMallProducts:ln,getCreationsByStudent:Rn,insertCheckInRecord:cn,likeComment:Ks,produceTeamMemberTicket:Cs,resetCommentWeight:zs,searchCloudAssets:xn,searchCreationsByTag:Dn,sendEvent:ds,setUserProductStatus:Xs,submitCreation:vs,topComment:Hs,updateCreation:Ds,updateGreatCreation:Ys,updateStudent:Qn,viewCreationStats:Mn};var Lx="https://gandi-main.ccw.site/timestamp/current";async function ii(){return await l.get(Lx).then(t=>t.data.body)}var Mx="https://gandi-main.ccw.site/bulletins";async function ai(t="PUBLISHED",e={sortField:"publishedAt"}){let r={...N,...e},o=U(Mx,{...r,status:t});return await l.get(o).then(n=>n.data.body)}var Ux="https://gandi-main.ccw.site/bulletins";async function ci(t){return await l.get(`${Ux}/${t}`).then(e=>e.data.body)}var pi="https://gandi-main.ccw.site/creation/leaderboards";async function xi(t,e,r,o=""){let n={score:e,oid:r,ext:o},s=`${pi}/${t}/records`;return await l.post(s,n).then(a=>a.data.body)}async function ui(t){let e=`${pi}/${t}/records`;return await l.get(e).then(r=>r.data.body)}var Lr={getCurrentTimestamp:ii,getBulletinsPage:ai,getBulletinDetail:ci,submitLeaderboardRecord:xi,getLeaderboardRecords:ui};var Nx="https://bfs-web.ccw.site/users";async function di(t,e={sortField:"updatedAt"}){let r={...N,...e},o=U(`${Nx}/${t}/extensions`,r);return await l.get(o).then(n=>n.data.body)}var Hx="https://bfs-web.ccw.site/extensions";async function fi(t,e){let r={eid:t,bucks:e};return await l.post(`${Hx}/${t}/donate`,r).then(o=>o.data.body)}var Mr={donateExtension:fi,getUserExtensions:di};var jx="https://community-web-cloud-database.ccw.site/cloud_variable/save";async function li(t,e,r){let o={primaryKey:t,secondaryKey:e,value:r};return await l.post(jx,o).then(n=>n.data.body)}async function mi(t,e,r){return await li(t,e,{v:r})}async function gi(t,e,r){let o=`${t}-u`;return await li(o,`${e}`,r)}var zx="https://community-web-cloud-database.ccw.site/cloud_variable/detail/v2";async function hi(t,e,r,o){let n={accessKey:t,primaryKey:e,secondaryKey:r,filterKeys:o};return await l.post(zx,n).then(s=>s.data.body)}var Ur={saveProjectCloudVariable:mi,saveUserCloudVariable:gi,getCloudVariableDetailV2:hi};var Wx="https://op-parent-api.xiguacity.cn/captcha/create";async function Ai(t="BLOCK_PUZZLE"){let e={type:t};return await l.post(Wx,e).then(r=>r.data.body)}var Gx="https://op-parent-api.xiguacity.cn/captcha/check";async function yi(t,e,r=5){let o={data:{x:e,y:r},token:t};return await l.post(Gx,o).then(n=>n.data.body)}var Nr={createCaptcha:Ai,checkCaptcha:yi};var Kx={sso:Or,communityWeb:kr,gandiMain:Lr,bfsWeb:Mr,communityWebCloudDatabase:Ur,opParentApi:Nr};return Ui(Vx);})();
10
10
  /*! Bundled license information:
11
11
 
12
12
  crypto-js/ripemd160.js:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ccw-api/api",
3
- "version": "0.10.0",
3
+ "version": "0.10.2",
4
4
  "description": "ccw api collections",
5
5
  "license": "MIT",
6
6
  "author": "Meng Fuzi",
@@ -29,7 +29,7 @@
29
29
  "build": "tsup"
30
30
  },
31
31
  "dependencies": {
32
- "@ccw-api/axios": "^4.0.0"
32
+ "@ccw-api/axios": "^5.0.0"
33
33
  },
34
34
  "devDependencies": {
35
35
  "@types/jest": "^30.0.0",